stabilize fee distribution in hook (#1979)

This commit is contained in:
Justin Domingue 2021-07-07 08:27:18 -07:00 committed by GitHub
parent 53d93afd78
commit f0fc11a3b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -33,6 +33,7 @@ export function useFeeTierDistribution(token0: Token | undefined, token1: Token
return {
isLoading: isLoading || isFetching || !isUninitialized,
isError,
distributions,
}
}
@ -67,7 +68,7 @@ function usePoolTVL(token0: Token | undefined, token1: Token | undefined) {
const { isLoading, isFetching, isUninitialized, isError, data } = useFeeTierDistributionQuery(
token0 && token1 ? { token0: token0.address.toLowerCase(), token1: token1.address.toLowerCase() } : skipToken,
{
pollingInterval: ms`1m`,
pollingInterval: ms`2m`,
}
)