Trait BorrowingFeeMarketMut

Source
pub trait BorrowingFeeMarketMut<const DECIMALS: u8>: BorrowingFeeMarket<DECIMALS> {
    // Required methods
    fn just_passed_in_seconds_for_borrowing(&mut self) -> Result<u64>;
    fn borrowing_factor_pool_mut(&mut self) -> Result<&mut Self::Pool>;
}
Expand description

A market that can update the borrowing fees.

Required Methods§

Source

fn just_passed_in_seconds_for_borrowing(&mut self) -> Result<u64>

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

Source

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

Get borrowing factor pool mutably.

§Requirements

Implementations on Foreign Types§

Source§

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

Implementors§