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

feat: allow to use same tokens for hooks #5075

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Nov 6, 2024

Summary

🧪 Experiment to allow to select the same token for the sell and buy when we use hooks.
This allows to use CoW Swap as a gas network.

SWAP (and all other swap flows) remains the same.

image

However hooks flow, allow to select the same sell/buy token
image

WIP: quotes are broken, not only in the backend, also in the frontend.

Blocked

The backend sends still a 40X when the sell token and buy token matches
Screenshot at Nov 06 18-27-47

Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Nov 7, 2024 6:28pm
cowfi ✅ Ready (Inspect) Visit Preview Nov 7, 2024 6:28pm
explorer-dev ✅ Ready (Inspect) Visit Preview Nov 7, 2024 6:28pm
swap-dev ✅ Ready (Inspect) Visit Preview Nov 7, 2024 6:28pm
widget-configurator ✅ Ready (Inspect) Visit Preview Nov 7, 2024 6:28pm

@elena-zh
Copy link

elena-zh commented Nov 7, 2024

Hey @anxolin , just to let you know that on other trade widgets currently it is possible to pick the same token in both fields :)
image
I reported it in #2708

@anxolin
Copy link
Contributor Author

anxolin commented Nov 7, 2024

Hey @anxolin , just to let you know that on other trade widgets currently it is possible to pick the same token in both fields

Yes is a small bug, I wouldn't give it too much importance, but the solution shouldn't be that hard. I gave a hint in case someone wants to fix it. Ideally someone from the community :)

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.

2 participants