Skip to content

Infinity pools not working with provided smart and infinity routers examples #17

Description

@kheil117

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions