pub fn scale_v3_uniswap_sqrt_price(
    sqrt_price: Uint256,
    scale_percentage: f64,
    zero_for_one: bool
) -> Uint256
Expand description

Scales the input sqrt_price by scale factor to enable limited slippage in Uniswap swaps It is necessary to first identify the direction of the swap as Uniswap depends on that for slippage calculation, use get_uniswap_tokens() to receive an ordered tuple (token0: Address, token1: Address)

For a swap with token0 in and token1 out, zero_for_one must be true. Otherwise it should be false.