sygmaprotocol / sygma-widget

Transfer widget for the sygmaprotocol
5 stars 2 forks source link

MAX amount rounds value to 2 decimals which fails at allow spending or transfer, if value is below rounding #124

Closed LyonSsS closed 3 months ago

LyonSsS commented 4 months ago

Severity: Medium | Priority: High Context: When using MAX button, allow spending and transfer are affected if the value is rounded >= actual balance.

Actual balance on chain: image

Allow spending behavior: MAX_AllowSpending

Transfer Max ( after allow spending was done): MAX_Transfer

LyonSsS commented 3 months ago

Retested on https://github.com/sygmaprotocol/sygma-widget/pull/137 but it is still an issue image image

LyonSsS commented 3 months ago

Retested -> this is now fixed image image