pub fn uniswap_v3_sqrt_price_from_amounts(
    amount_1: Uint256,
    amount_0: Uint256
) -> Uint256
Expand description

Computes the sqrt price of a pool given token_1’s liquidity and token_0’s liquidity When used as the sqrt price limit, this calculates the maximum price that a swap is allowed to push the pool to by changing the underlying liquidity without having the tx revert Attempts to encode the result as a Q64.96 by copying the javascript implementation (see https://en.wikipedia.org/wiki/Q_(number_format), a 160 bit number v represented in Q64.96 would be equal to (v/2^96))

To convert a spot price to sqrt price, use the spot price as amount_1 and 1u8.into() as amount_0 or use uniswap_sqrt_price_from_price() instead