diff --git a/umbra-js/src/utils/utils.ts b/umbra-js/src/utils/utils.ts index eeae62e9..f99d5d99 100644 --- a/umbra-js/src/utils/utils.ts +++ b/umbra-js/src/utils/utils.ts @@ -438,8 +438,9 @@ export async function* recursiveGraphFetch( method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ + // Gnosis chain is using Goldsky subgraph, which only supports 1000 blocks per query. query: query(` - first: 1000, + first: ${url.includes('umbra-xdai') ? 1000 : 10000}, orderBy: id, orderDirection: desc, where: {