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).
amount0
[sqrtA, sqrtB]
ΔL = Δx · (√P_a · √P_b) / (√P_b - √P_a)
get_liquidity_from_amount_0
Generated using TypeDoc
Liquidity fundable by
amount0of token_0 over[sqrtA, sqrtB]:ΔL = Δx · (√P_a · √P_b) / (√P_b - √P_a), rounding down. Exact port of the on-chainget_liquidity_from_amount_0(itself a port of Raydium's).