Skip to main content

get_amount0_delta

Function get_amount0_delta 

Source
pub fn get_amount0_delta(
    sqrt_ratio_ax96: U160,
    sqrt_ratio_bx96: U160,
    liquidity: u128,
    round_up: bool,
) -> U256
Expand description

Calculates the amount of token0 delta between two sqrt price ratios.