• Liquidity fundable by amount1 of token_1 over [sqrtA, sqrtB]: ΔL = Δy / (√P_b - √P_a), rounding down. Exact port of the on-chain get_liquidity_from_amount_1.

    Parameters

    • sqrtRatioAX64: bigint
    • sqrtRatioBX64: bigint
    • amount1: bigint

    Returns bigint

Generated using TypeDoc