XLabs / portal-bridge-ui

Portal Bridge UI
https://www.portalbridge.com/
25 stars 38 forks source link

[bug] "Amount exceeds available balance" error when entering large transaction amount #1106

Closed agodlevska closed 4 weeks ago

agodlevska commented 2 months ago

Is there an existing issue for this?

Current Behavior

The system erroneously displays an "Amount exceeds available balance." error message, preventing the transaction from proceeding.

Screenshot 2024-09-24 at 12 06 03

Expected Behavior

The entered amount should be accepted if it does not exceed the available balance, allowing the transaction to proceed without error. If the transaction is still not possible, the user should be notified with a suitable message, e.g. - "No route found for this transaction".

Steps To Reproduce

  1. Open https://portalbridge.com/
  2. Select any network and any wallet with any asset with high balance (Solana, Phantom and BONK in my case)
  3. Ensure the available balance
  4. Attempt to enter a large amount for a transaction (e.g., click Max in the amount field).
  5. Observe the error message "Amount exceeds available balance." appearing

Environment

- OS: macOS Sequoia 15.0
- Wallet: Phantom, Coinbase
- Browser: Google Chrome Version 129.0.6668.59 (Official Build) (x86_64)

Anything else?

Preconditions:

agodlevska commented 4 weeks ago

Checked on https://portalbridge.com/. Issues is no longer reproducible, route is provided without errors.

Closing the issue.

Attachment:

Screenshot 2024-10-25 at 11 15 17