brinc-finance / brinc-bugbounty

Brinc Bug Bounty Program
1 stars 0 forks source link

[FRONTEND] When balance is insufficient, but still showing able to swap #8

Open WillXing opened 3 years ago

WillXing commented 3 years ago

Bug Description: Button showing wrong state and messag

Expected Behaviour: When balance in sufficient, should show insufficient XXX Balance

Actual Behaviour:** Showing enabled button

Suspected Criticality Level: high

Steps to reproduce:**

  1. Choose a token with balance to swap to another token which have no balance
  2. Switch the place from sell to buy and buy to sell by click the switch button in middle
  3. Observe the issue

System Information: Chrome

Additional Info:

image

image

araskachoi commented 3 years ago

Hello! Thank you for your submission! I was able to reproduce and you are correct, the frontend should reset here and identify that you do not have any balance to spend! Thank you for this submission and I will keep you updated on the progress of this ticket!!