Skip to content
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

TokenWrapper: display current user balance of outside or wrapped token #8

Open
sohkai opened this issue Dec 3, 2019 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@sohkai
Copy link
Contributor

sohkai commented Dec 3, 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 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.

@sohkai sohkai added the enhancement New feature or request label Dec 3, 2019
@sohkai sohkai mentioned this issue Dec 3, 2019
@sohkai 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant