-
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
Incorrect USD price of tokens in menu #5960
Comments
Has it updated after a while to the correct price? We use an external API for token prices/rates, they we have no control over. |
I saw some change in price in few seconds. But the prices I provided screenshot of are after the change. These prices are apparently way off, so I think there is some calculation error on Metamask side. If not, then the API prices are off. If you point me to the right file I can have a look and create a PR with fix. |
I started here, where the API call starts. token-rates.js. I just Postman'd the request for the Gnosis contract(0x6810e776880c02933d47db1b9fc05908e5386b96). |
Okay, the retrieval logic in I looked at how prices are displayed at
In short, multiplication by Metamask should only multiply token price stored in |
Looking deeper we select the native currency selected here I believe we should still have |
Upon buying GNO tokens, it seems the price for that seems fine with the current calculation. |
hi , |
Describe the bug
The USD price of tokens in Menu is incorrect. It shows huge amount of USD - around ±100x more as the real value. I'm not sure if it's only a problem of decimal point or the prices are totally wrong. It's obviously connected to where token prices are coming from.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A correct value in USD should be displayed.
Examples of tokens with invalid USD prices: Crypto20 C20, Gnosis GNO
Screenshots
https://pasteboard.co/HSUIZwg.png
Browser details (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: