backend icon indicating copy to clipboard operation
backend copied to clipboard

aggregatorPools query is missing results when using filters

Open gmbronco opened this issue 1 year ago • 1 comments

Find out if we need to support all the filters - best to narrow down to chains, protocolVersion and optionally poolTypes

Token filters seem to be a problem, also dynamic data is defined in few places and overwritten.

query lbp {
  poolGetPools(where: {protocolVersionIn: [3], poolTypeIn: [LIQUIDITY_BOOTSTRAPPING]}) {
    address
    dynamicData {
      totalShares
    }
  }
  poolGetPool(id: "0x812C1217EA39c5242eD1C6D1015EbeD31261E28A", chain: BASE) {
    address
    name
    ...on GqlPoolLiquidityBootstrapping {
      lbpOwner
      startTime
      endTime
      reserveToken
      reserveTokenEndWeight
      reserveTokenStartWeight
      reserveTokenIndex
      projectToken
      projectTokenEndWeight
      projectTokenStartWeight
      projectTokenIndex
    }
  }
  poolGetAggregatorPools(where:  {
    protocolVersionIn: [3],
    chainIn: [BASE],
    poolTypeIn: [LIQUIDITY_BOOTSTRAPPING]
  }) {
    address
  }
  aggregatorPools(where:  {
        protocolVersionIn: [3],
    chainIn: [BASE],
     poolTypeIn: [LIQUIDITY_BOOTSTRAPPING]
  }) {
    address
    poolTokens {
      address
    }
    quantAmmWeightedParams {
      weightsAtLastUpdateInterval
      lambda
    }
  }
}

gmbronco avatar May 28 '25 19:05 gmbronco

filter: {"chainIn":["ARBITRUM"],"includeHooks":["STABLE_SURGE"],"minTvl":1000,"protocolVersionIn":[3]}

current query structure fetched

{
    address
    type
    poolTokens {
      address
      isErc4626
      canUseBufferForSwaps
      underlyingToken {
        address
        isBufferAllowed
      }
    }
    hook {
      type
      address
    }
    dynamicData {
      swapFee
    }
  }

gmbronco avatar Jun 04 '25 09:06 gmbronco