-
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(volumeFee): add volume fee for Safe #5139
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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 great! nice job
*/ | ||
export const safeAppFeeAtom = atom<VolumeFee | null>((get) => { | ||
const { chainId } = get(walletInfoAtom) | ||
const { isSafeApp } = get(walletDetailsAtom) |
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.
will this affect also wallet connect, or just the safe app?
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.
Just Safe App
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, but:
- Fee breakdowns are not working. No matter which amount to sell I select. the min fee size is applied to a trade
- It would be nice to remove intends in this tooltip (we don't have them in other tooltips)
- It would be great to add a feature flag for this feature
- Question: We are loosing our internal fees on Arb and GC. (0.1%). Are we OK with this?
- Should we rename this fee inside the AppData (discussion)?
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.
Thank you for clarfication/fixes.
The flag is working, fee breakdowns are working.
2 things to clarify are left;
- Should we change fees on Base?
- make sure that recipient address is correct.
I've done one more test round: everything works great! |
Summary
Reference: https://help.safe.global/en/articles/178530-how-does-the-widget-fee-work-for-native-swaps
Basically, CoW Swap should work the same with https://app.safe.global/swap when it is open in Safe Apps.
I literally copy-pasted the logic from Safe frontend.
The only thing that might be different is stablecoins list. We have our own list, our list at least matches mainnet (USDC/USDT/DAI).
To Test
Volume fee should work exactly the same with https://app.safe.global/swap