brinc-finance / brinc-bugbounty

Brinc Bug Bounty Program
1 stars 0 forks source link

[BACKEND] Not allowing purchase of BRQ with DAI #4

Open Rufia75 opened 3 years ago

Rufia75 commented 3 years ago

===========================================

      Thank you for your bug submission!
    Please fill out the information below.

===========================================

Bug Description: Metamask error: ALERT: Transaction Error. Exception thrown in contract code. Attempted Tx appears to simply fail.

Expected Behaviour: Exchange DAI for BRQ.

Actual Behaviour:** Tx gets stuck. Error code with metamask.

Suspected Criticality Level: Medium

Steps to reproduce:**

  1. Select DAI/BRQ pairing.
  2. approve.
  3. Click Buy BRQ.
  4. Receive error on metamask popup & confirm anyways.

System Information: Windows 10

Error Message: Metamask: ALERT: Transaction Error. Exception thrown in contract code.

Additional Info: https://rinkeby.etherscan.io/tx/0x7cdee4a0ea62d6b8b81803869814fd9f65caccff72c0aa55ebeef57997d82b7f

radu-daniel commented 3 years ago

Same problem here. Is it because I am not in the whitelist? :)

https://rinkeby.etherscan.io/tx/0x74982f45720884a81ce49bc059ffba2766146fcce9b9d7dd067191990054e4d9

![Uploading Screenshot 2021-04-17 at 15.40.08.png…]()

araskachoi commented 3 years ago

Hello, thank you for your submission! @Rufia75 i see that the transaction you have made was reverted because the amount that you wanted to purchase was too high. You did not have enough balance for you to purchase the amount you specified. Please submit a value that is lower than your current balance (eth, dai, etc.).

https://github.com/brinc-finance/brinc-bugbounty/issues/4#issue-860315892

araskachoi commented 3 years ago

@cv30 yep Screen Shot 2021-04-22 at 2 31 49 PM