Skip to content

Commit

Permalink
Merge pull request #147 from dappradar/pancakeswap_v3
Browse files Browse the repository at this point in the history
skip limit was adjusted
  • Loading branch information
Sonmezturk authored Jun 26, 2023
2 parents 7a1ec72 + 2da9541 commit 7183aee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/calculators/pancakeswapV3subgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const TOKENS = gql`
}
}
`;
const MAX_SKIP = 5000;

/**
* Gets TVL of Pancakeswap V3 using subgraph
Expand All @@ -29,7 +30,7 @@ async function getTvlFromSubgraph(

let skip = 0;

while (true) {
while (skip <= MAX_SKIP) {
const requestResult = await request(endpoint, TOKENS, {
block,
skip,
Expand Down

0 comments on commit 7183aee

Please sign in to comment.