fix: correct decimals for MOLLARS and imgnAI (9, not 18)#654
Closed
RAVIKUMAR96 wants to merge 1 commit into
Closed
fix: correct decimals for MOLLARS and imgnAI (9, not 18)#654RAVIKUMAR96 wants to merge 1 commit into
RAVIKUMAR96 wants to merge 1 commit into
Conversation
On-chain decimals() for these tokens is 9, but the custom list had 18, which overrode the correct value and broke exchanges (reported by Tangem). - MOLLARS 0x385d65ed9241e415cfc689c3e0bcf5ab2f0505c2 (Ethereum): 18 -> 9 - imgnAI 0xA735A3AF76CC30791C61c10d585833829d36CBe0 (Ethereum): 18 -> 9 - imgnAI 0x18e692c03de43972fe81058f322fa542ae1a5e2c (Base): 18 -> 9 Verified via eth_call decimals() (0x313ce567) on Ethereum and Base RPCs. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Author
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.
Summary
Corrects the
decimalsfield for 3 token entries that were18but are actually9on-chain. The wrong value here overrides the correct on-chain value in the backend pricing pipeline (viaCustomListOraclemetadata override), which broke exchanges for these tokens.Reported by Tangem — users were unable to perform exchanges due to the decimals mismatch.
0x385d65ed9241e415cfc689c3e0bcf5ab2f0505c20xA735A3AF76CC30791C61c10d585833829d36CBe00x18e692c03de43972fe81058f322fa542ae1a5e2cVerification
On-chain
decimals()(selector0x313ce567) returns9for all three (Ethereum + Base RPC).Notes
PATCH /v1/tokenre-fetch does not fix this —CustomListOraclemetadata overrides the fetched decimals. The correction must happen in this list.Made with Cursor