Skip to content

Commit e93a43c

Browse files
committed
Query 10k announcements unless it's Gnosis subgraph
1 parent 4ba3928 commit e93a43c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

umbra-js/src/utils/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,9 @@ export async function* recursiveGraphFetch(
438438
method: 'POST',
439439
headers: { 'Content-Type': 'application/json' },
440440
body: JSON.stringify({
441+
// Gnosis chain is using Goldsky subgraph, which only supports 1000 blocks per query.
441442
query: query(`
442-
first: 1000,
443+
first: ${url.includes('umbra-xdai') ? 1000 : 10000},
443444
orderBy: id,
444445
orderDirection: desc,
445446
where: {

0 commit comments

Comments
 (0)