Skip to main content

[Eco Bounty] Missing validation – Allows negative input in Convert form

Wallet Address:
0x0f06443fbfc0Eb7D1f1c98DC74005546e2f70AAb

Bug Description:
In the Convert section of the dApp, users can input negative numbers (e.g., -2) as the token amount without triggering any validation or error message. The system accepts the value visually, which may lead to user confusion.

Device & Testing Environment:

  • Device: Dell Laptop

  • OS: Ubuntu

  • Browser: Chrome

Steps to Reproduce:

  1. Go to https://bridge.iotex.io

  2. Click on the Convert tab or Bridge tab

  3. In the amount input field, enter a negative number like -2

  4. Observe: No warning or error is shown, and the input is accepted


Actual Result:
Negative values are accepted without any validation or UI feedback

Expected Result:

  • Input field should only allow positive numbers greater than zero

  • Display inline validation error when user enters a negative value

  • Prevent submission or further interaction until corrected

Status: Completed2 comments

Log in to comment and vote

Comments2

  • Terry Xu

    Team•

    Jul 29, 2025

    No big issue here. If the amount is invalid, we’ve already added a prompt on the button.

    • klrt0120

      •

      Jul 29, 2025

      @Terry Xu I know your intention is to not allow the button to be clicked when the value is invalid. However, the "Convert" tab has an "Invalid Amount" item if the value is invalid. I was wrong in thinking that it had no validation. Maybe because of the color and placement of the validation, it doesn't really stand out like traditional input validations. If possible, could you review with different people's experiences? Thanks