vulpemventures / marina

Liquid Wallet browser extension
MIT License
37 stars 19 forks source link

SEND ALL: Too many digitis #295

Closed tiero closed 2 years ago

tiero commented 2 years ago

I got this balance in my wallet of USDt and clicking on SEND ALL I get "Too many digits" error

image
bordalix commented 2 years ago

Number of digits is limited to <14 here: https://github.com/vulpemventures/marina/blob/master/src/presentation/components/address-amount-form.tsx#L153

Assuming the maximum number of satoshis is 2.1E15 (16 digits) and adding the possibility of managing milisatoshis, I would say <20 digits should be the new limit.

Commit 7f890d81 fixes this.