Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
luizakp committed Feb 15, 2024
1 parent 6caa261 commit b6effe4
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions packages/gql/src/balancer-gauges/gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export const gaugeSymbol = gql`

export const poolsWithGauge = gql`
query PreferentialGauge {
pools(first: 1000, where: { gauges_: { gauge_not: null } }) {
pools(
first: 1000
where: { gauges_: { gauge: null }, gaugesList_not: null }
) {
poolId
gauges {
id
Expand All @@ -21,19 +24,21 @@ export const poolsWithGauge = gql`

export const gaugeInfo = gql`
query PoolPreferentialGauge($poolId: Bytes!) {
pools(where: { poolId_in: [$poolId], gauges_: { gauge_not: null } }) {
pools(
where: {
poolId_in: [$poolId]
gauges_: { gauge: null }
gaugesList_not: null
}
) {
id
poolId
preferentialGauge {
id
}
gauges {
gauge {
liquidityGauge {
id
symbol
}
}
id
symbol
}
}
}
Expand Down

0 comments on commit b6effe4

Please sign in to comment.