Trait BaseMarketMut

Source
pub trait BaseMarketMut<const DECIMALS: u8>: BaseMarket<DECIMALS> {
    // Required methods
    fn liquidity_pool_mut(&mut self) -> Result<&mut Self::Pool>;
    fn claimable_fee_pool_mut(&mut self) -> Result<&mut Self::Pool>;
}
Expand description

Base Market trait for mutable access.

Required Methods§

Source

fn liquidity_pool_mut(&mut self) -> Result<&mut Self::Pool>

Get the liquidity pool mutably.

§Requirements
Source

fn claimable_fee_pool_mut(&mut self) -> Result<&mut Self::Pool>

Get the mutable reference of the claimable fee pool.

§Requirements

Implementations on Foreign Types§

Source§

impl<M: BaseMarketMut<DECIMALS>, const DECIMALS: u8> BaseMarketMut<DECIMALS> for &mut M

Source§

fn liquidity_pool_mut(&mut self) -> Result<&mut Self::Pool>

Source§

fn claimable_fee_pool_mut(&mut self) -> Result<&mut Self::Pool>

Implementors§