Function FeeManager.getValidatorPayouts

Calculate the Amount of fees and rewards that should be paid to each Validator for the given block height

auto getValidatorPayouts(ValidatorInfos) (
  in Height height,
  in BlockRewards rewards,
  ValidatorInfos validators
) @safe;

The actual payment height which contains the Coinbase tx will be the height of the last block in the next payout period.

Parameters

NameDescription
height reward and fees are for this block height
rewards block rewards for Commons Budget and Validators
validators enrolled Validators who signed the block

Return

Amount of fees that should be paid to each Validator