• Liquidity fundable by amount0 of token_0 over [sqrtA, sqrtB]: ΔL = Δx · (√P_a · √P_b) / (√P_b - √P_a), rounding down. Exact port of the on-chain get_liquidity_from_amount_0 (itself a port of Raydium's).

    Parameters

    • sqrtRatioAX64: bigint
    • sqrtRatioBX64: bigint
    • amount0: bigint

    Returns bigint

Generated using TypeDoc