lib/hooks/usePlayerQuery.js
// can still claim from the drips. It only needs the 3_1_0 subgraph
can still claim from the drips. It only needs the 3_1_0 subgraph
can still claim from the drips . It only needs the 3_1_0 subgraph
function usePlayerQuery(address, blockNumber = -1, error = null) {
  const graphQLClient = getSubgraphClientFromChainIdAndVersion(NETWORK.mainnet, '3.1.0')
  address = address?.toLowerCase()
  const refetchInterval = blockNumber === -1 ? MAINNET_POLLING_INTERVAL : false
  return useQuery(
    [QUERY_KEYS.playerQuery, graphQLClient.url, address, blockNumber],
    async () => {
      return getPlayerData(graphQLClient, address, blockNumber)
    },
    {
      enabled: Boolean(graphQLClient.url && address && blockNumber && !error),
      refetchInterval
    }
  )
}
function usePlayerQuery ( address , blockNumber = - 1 , error = null ) { const graphQLClient = getSubgraphClientFromChainIdAndVersion ( NETWORK . mainnet , '3.1.0' ) address = address ?. toLowerCase ( ) const refetchInterval = blockNumber === - 1 ? MAINNET_POLLING_INTERVAL : false return useQuery ( [ QUERY_KEYS . playerQuery , graphQLClient . url , address , blockNumber ] , async ( ) => { return getPlayerData ( graphQLClient , address , blockNumber ) } , { enabled : Boolean ( graphQLClient . url && address && blockNumber && ! error ) , refetchInterval } ) }
can still claim from the drips.
can still claim from the drips .