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.
amount1
[sqrtA, sqrtB]
ΔL = Δy / (√P_b - √P_a)
get_liquidity_from_amount_1
Generated using TypeDoc
Liquidity fundable by
amount1of token_1 over[sqrtA, sqrtB]:ΔL = Δy / (√P_b - √P_a), rounding down. Exact port of the on-chainget_liquidity_from_amount_1.