It seems that the examples of Smart and Infinity routers are not covering Infinity pools.
For instance I am trying to reach this Infinity pool LYN/USDC (Infinity, CLAAM)
https://pancakeswap.finance/liquidity/pool/bsc/0x887477d7c159f32fa9f5a6fa59a345b11c8d8e26314273fc7373e3d22639fb5d?chainName=bsc&id=0x887477d7c159f32fa9f5a6fa59a345b11c8d8e26314273fc7373e3d22639fb5d&chain=bsc
The examples provide the following functions
SmartRouter.getV2CandidatePools, SmartRouter.getV3CandidatePools(), SmartRouter.getStableCandidatePools()
or
InfinityRouter.getV3CandidatePools()
but none captures infinity pools.
There is a function in InfinityRouter sdk that retrieves infinity pools: InfinityRouter.getInfinityCandidatePools() but the output can't be fed to InfinityRouter.getBestTrade()
Can you please advise how to query quotes for infinity pools such as the one above ?
Thank you.
It seems that the examples of Smart and Infinity routers are not covering Infinity pools.
For instance I am trying to reach this Infinity pool LYN/USDC (Infinity, CLAAM)
https://pancakeswap.finance/liquidity/pool/bsc/0x887477d7c159f32fa9f5a6fa59a345b11c8d8e26314273fc7373e3d22639fb5d?chainName=bsc&id=0x887477d7c159f32fa9f5a6fa59a345b11c8d8e26314273fc7373e3d22639fb5d&chain=bsc
The examples provide the following functions
SmartRouter.getV2CandidatePools, SmartRouter.getV3CandidatePools(), SmartRouter.getStableCandidatePools()
or
InfinityRouter.getV3CandidatePools()
but none captures infinity pools.
There is a function in InfinityRouter sdk that retrieves infinity pools: InfinityRouter.getInfinityCandidatePools() but the output can't be fed to InfinityRouter.getBestTrade()
Can you please advise how to query quotes for infinity pools such as the one above ?
Thank you.