Trait SwapMarketMut

Source
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§

Source

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

Get the swap impact pool mutably.

§Requirements

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§