swapr-dapp
swapr-dapp copied to clipboard
Claim rewards button is not blocked after previous action which may lead to send incorrect transaction
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
- Open Rewards section
- Open campaign
- Click on "Claim rewards" button
- Select max amount and confirm
- Confirm transaction in wallet
- 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.