fix: use proper apollo client for ticks query (#6185)

fix: pass thegraph client to ticks query instead of default
This commit is contained in:
cartcrom 2023-03-17 14:29:46 -04:00 committed by GitHub
parent 6fee37c4b8
commit 503a33314f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,6 +5,7 @@ import { SupportedChainId } from 'constants/chains'
import { ZERO_ADDRESS } from 'constants/misc'
import { useAllV3TicksQuery } from 'graphql/thegraph/__generated__/types-and-hooks'
import { TickData, Ticks } from 'graphql/thegraph/AllV3TicksQuery'
import { apolloClient } from 'graphql/thegraph/apollo'
import JSBI from 'jsbi'
import { useSingleContractMultipleData } from 'lib/hooks/multicall'
import ms from 'ms.macro'
@ -160,6 +161,7 @@ function useTicksFromSubgraph(
variables: { poolAddress: poolAddress?.toLowerCase(), skip },
skip: !poolAddress,
pollInterval: ms`30s`,
client: apolloClient,
})
}