fix: hide native tokens on Tempo networks (testnet and mainnet) [WIP]#7882
Draft
fix: hide native tokens on Tempo networks (testnet and mainnet) [WIP]#7882
Conversation
6d12965 to
298d46a
Compare
bb22d25 to
722b537
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation
Tempo testnet (
eip155:42431) and Tempo mainnet (eip155:4217) return arbitrary large numbers for native token balances viaeth_getBalance. Showing these in the wallet would be misleading. This PR hides native tokens on those chains end-to-end: inAssetsController.getAssets, in balance fetching (AccountTrackerController and RPC balance fetcher), and in asset selectors so the UI never shows Tempo native tokens.References
Checklist