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§
Sourcefn just_passed_in_seconds_for_borrowing(&mut self) -> Result<u64>
fn just_passed_in_seconds_for_borrowing(&mut self) -> Result<u64>
Get the just passed time in seconds for the given kind of clock.
Sourcefn borrowing_factor_pool_mut(&mut self) -> Result<&mut Self::Pool>
fn borrowing_factor_pool_mut(&mut self) -> Result<&mut Self::Pool>
Get borrowing factor pool mutably.
§Requirements
- This method must return
Ok
ifBorrowingFeeMarket::borrowing_factor_pool
does.