From e93a43c6689620218eddf8c360df3a07e82e4884 Mon Sep 17 00:00:00 2001 From: garyghayrat Date: Tue, 21 May 2024 16:55:59 -0400 Subject: [PATCH] Query 10k announcements unless it's Gnosis subgraph --- umbra-js/src/utils/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: {