-
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
[Beta] ERC20 approve() -- UI makes it look like tokens are being sent #3423
Comments
@trakout Some questions and responses (mostly for me to ensure I understand you correctly): Thanks a lot for reporting this. |
Hey @danjm! Sure:
Thanks! |
@trakout Thanks for your replies. Fixing the display of large amounts will likely be resolved this week. Better support for Thanks again for reporting this. |
@danjm I think we should create a new issue for the design of the 'approve()' screen. This should be part of a more strategic move towards designing call specific transaction screens. |
We should only show the token transfer approval screen when the data field starts with |
This is beyond the scope of this issue, I'd rather we address other confirmation types as other issues, and ideally in a generic way when possible (like our rendering of contract method metadata). |
Design being handled in MetaMask/Design#18 |
Closing in favour of MetaMask/Design#18 and #4505 |
When using
approve()
the full amount being approved is displayed (makes sense probably), but there is no indicator showing the fact that tokens are not yet being transferred (as opposed to approved for transfer).Also in use-cases where an 'unlimited' approve is used (eg. RadarRelay), the max uint is displayed as an amount that runs off the edge of the viewport. This, coupled with the fact that there is no indication that this is technically not a transfer may be alarming to users.
Also related, users can use approve() without owning any amount of a token. Therefore the transaction will be successful even though the UI displays 'Insufficient tokens'.
Screenshots below. Used Chrome Nightly on Mac OS.
The text was updated successfully, but these errors were encountered: