Skip to content

cleanup: remove unused mintUrl param from _handlePostResponseBalanceUpdate#12

Open
sh1ftred wants to merge 2 commits into
mainfrom
cleanup/unused-mint-url
Open

cleanup: remove unused mintUrl param from _handlePostResponseBalanceUpdate#12
sh1ftred wants to merge 2 commits into
mainfrom
cleanup/unused-mint-url

Conversation

@sh1ftred

Copy link
Copy Markdown
Contributor

Summary

_handlePostResponseBalanceUpdate destructured mintUrl from its params but never used it in the method body.

Trace

mintUrl is still needed and correctly flows through:

  • _spendTokenCashuSpender.spend()
  • _handleErrorResponsebalanceManager.topUp() / balanceManager.refundApiKey()
  • _makeRequest (passthrough to error handler)

But in _handlePostResponseBalanceUpdate it was dead weight.

Changes

  • Removed mintUrl from the method's params type
  • Removed mintUrl from the destructuring
  • Removed mintUrl: params.mintUrl from the single callsite

sh1ftred added 2 commits June 15, 2026 20:29
- Remove v0.1.x version check from fetchAIResponse (already handled in _prepareRoutedRequest)
- Remove duplicate balance check from resolveRouteRequestContext (RoutstrClient._checkBalance covers it)
- Remove providerRegistry from FetchAIResponseDeps (only used by removed version check)
- Remove getProviderManager() from FetchAIResponseClient interface
- Export UsageTrackingData from client barrel (was missing)
- Fix list-usage-entries.ts: correct import path, add type annotation
- Fix routstr-daemon.ts: pass SqliteUsageTrackingDriverOptions, not SdkStore
- Fix routstr-cheapest.ts: remove stale providerRegistry from FetchAIResponseDeps
- Delete stale fetch-trust-scores.ts (references non-existent project)
…pdate

mintUrl was destructured in this method but never referenced in the body.
All legitimate consumers (_spendToken, _handleErrorResponse, topUp, refund)
continue to receive mintUrl through their own params paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant