-
Notifications
You must be signed in to change notification settings - Fork 638
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
bump slippage from 2 to 5 (except mainnet, polygon and bsc) #6419
Conversation
src/model/remoteConfig.ts
Outdated
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.
possible to dynamically construct this? I just wrote this on the BX: https://github.com/rainbow-me/browser-extension/blob/9ab5b8bbe61a73f841af3ccb9872f1dd34d74fe1/src/core/firebase/remoteConfig.ts#L36-L42
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.
The moment we have more variations this gets really nasty so I'm not gonna do it.
@@ -46,6 +46,8 @@ import { IS_APK_BUILD } from 'react-native-dotenv'; | |||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | |||
import isTestFlight from '@/helpers/isTestFlight'; | |||
|
|||
const DEFAULT_SLIPPAGE_BIPS = 500; |
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.
I think we should share this constant with the remoteConfig
so that changing one changes both?
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.
I agree but this needs more work so whenever I have time I'm gonna do this:
https://linear.app/rainbow/issue/APP-2286/clean-up-slippage-defaults
…efault-slippage-bips
Fixes APP-2263
What changed (plus any additional context for devs)
Bump slippage from 2 to 5 (except mainnet, polygon and bsc)
Screen recordings / screenshots
What to test
Swap review sheet default slippage for the specified chains