Swap button active while swap is pending
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Bug Description
I submitted a swap and swap button remained active and I was able to pop another swap. This can be confusing to users because I selected max and subsequent swap had 0 chance of success.
Steps to Reproduce
- Go to swap
- Do approve
- Execute swap

...
Expected Behavior
Button is inactive until the previous swap is not resolved.
Additional Context
I reloaded UI while I was waiting for Approve to get mined.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by reproducing the swap flow through approval and execution, including a UI reload while approval is pending, then trace the swap button's pending state. Done means the button stays inactive after submission until the previous swap is resolved, including after reload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100