-
Notifications
You must be signed in to change notification settings - Fork 102
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: sell eth warning for limit/twap #3573
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
apps/cowswap-frontend/src/modules/limitOrders/containers/LimitOrdersWarnings/index.tsx
Outdated
Show resolved
Hide resolved
Hey @alfetopito , great job! Some notes from my side:
Thanks! |
38dfcca
to
ab12657
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ab12657
to
c740d71
Compare
UI/UX folks rather not add it, as that's not user intention when being on LIMIT page, so we'll leave without it.
Done
Done
Done
Working on it |
Hey @alfetopito , all changes LGTM!
But I was not able to reproduce the issue once again :( |
c740d71
to
2f4c3cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you!
5787984
to
ac6a97c
Compare
Summary
Part of 2024 roadmap.
Improve sell ETH UX for limit orders.
While UX wise the ethflow contract is not usable IMO for Limit orders, the current UX is also not optimal.
When the user tries to sell ETH for anything other than WETH (a wrap), the UI silently switches it to WETH.
This PR makes it so:
Think of it as a poor's man version of the classic eth flow.
Notes
1: While Safe Apps could in theory do the wrap + order placement as it's available now for SWAPs on LIMIT and TWAP, it's out of the scope of this PR, mainly for a similar reason as for the ethflow contract.
While on LIMIT and TWAP the funds are NOT locked in the ethflow contract, they will end up in a different token and might be wrapped needlessly, in case the trades don't happen.
2: Text is definitely not final. Open to suggestions.
To Test
Switch to WETH
Wrap ETH to WETH