feat: update default router preference in redux (#7571)

This commit is contained in:
eddie 2023-11-14 11:05:47 -08:00 committed by GitHub
parent f903eedc15
commit a1bd6f5eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

@ -72,13 +72,13 @@ describe('useUserSlippageTolerance', () => {
}) })
describe('useRouterPreference', () => { describe('useRouterPreference', () => {
it('returns `auto` by default', () => { it('returns `x` by default', () => {
const { const {
result: { result: {
current: [routerPreference], current: [routerPreference],
}, },
} = renderHook(() => useRouterPreference()) } = 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 = { export const initialState: UserState = {
selectedWallet, selectedWallet,
userLocale: null, userLocale: null,
userRouterPreference: RouterPreference.API, userRouterPreference: RouterPreference.X,
userHideClosedPositions: false, userHideClosedPositions: false,
userSlippageTolerance: SlippageTolerance.Auto, userSlippageTolerance: SlippageTolerance.Auto,
userSlippageToleranceHasBeenMigratedToAuto: true, userSlippageToleranceHasBeenMigratedToAuto: true,