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§
Sourcefn borrowing_factor_pool(&self) -> Result<&Self::Pool>
fn borrowing_factor_pool(&self) -> Result<&Self::Pool>
Get borrowing factor pool.
Sourcefn total_borrowing_pool(&self) -> Result<&Self::Pool>
fn total_borrowing_pool(&self) -> Result<&Self::Pool>
Get total borrowing pool.
Sourcefn borrowing_fee_params(&self) -> Result<BorrowingFeeParams<Self::Num>>
fn borrowing_fee_params(&self) -> Result<BorrowingFeeParams<Self::Num>>
Get borrowing fee params.
Sourcefn passed_in_seconds_for_borrowing(&self) -> Result<u64>
fn passed_in_seconds_for_borrowing(&self) -> Result<u64>
Get the passed time in seconds for the given kind of clock.
Sourcefn borrowing_fee_kink_model_params(
&self,
) -> Result<BorrowingFeeKinkModelParams<Self::Num>>
fn borrowing_fee_kink_model_params( &self, ) -> Result<BorrowingFeeKinkModelParams<Self::Num>>
Get borrowing fee kink model params.