encode_sqrt_ratio_x96
Documentation for eth_defi.uniswap_v3.utils.encode_sqrt_ratio_x96 function.
- encode_sqrt_ratio_x96(*, amount0, amount1)
Returns the sqrt ratio as a Q64.96 corresponding to a given ratio of amount1 and amount0
- Parameters
- Returns
the sqrt ratio
- Return type