pub trait SwapMarketMut<const DECIMALS: u8>: SwapMarket<DECIMALS> + BaseMarketMut<DECIMALS> {
// Required method
fn swap_impact_pool_mut(&mut self) -> Result<&mut Self::Pool>;
}
Expand description
A mutable market for swapping tokens.
Required Methods§
Sourcefn swap_impact_pool_mut(&mut self) -> Result<&mut Self::Pool>
fn swap_impact_pool_mut(&mut self) -> Result<&mut Self::Pool>
Get the swap impact pool mutably.
§Requirements
- This method must return
Ok
ifBaseMarket::swap_impact_pool
does.