sygmaprotocol / sygma-widget

Transfer widget for the sygmaprotocol
5 stars 2 forks source link

When inputting an amount higher than the max balance, the UX has strange behavior #175

Open LyonSsS opened 7 months ago

LyonSsS commented 7 months ago

Severity: Low | Priority: Low

Short Context

When using the keyboard to manually input an amount to the "Amount to transfer" field, if the inputted value is > available balance, the UI inform the user that "Amount exceeds the account balance" but does not block the actual transfer/approve token button. Also the value calculated to this faulty action is by using the first digits that creates a number < balance. The button should be grayed out and action should not be permitted.

image image