backpack icon indicating copy to clipboard operation
backpack copied to clipboard

Wrong token amount value on obscure coin

Open nickFNY opened this issue 1 year ago • 1 comments

User has 20 'Zion', wallet showing 20,000,000

discord: https://discord.com/channels/971847939456639047/1025538150719819797/1033831913816858626

Screen_Shot_2022-10-23_at_3 13 48_PM

nickFNY avatar Oct 23 '22 23:10 nickFNY

checked out @solana/spl-token-registry and https://raw.githubusercontent.com/solana-labs/token-list/main/src/tokens/solana.tokenlist.json shows that Zion has outdated metadata.

{
     "chainId": 101,
     "address": "A7rqejP8LKN8syXMr4tvcKjs2iJ4WtZjXNs1e6qP3m9g",
     "symbol": "Zion",
     "name": "Zion",
     "decimals": 3,
     "logoURI": "https://raw.githubusercontent.com/LousyNFTs/token-list/main/assets/mainnet/A7rqejP8LKN8syXMr4tvcKjs2iJ4WtZjXNs1e6qP3m9g/Ziontoken_2_84.png",
     "tags": [
       "social-token",
       "community-token"
     ],
     "extensions": {
       "coingeckoId": "zion",
       "discord": "http://discord.gg/catcartel",
       "twitter": "https://twitter.com/SolanaCatCartel",
       "website": "https://catcartel.io/"
     }
   }

this would need to be updated or be queried in a different format to match the correct expectation of the token decimals (which is 9) -> https://solscan.io/token/A7rqejP8LKN8syXMr4tvcKjs2iJ4WtZjXNs1e6qP3m9g

gmaijoe avatar Oct 30 '22 15:10 gmaijoe