Trait SwapMarket

Source
pub trait SwapMarket<const DECIMALS: u8>: BaseMarket<DECIMALS> {
    // Required methods
    fn swap_impact_params(&self) -> Result<PriceImpactParams<Self::Num>>;
    fn swap_fee_params(&self) -> Result<FeeParams<Self::Num>>;
}
Expand description

A market for swapping tokens.

Required Methods§

Source

fn swap_impact_params(&self) -> Result<PriceImpactParams<Self::Num>>

Get swap impact params.

Source

fn swap_fee_params(&self) -> Result<FeeParams<Self::Num>>

Get the swap fee params.

Implementations on Foreign Types§

Source§

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

Implementors§