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§
Sourcefn liquidity_pool_mut(&mut self) -> Result<&mut Self::Pool>
fn liquidity_pool_mut(&mut self) -> Result<&mut Self::Pool>
Get the liquidity pool mutably.
§Requirements
- This method must return
Ok
ifBaseMarket::liquidity_pool
does.
Sourcefn claimable_fee_pool_mut(&mut self) -> Result<&mut Self::Pool>
fn claimable_fee_pool_mut(&mut self) -> Result<&mut Self::Pool>
Get the mutable reference of the claimable fee pool.
§Requirements
- This method must return
Ok
ifBaseMarket::claimable_fee_pool
does.