telosnetwork / open-block-explorer

The Open Block Explorer (OBE) is the first open source block explorer that is designed to support all AntelopeIO-based blockchains.
https://explorer.telos.net
Apache License 2.0
27 stars 24 forks source link

Cannot withdraw max amount from savings #830

Open donnyquixotic opened 8 months ago

donnyquixotic commented 8 months ago

Describe the bug There is precision loss on withdraw max amount causing transaction to fail. User is unable to withdraw remaining 0.0001 TLOS from savings.

To Reproduce Steps to reproduce the behavior:

  1. Go to savings tab and move any amount to savings
  2. Select max amount to populate withdraw savings input
  3. Attempt to withdraw
  4. See transaction error
  5. Update withdraw input to equal max amount minus .0001
  6. Withdraw

Additional context This is most likely due to precision loss during conversion between REX and TLOS.

related issue #734