Trait BorrowingFeeMarket

Source
pub trait BorrowingFeeMarket<const DECIMALS: u8>: BaseMarket<DECIMALS> {
    // Required methods
    fn borrowing_factor_pool(&self) -> Result<&Self::Pool>;
    fn total_borrowing_pool(&self) -> Result<&Self::Pool>;
    fn borrowing_fee_params(&self) -> Result<BorrowingFeeParams<Self::Num>>;
    fn passed_in_seconds_for_borrowing(&self) -> Result<u64>;
    fn borrowing_fee_kink_model_params(
        &self,
    ) -> Result<BorrowingFeeKinkModelParams<Self::Num>>;
}
Expand description

A market with borrowing fees.

Required Methods§

Source

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

Get borrowing factor pool.

Source

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

Get total borrowing pool.

Source

fn borrowing_fee_params(&self) -> Result<BorrowingFeeParams<Self::Num>>

Get borrowing fee params.

Source

fn passed_in_seconds_for_borrowing(&self) -> Result<u64>

Get the passed time in seconds for the given kind of clock.

Source

fn borrowing_fee_kink_model_params( &self, ) -> Result<BorrowingFeeKinkModelParams<Self::Num>>

Get borrowing fee kink model params.

Implementations on Foreign Types§

Source§

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

Implementors§