Trait BaseMarketMutExt

Source
pub trait BaseMarketMutExt<const DECIMALS: u8>: BaseMarketMut<DECIMALS> {
    // Provided methods
    fn apply_delta(
        &mut self,
        is_long_token: bool,
        delta: &Self::Signed,
    ) -> Result<()> { ... }
    fn apply_delta_to_claimable_fee_pool(
        &mut self,
        is_long_token: bool,
        delta: &Self::Signed,
    ) -> Result<()> { ... }
}
Expand description

Extension trait for BaseMarketMut.

Provided Methods§

Source

fn apply_delta( &mut self, is_long_token: bool, delta: &Self::Signed, ) -> Result<()>

Apply delta to the primary pool.

Source

fn apply_delta_to_claimable_fee_pool( &mut self, is_long_token: bool, delta: &Self::Signed, ) -> Result<()>

Apply delta to claimable fee pool.

Implementors§

Source§

impl<M: BaseMarketMut<DECIMALS> + ?Sized, const DECIMALS: u8> BaseMarketMutExt<DECIMALS> for M