The maximum liquidity fundable by amount0 and amount1 at the current
price sqrtRatioX64 over [sqrtA, sqrtB]. Exact port of the on-chain
get_liquidity_from_amounts — the value openRaydiumClmmPositionV2
computes and passes to Raydium, so clients can predict each position's
liquidity (and, with getClmmAmountsForLiquidity, the consumed amounts
and leftover residue) before the opens execute:
price at/below the range -> token_0 only
price inside the range -> min of what each side can fund
The maximum liquidity fundable by
amount0andamount1at the current pricesqrtRatioX64over[sqrtA, sqrtB]. Exact port of the on-chainget_liquidity_from_amounts— the valueopenRaydiumClmmPositionV2computes and passes to Raydium, so clients can predict each position's liquidity (and, withgetClmmAmountsForLiquidity, the consumed amounts and leftover residue) before the opens execute: