Function unpack_to_funding_amount_delta

Source
pub fn unpack_to_funding_amount_delta<T, const DECIMALS: u8>(
    adjustment: &T,
    latest_funding_amount_per_size: &T,
    position_funding_amount_per_size: &T,
    size_in_usd: &T,
    round_up_magnitude: bool,
) -> Option<T>
where T: FixedPointOps<DECIMALS>,
Expand description

Calculate the funding amount for a position and unpack with the given adjustment.