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 8a8027d commit 9caa3d6
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 9caa3d6

Please sign in to comment.