Trait cfg_traits::fee::FeeAmountProration
source · pub trait FeeAmountProration<Balance, Rate, Time> {
// Required methods
fn saturated_prorated_amount(
&self,
portfolio_valuation: Balance,
period: Time
) -> Balance;
fn saturated_prorated_rate(
&self,
portfolio_valuation: Balance,
period: Time
) -> Rate;
}
Expand description
Trait to prorate a fee amount to a rate or amount
Required Methods§
sourcefn saturated_prorated_amount(
&self,
portfolio_valuation: Balance,
period: Time
) -> Balance
fn saturated_prorated_amount( &self, portfolio_valuation: Balance, period: Time ) -> Balance
Returns the prorated amount based on the NAV passed time period.
sourcefn saturated_prorated_rate(
&self,
portfolio_valuation: Balance,
period: Time
) -> Rate
fn saturated_prorated_rate( &self, portfolio_valuation: Balance, period: Time ) -> Rate
Returns the proratio rate based on the NAV and passed time period.