Skip to content

Commit

Permalink
Update balancer-js/src/modules/data/pool/subgraph.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Eidam Guerios <[email protected]>
  • Loading branch information
gmbronco and brunoguerios authored Aug 25, 2023
1 parent 8554edb commit 36fcf1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions balancer-js/src/modules/data/pool/subgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ export class PoolsSubgraphRepository
this.query.args.block = { number: await this.blockHeight() };
}

this.query.args.first = options?.first
? options?.first
: this.query.args.first || 1000;
this.query.args.first = options?.first || this.query.args.first || 1000;

const formattedQuery = new GraphQLArgsBuilder(this.query.args).format(
new SubgraphArgsFormatter()
Expand Down

0 comments on commit 36fcf1a

Please sign in to comment.