Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nabla page refresh required after currency swap #604

Merged
merged 7 commits into from
Oct 28, 2024

Conversation

Sharqiewicz
Copy link
Collaborator

@Sharqiewicz Sharqiewicz commented Oct 21, 2024

🦈 🟢 PR

After swapping one currency to another on the platform, users must refresh the page to initiate another swap. If they attempt a second swap without refreshing, they encounter the following error: "Transaction failed."

Issue: Token Approval is not reset after successful swap.
Solution: Implement approval query invalidation after successful swap.

@Sharqiewicz Sharqiewicz linked an issue Oct 21, 2024 that may be closed by this pull request
Copy link

netlify bot commented Oct 21, 2024

Deploy Preview for rococo-souffle-a625f5 ready!

Name Link
🔨 Latest commit 425a5eb
🔍 Latest deploy log https://app.netlify.com/sites/rococo-souffle-a625f5/deploys/671b7f6d1f5ca20008945d3b
😎 Deploy Preview https://deploy-preview-604--rococo-souffle-a625f5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Sharqiewicz
Copy link
Collaborator Author

@ebma @prayagd @TorstenStueber Ready for review

Copy link
Collaborator

@prayagd prayagd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected, if i try new swap the button changes to Approve back again. Good to go from my end

@Sharqiewicz
Copy link
Collaborator Author

@ebma Do you approve ✅?

Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me, nice job @Sharqiewicz 👍

Copy link
Member

@TorstenStueber TorstenStueber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Sharqiewicz Sharqiewicz merged commit 668adb0 into main Oct 28, 2024
5 checks passed
@Sharqiewicz Sharqiewicz deleted the 531-nabla-page-refresh-required-after-currency-swap branch October 28, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nabla - Page Refresh Required After Currency Swap
4 participants