Converts an exact quote-per-base human price into the canonical raw-token ratio and sqrtPriceX96 expected by concentrated-liquidity initializers.
Address sorting and reciprocal orientation happen before the only lossy operation. The final encoding is exactly:
floor(sqrt((amount1Raw << 192) / amount0Raw))
Converts an exact quote-per-base human price into the canonical raw-token ratio and sqrtPriceX96 expected by concentrated-liquidity initializers.
Address sorting and reciprocal orientation happen before the only lossy operation. The final encoding is exactly:
floor(sqrt((amount1Raw << 192) / amount0Raw))