Skip to content

Commit

Permalink
Query 10k announcements unless it's Gnosis subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
garyghayrat committed May 21, 2024
1 parent 4ba3928 commit e93a43c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion umbra-js/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit e93a43c

Please sign in to comment.