sifiorg / sifi

7 stars 1 forks source link

Issues with all time stats #538

Open boriskubrik opened 7 months ago

boriskubrik commented 7 months ago

Sometimes this happens.

useAllTimeStats.tsx:28 Failed to fetch data for 1: Error: bad indexers: [Unavailable(missing block)]: {"response":{"errors":[{"message":"bad indexers: [Unavailable(missing block)]"}],"status":200,"headers":{"map":{"content-type":"application/json"}}},"request":{"query":"\n  query {\n    allTimeStats(id: \"current\") {\n      volumeUsd\n    }\n  }\n"}}
    at makeRequest (graphql-request.js?v=ddfef4f0:8498:11)
    at async Promise.all (:5173/index 0)
    at async useQuery.staleTime [as queryFn] (useAllTimeStats.tsx:23:25)

Shows 1.6m instead of 3.5m+

image