pub fn compute_total_payout<T: Config>(
    era_duration: TsInMs,
    living_time: TsInMs,
    total_left: RingBalance<T>,
    payout_fraction: Perbill
) -> (RingBalance<T>, RingBalance<T>)
Expand description

The total payout to all validators (and their nominators) per era and maximum payout.

Defined as such: staker-payout = yearly_inflation(npos_token_staked / total_tokens) * total_tokens / era_per_year maximum-payout = max_yearly_inflation * total_tokens / era_per_year

era_duration is expressed in millisecond.