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§
Sourcefn total_supply(&self) -> Self::Num
fn total_supply(&self) -> Self::Num
Get total supply of the market token.
Sourcefn max_pool_value_for_deposit(&self, is_long_token: bool) -> Result<Self::Num>
fn max_pool_value_for_deposit(&self, is_long_token: bool) -> Result<Self::Num>
Get max pool value for deposit.