Trait LiquidityMarket

Source
pub trait LiquidityMarket<const DECIMALS: u8>: PositionImpactMarket<DECIMALS> + BorrowingFeeMarket<DECIMALS> {
    // Required methods
    fn total_supply(&self) -> Self::Num;
    fn max_pool_value_for_deposit(
        &self,
        is_long_token: bool,
    ) -> Result<Self::Num>;
}
Expand description

A market for providing liquidity.

Required Methods§

Source

fn total_supply(&self) -> Self::Num

Get total supply of the market token.

Source

fn max_pool_value_for_deposit(&self, is_long_token: bool) -> Result<Self::Num>

Get max pool value for deposit.

Implementations on Foreign Types§

Source§

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

Source§

fn total_supply(&self) -> Self::Num

Source§

fn max_pool_value_for_deposit(&self, is_long_token: bool) -> Result<Self::Num>

Implementors§