.25% -> .30% slippage for v3 swaps

This commit is contained in:
Noah Zinsmeister 2021-05-11 13:53:15 -04:00
parent 3198129af2
commit 58a508c9d6
No known key found for this signature in database
GPG Key ID: 83022DD49188C9F2

@ -5,7 +5,7 @@ import { useMemo } from 'react'
import { useUserSlippageToleranceWithDefault } from '../state/user/hooks' import { useUserSlippageToleranceWithDefault } from '../state/user/hooks'
const V2_SWAP_DEFAULT_SLIPPAGE = new Percent(45, 10_000) // .45% const V2_SWAP_DEFAULT_SLIPPAGE = new Percent(45, 10_000) // .45%
const V3_SWAP_DEFAULT_SLIPPAGE = new Percent(25, 10_000) // .25% const V3_SWAP_DEFAULT_SLIPPAGE = new Percent(30, 10_000) // .30%
const ONE_TENTHS_PERCENT = new Percent(10, 10_000) // .10% const ONE_TENTHS_PERCENT = new Percent(10, 10_000) // .10%
export default function useSwapSlippageTolerance(trade: V2Trade | V3Trade | undefined): Percent { export default function useSwapSlippageTolerance(trade: V2Trade | V3Trade | undefined): Percent {