Function cfg_types::pools::saturated_balance_proration
source · pub fn saturated_balance_proration<Balance: From<Seconds> + FixedPointOperand + Div<Output = Balance>>(
annual_amount: Balance,
period: Seconds
) -> Balance
Expand description
Converts an annual balance amount into its proratio based on the given period duration.