Skip to content

Commit

Permalink
Merge pull request #41 from balancer-labs/john/add-subgraph-first
Browse files Browse the repository at this point in the history
Add first:1000 flag in Subgraph query.
  • Loading branch information
mikemcdonald committed Jul 16, 2020
2 parents 28d4d70 + 7d4dc43 commit 1a4b516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function getPoolsWithTokens(tokenIn, tokenOut) {

const query = `
query ($tokens: [Bytes!]) {
pools (where: {tokensList_contains: $tokens, publicSwap: true}) {
pools (first: 1000, where: {tokensList_contains: $tokens, publicSwap: true}) {
id
publicSwap
swapFee
Expand Down Expand Up @@ -109,7 +109,7 @@ export async function getTokenPairs(token) {

const query = `
query ($token: [Bytes!]) {
pools (where: {tokensList_contains: $token, publicSwap: true}) {
pools (first: 1000, where: {tokensList_contains: $token, publicSwap: true}) {
tokensList
}
}
Expand Down

0 comments on commit 1a4b516

Please sign in to comment.