polkawallet-io / polkawallet-flutter

Replace to: https://github.com/polkawallet-io/app
Apache License 2.0
110 stars 51 forks source link

Insufficient balance error when trying to transfer aUSD Cross-chain between accounts on Laminar chain #107

Open ltfschoen opened 4 years ago

ltfschoen commented 4 years ago

My Acala Mandala Address: 5DHcRs9udMCKtEmJEABY2HpECyTHHxgLL85pFFzN72SatAoQ

If I switch to Laminar Turbulence TC1 chain, using my account 5F2QSwPHobet1pLFTEw6mkcT8bwZdEMmHfBGYPkiK7Pgxdex where I have a LAMI balance of 4.986, and 2600.9 aUSD, if I then click aUSD, then "Transfer", and then enter a value for "Send to Address" of my other account 5DRech3cqa15p3m7rgd1AoLbm8erSbdddUJLo18ESvuUbscN, and enter my entire aUSD balance of 2600.9 aUSD that is shown, and choose "aUSD" as the Currency to send, it shows that the existentialDeposit is 0.001 LAMI and the transactionByteFee is 0.0001 LAMI (both less than my balance of LAMI), but when I then click "Make Transfer", it shows a form input value validation error on the Amount Insufficient balance, because the MAX I can actually send is 2600.8989 (since need enough to pay those fees), whereas if I send at most 2600.8989 then the transaction is successful.

Suggest adding a "MAX" button on this page that calculates the max amount the can send (after subtracting those fees), and add an additional input field validation error that highlights to users who try to send their whole balance that the reason why it's saying insufficient balance is because they haven't left any balance to pay the fees (i.e. Insufficient balance to transfer and pay fees)