Open sleepytanya opened 1 month ago
This issue happens on develop
:
https://github.com/MetaMask/metamask-extension/assets/104780023/81066f0b-920b-471a-9f3f-1f8d9fd8f684
If user selects a different destination token then the subsequent transaction with this token as a primary currency will show it's actual balance:
https://github.com/MetaMask/metamask-extension/assets/104780023/5012e9e6-57d0-466f-9917-6d0db49c2f1f
Token details tab display inconsistent info (develop
):
https://github.com/MetaMask/metamask-extension/assets/104780023/ce1ac68d-5bac-485e-b17d-537df768bd1d
1-4 look like the same bug in different forms, 5 is probably related to a different issue (ticket for the 'no quotes' https://github.com/MetaMask/metamask-extension/issues/24922
Current develop
(sorry for the long videos - bug happens randomly): https://jam.dev/c/1d7b2875-8a0e-4728-8bcb-b1595fb4dff4
Latest build from here https://consensys.slack.com/archives/C068SFX90PN/p1717713259996549
Issue is still present:
Added functionality to allow transactions to be submitted when the balance isn't known. As for the disparities between home and the asset picker modal, this is related to rate-limiting (i.e. out of swap+send scope), but let's leave this issue open as this is something I'd like to better mitigate
There's lots of 429 rate limiting happening in those RPC requests, which is one reason this kind of thing can happen. Are you using a free infura plan? Those hit limits quite easy, and you can DM me for a higher limit one like we would use in production.
I am also seeing a similar problem with the Swap flow see the video. Only way for the token list to show the balance is to click on the token details.
https://github.com/MetaMask/metamask-extension/assets/6082863/3fe42ac7-fd3c-4add-9ead-523aa781e0d3
I have tried reproducing the steps in this video https://jam.dev/c/8c8c12d3-fef6-44e9-9248-b43a291b2c29 And i did not have any issues:
https://github.com/MetaMask/metamask-extension/assets/10994169/fb39ccac-5582-4d25-a41d-631f17b16c67
@davibroc I'd like to see the chrome network tab while this happens, to see whether you're hitting 429 rate limits like the original post.
Infura rate limiting seems to be the cause.
I'd like to know what infura key reporters are using. When I use a free tier key, I also get these issues. Where 429 errors on the RPC calls to fetch balances cause failed to load balance for token...
from the eth-token-tracker. Among other UI issues.
But that's happened to me for a while, not specifically on this release. I had to start using the production infura key locally, like what users would have, which doesn't reproduce these errors.
Comparing to older 11.x releases, I also haven't detected an increase in the # of RPC requests in this v12 release.
I do not reproduce the issue on the latest v12.0.0 build [https://github.com/MetaMask/metamask-extension/commit/eebc4d5b2284024eaeb190cddfa89990f593ca34]
https://github.com/MetaMask/metamask-extension/assets/104780023/af9d21e1-7af8-4e76-bf3f-ab84130b67a4
Describe the bug
Token balances might randomly appear as zero, and transactions can't be submitted.
Probably the same bug:
https://github.com/MetaMask/metamask-extension/issues/24921 https://github.com/MetaMask/metamask-extension/issues/24925 https://github.com/MetaMask/metamask-extension/issues/24918
Also related https://github.com/MetaMask/metamask-extension/issues/24921
Expected behavior
Token balances are accurately reflected.
Screenshots/Recordings
https://jam.dev/c/50618d6c-1bb1-41ef-855f-54f18273509a
Steps to reproduce
Error messages or log output
No response
Version
dev build
Build type
None
Browser
Chrome, Firefox
Operating system
MacOS
Hardware wallet
No response
Additional context
dev build 4c64f44
Severity
No response