swapr-dapp icon indicating copy to clipboard operation
swapr-dapp copied to clipboard

Claim rewards button is not blocked after previous action which may lead to send incorrect transaction

Open niemam29 opened this issue 3 years ago • 3 comments

Issue description

User can send a "Claim Rewards" transaction with not owned amount of tokens.

Preconditions

Started rewards campaign with provided tokens for liquidity

Steps to reproduce the issue

  1. Open Rewards section
  2. Open campaign
  3. Click on "Claim rewards" button
  4. Select max amount and confirm
  5. Confirm transaction in wallet
  6. Confirm SWAPR popup

What's the expected result?

Claim Rewards button is not aviable to click to protect user from sending unreal transaction that will fail

What's the actual result?

User can click on Claim Rewards button and send an transaction with invalid amount of assets.

Additional details / screenshot

  • failedt.png
  • failedt2.png

niemam29 avatar Mar 02 '22 14:03 niemam29