swapr-dapp
swapr-dapp copied to clipboard
Possibility of removing liquidity process after removing max liquidity
Description After removing (MAX) liquidity buttons 'Approve' and 'Remove' are still active and it is possible to click but when it comes to confirm modal window there is no possibility to finish process.
Definition of done
- [ ] Description is created (Task creator)
- [ ] Code is complete (Developer)
- [ ] Scope of test and what was done section is defined in task (Developer)
- [ ] Review passed (Code reviewer)
- [ ] Verified manually (QA)
- [ ] Test cases created/updated if necessary (QA)
- [ ] Change successfully merged
- [ ] Release notes added if needed
How to Reproduce Steps to reproduce the behaviour:
- Go to Liquidity page
- Click on some pair
- Click on 'Remove liquidity' button
- Selects 'Max' option in Remove liquidity modal window
- Click 'Approve'
- Click 'Remove'
- Click on 'Confirm'
- Wait for transaction confirmation notification
- Selects 'Max' option in Remove liquidity modal window
- Click 'Approve'
- Click 'Remove'
- Click on 'Confirm' but nothing is happening
Expected behaviour User should not be able to select 'Max' or any other option in removing liquidity modal after removing max liquidity fro certain pair.
Screenshots
https://user-images.githubusercontent.com/57331244/177542947-6e53d54a-89cc-4293-9e8f-4bc00710022f.mp4
Additional context Bug found on swapr.site