soroswap / frontend

Soroswap.Finance Frontend Repo
https://soroswap.finance
MIT License
4 stars 9 forks source link

Bridge: Input amount buggy #413

Closed chopan123 closed 2 months ago

chopan123 commented 3 months ago

Describe the bug Cuando escribo un monto comenzando con 1, ej 1, 11 todo está bien, sin embargo, cuando empiezo con 2, me dice insufficient balance. Luego si antepongo un "0" puedo escribir lo que sea y no me tira insufficient balance.

To Reproduce Steps to reproduce the behavior:

  1. Go to '/bridge', connect both wallets, select asset to bridge
  2. Click on input amount and write 2 or 022222222,
  3. See error

Expected behavior It should compare the amount correctly, it should not bug when typing 0 to the left.

Screenshots

Image

Additional context There might be something with the casting of the amounts before comparing.