Skip to content

move FiatConversionService to newer charts api - #3544

Open
malik1004x wants to merge 11 commits into
chartsfrom
cw-1622-safer-fiat-lookup
Open

move FiatConversionService to newer charts api#3544
malik1004x wants to merge 11 commits into
chartsfrom
cw-1622-safer-fiat-lookup

Conversation

@malik1004x

Copy link
Copy Markdown
Contributor

Issue Number (if Applicable): Fixes #

Description

Currently, FiatConversionService utilized the old V2 ("Fiat") API to fetch cryptocurrency prices. This API relied solely on the ticker, even for tokens with a contract address. This PR connects the old fiat-fetching logic to the newer V3 ("Charts") API that fetches these currencies based on their contract address, eliminating risk of showing a wrong (non-zero) value for scam currencies.

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods
  • Manual tests in accessibility mode (TalkBack on Android) passed

@malik1004x
malik1004x requested a review from MrCyjaneK August 20, 2026 15:26

@MrCyjaneK MrCyjaneK left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (if tested)

malik1004x and others added 9 commits August 24, 2026 17:35
The unchecked background resolved to colorScheme.surfaceContainerHighest,
which is pure white in LightTheme, so the unselected checkbox was an
invisible white disc on near-white list rows. In light brightness use
onSurfaceVariant with alpha 80 instead; dark themes are unchanged.
* fix android CI

* fix: duplicate outgoing tx for jup swaps and stuck pending state

* fix solana security risk by handling duplicate token symbols in wallet transactions

* feat: implement additional cost handling for pending transactions in Solana wallet.

* fix: Items on security audit list for solana wallet

* refactor: streamline fee payer index handling and improve error logging

* fix: verifySignature for solana and handle wrong mint on default token

* fix: token decimals defaulting to zero and breaking amount parsing in solana

* fix: use token mask in tx history

* refactor: apply lint to modified code

* fix: merge conflicts

* fix: use Money and mint decimals when parsing sol swaps

* test: add unit tests for SPL token amount handling and parsing

* test: add more tests

* fix: update decimal handling for fetched token and remove unused fields
* hide unavailable receive page options

* hide broken options in wallets without a private key

* hide exporting unavailable logs

* hide sign/verify on airgapped wallets

* hide mweb on hwws

* hide mweb ad for hww
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.

4 participants