backpack
backpack copied to clipboard
Wrong token amount value on obscure coin
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](https://user-images.githubusercontent.com/63250024/197422883-6202042b-4704-48ce-a4c3-2b980275a73a.png)
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