You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the "max" button implementation will be a bit interesting, due to the current step validation declared on the input. If the user's balance has a lot of decimal places, our current maximum step amount (1e-6) will not work as it will ask the user to round up or down.
The easiest way around this is to detect if the input amount is the same value as their balance amount, and remove the step field if so.
The text was updated successfully, but these errors were encountered:
sohkai
changed the title
App: display current user balance of outside or wrapped token
TokenWrapper: display current user balance of outside or wrapped token
Dec 20, 2019
See design.
We should implement the user balance, "max" button, as well as error states if a user attempts to wrap too many tokens (see how the Token Manager manages error states.
Note that the "max" button implementation will be a bit interesting, due to the current
step
validation declared on the input. If the user's balance has a lot of decimal places, our current maximumstep
amount (1e-6) will not work as it will ask the user to round up or down.The easiest way around this is to detect if the input
amount
is the same value as their balance amount, and remove thestep
field if so.The text was updated successfully, but these errors were encountered: