fix: increase useBestTrade debounce time (#6631)
* fix: increase useBestTrade debounce time * reduce * increase * 350 * fix
This commit is contained in:
parent
303fa15240
commit
e4a9764a12
@ -11,6 +11,9 @@ import { useClientSideV3Trade } from './useClientSideV3Trade'
|
||||
import useDebounce from './useDebounce'
|
||||
import useIsWindowVisible from './useIsWindowVisible'
|
||||
|
||||
// Prevents excessive quote requests between keystrokes.
|
||||
const DEBOUNCE_TIME = 350
|
||||
|
||||
/**
|
||||
* Returns the best v2+v3 trade for a desired swap.
|
||||
* @param tradeType whether the swap is an exact in/out
|
||||
@ -31,7 +34,7 @@ export function useBestTrade(
|
||||
|
||||
const [debouncedAmount, debouncedOtherCurrency] = useDebounce(
|
||||
useMemo(() => [amountSpecified, otherCurrency], [amountSpecified, otherCurrency]),
|
||||
200
|
||||
DEBOUNCE_TIME
|
||||
)
|
||||
|
||||
const isAWrapTransaction = useMemo(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user