diff --git a/src/App.tsx b/src/App.tsx index b6d647843e..697eea1772 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -43,6 +43,8 @@ import { config, privyConfig } from '@/lib/wagmi'; import { RestrictionWarning } from './components/RestrictionWarning'; import { ComplianceStates } from './constants/compliance'; import { DialogTypes } from './constants/dialogs'; +import { useSkipClient } from './hooks/transfers/skipClient'; +import { assetsQueryFn, chainsQueryFn } from './hooks/transfers/useTransfers'; import { useAnalytics } from './hooks/useAnalytics'; import { useBreakpoints } from './hooks/useBreakpoints'; import { useCommandMenu } from './hooks/useCommandMenu'; diff --git a/src/hooks/transfers/useTransfers.tsx b/src/hooks/transfers/useTransfers.tsx index 8b3a7d2e7c..a8a2af60ce 100644 --- a/src/hooks/transfers/useTransfers.tsx +++ b/src/hooks/transfers/useTransfers.tsx @@ -33,6 +33,8 @@ import { useAccounts } from '../useAccounts'; import { useDebounce } from '../useDebounce'; import { useSkipClient } from './skipClient'; +const ROUTE_QUERY_REFETCH_INTERVAL = 5_000; + export const chainsQueryFn = async (skipClient: SkipClient) => { const skipSupportedChains = await skipClient.chains({ includeEVM: true, @@ -230,7 +232,7 @@ export const useTransfers = () => { swapVenues: SWAP_VENUES, }); }, - + refetchInterval: ROUTE_QUERY_REFETCH_INTERVAL, enabled: hasAllParams, });