-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decimal point is missing in one token balance, showing the actual balance multiplied by 10^18 #9771
Comments
Hi, what MetaMask version did this happen on? |
@danjm The Chrome extension, version 8.0.10. |
You might be able to fix this with the following steps:
If the correct UNI icon doesn't show up, don't worry, that will be fixed in an near future update. Regardless the number of tokens should be correct.
If not, please report here what you see and we will dig deeper into this issue. |
Thank you, re-adding the token does result in the correct amount. But this isn't a support call, I'm more interested in how this could have happened. Somewhere the wrong unit must have been used. |
Whenever a token is added to MetaMask, the How exactly that happened is not immediately clear... Do you remember how you initially added the token? Did you copy and paste an address into the custom token form? If so, where did you copy the address from? |
I wonder if you could have added the token before the node we attempted to fetch the contract data from was updated to include that contract? Or otherwise, the fetch for that data could have failed with no notice given. Either could have caused the decimals to default to zero. |
I think I copied the contract address from the airdrop page. Shouldn't the default be 18 decimals, which is the most common? Maybe with a sanity check for extremely high or low numbers. |
This seems issue is resolved. Since this issue was created, there have been improvements to how we handle failing token queries that could have been the issue, MetaMask/eth-token-tracker#53. If this happens again, feel free to add additional information in a new issue and reference this one. |
This has happened to me with #saitama. How do I rectify the issue? I'm wanting to buy more crypto but am terrified. Thanks |
@SenyahG Don't worry, it's just a display issue. Try hiding the token and adding it again, as explained above. But if you mean this token, I'm not sure whether it's an error. That one actually has an extremely high number of coins with a low value. |
My UNI token balance, including the dollar value, is displayed as a 20-digit number instead of a 2-digit number with 18 decimals after the period - an impossibly large amount of money. The correct amount is shown on Uniswap, in transactions on Etherscan, and in another address on Metamask where I added the token today. The same issue does not occur with other token balances.
Browser details:
Steps to reproduce:
It's an edge case, it might not be reproducible. I think it's worth looking at since it might cause heart attacks or reckless spending.
[removed]
[removed]
[removed]
[removed]
[removed]
Additional context:
Can't find any indication that anything went wrong on Uniswap's side. One thing that makes my case unusual is that most UNI holders probably received their tokens before they added UNI to Metamask.
This might be related to fixed issue #6762.
Coincidentally, I also have truncation issue #9318, which has been fixed, but not in version 8.0.10 yet. I don't know why my extension hasn't been updated. My browser was restarted when a worker shut off my power yesterday.
The text was updated successfully, but these errors were encountered: