near/near-wallet

Web wallet allows to put all funds to stacking, leaving too small amount to be able to withdraw

Opened this issue · 0 comments

Problem
I was able to stack all my funds by clicking MAX button. After than I've issued only one transaction -- adding new key to account.

After that I have too small ballance to perfrorm withdraw.

The account wouldn't have enough balance to cover storage, required to have 5749244153978092126768 yoctoNEAR more

I have 0.05536 Near

Expected Behavior

Either hold some amount on account in reserve, or allow contract methods that pay you money to pay for transaction(that's not wallet issue, guess can create it there)

Steps to reproduce

  1. Stake
  2. Hit [Use Max] button
  3. Perform unstake
  4. Perform some transactions on account, like adding keys
  5. Try to withdraw after a few days