When the user uses the "max" funding, an issue can occur making it impossible to sign the transaction or worse, receive a failed transaction.
To Reproduce:
Steps to reproduce the behavior:
This works best with odd amount of tokens. For example if you've used ETH to pay Gas, it will work well. Using exactly 10 xDAI won't work to reproduce.
Navigate to the deploy page
Using a token you have an odd amount of, use the max button on either funding side
Continue as usual
Sign transaction
Observe failed transaction or failing signature
Expected Behaviour
Max should use exactly the users funds, and not round up using too much.
Actual Behaviour
Max amount can round up to be too much, resulting in errors.
Screenshots/Videos
/
Environment
Any
Background
One possible fix is to do a check if the selected amount is +/- 0.001 away from max funding, and if it is, use exactly the users balance.
Description
When the user uses the "max" funding, an issue can occur making it impossible to sign the transaction or worse, receive a failed transaction.
To Reproduce:
Steps to reproduce the behavior: This works best with odd amount of tokens. For example if you've used ETH to pay Gas, it will work well. Using exactly 10 xDAI won't work to reproduce.
max
button on either funding sideExpected Behaviour
Max should use exactly the users funds, and not round up using too much.
Actual Behaviour
Max amount can round up to be too much, resulting in errors.
Screenshots/Videos
/
Environment
Any
Background
One possible fix is to do a check if the selected amount is +/- 0.001 away from max funding, and if it is, use exactly the users balance.