-
Notifications
You must be signed in to change notification settings - Fork 100
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(swap): partial approve #5256
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
0d0fe07
to
a017d48
Compare
The build has failed :( |
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.
Hey @shoom3301 , great job!
I'm approving the PR.
Please don't forget to discuss with the team the 1st case reported in #5256 (comment)
And just FYI: I'm still facing issues with orders execution (1, 2, 3) on Gnosis chain (only). However, it might be related to a poor competition that we have on staging. I will retest this on Prod
Summary
Many users are asking for partial approve in swap because it might be dengerous to give an "infinite" approval amount.
Now we have an option in Swap settings which enables the partial approve feature.
When the option is on, then we will make an approval only for selling amount.
Important! When order is a buy order, then approval amount should be sell amount including all costs (fees, slippage, etc.).
Important! The option works only in Swap. I know, we have approvals in limit orders, tokens page, etc. But for now the feature is availabe only in Swap because it's not clear how it will affect other flows.
To Test