Skip to content

Load full ChangeNow currency list to resolve delisted assets - #221

Open
paullinator wants to merge 1 commit into
masterfrom
paul/fixChangeNowDelisted
Open

Load full ChangeNow currency list to resolve delisted assets#221
paullinator wants to merge 1 commit into
masterfrom
paul/fixChangeNowDelisted

Conversation

@paullinator

@paullinator paullinator commented Jun 30, 2026

Copy link
Copy Markdown
Member

The currency cache was built from the currencies?active=true endpoint. When ChangeNow deactivates an asset (e.g. DASH), it disappears from the active list while historical transactions still reference it. The lookup then misses and the plugin halts fail-closed, stalling all ChangeNow transaction collection.

Fetch the full currency list (omit active=true) so previously-listed assets continue to resolve for historical transactions.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Note

Low Risk
Single URL/query change in currency cache loading with no auth or schema changes; slightly larger cache payload is the main tradeoff.

Overview
ChangeNow currency cache no longer filters to active=true when calling exchange/currencies. The plugin now loads the full currency list so tickers that ChangeNow has deactivated (e.g. DASH) still resolve when processing historical swaps.

Previously, a cache miss in getAssetInfo threw and stopped collection fail-closed for otherwise valid past transactions. Comments in loadCurrencyCache document that behavior.

Reviewed by Cursor Bugbot for commit f3cd90d. Bugbot is set up for automated code reviews on this repo. Configure here.

The currency cache was built from the `currencies?active=true` endpoint.
When ChangeNow deactivates an asset (e.g. DASH), it disappears from the
active list while historical transactions still reference it. The lookup
then misses and the plugin halts fail-closed, stalling all ChangeNow
transaction collection.

Fetch the full currency list (omit `active=true`) so previously-listed
assets continue to resolve for historical transactions.

Co-authored-by: Cursor <cursoragent@cursor.com>
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