feat: update default router preference in redux (#7571)
This commit is contained in:
parent
f903eedc15
commit
a1bd6f5eb4
@ -72,13 +72,13 @@ describe('useUserSlippageTolerance', () => {
|
||||
})
|
||||
|
||||
describe('useRouterPreference', () => {
|
||||
it('returns `auto` by default', () => {
|
||||
it('returns `x` by default', () => {
|
||||
const {
|
||||
result: {
|
||||
current: [routerPreference],
|
||||
},
|
||||
} = renderHook(() => useRouterPreference())
|
||||
expect(routerPreference).toBe(RouterPreference.API)
|
||||
expect(routerPreference).toBe(RouterPreference.X)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -65,7 +65,7 @@ function pairKey(token0Address: string, token1Address: string) {
|
||||
export const initialState: UserState = {
|
||||
selectedWallet,
|
||||
userLocale: null,
|
||||
userRouterPreference: RouterPreference.API,
|
||||
userRouterPreference: RouterPreference.X,
|
||||
userHideClosedPositions: false,
|
||||
userSlippageTolerance: SlippageTolerance.Auto,
|
||||
userSlippageToleranceHasBeenMigratedToAuto: true,
|
||||
|
Loading…
Reference in New Issue
Block a user