parachain_bond_fund = total_reward * 0.3 # Amount of PONT that goes to Parachain Bond Fund.
collators_reward = (total_reward) - parachain_bond_fund # Amount of rewards that would be shared between collators.
collator_reward = collators_reward * generated_blocks_fraction # How much reward goes to the collator based on the amount of blocks generated by the collator per total blocks generated in that round. This calculation is done for each collator.
commission = collator_reward * 0.2 # How much commission collator earned.
reward = collator_reward - commission # How much reward is going to be distributed between collator and nominators.
pay_to_collator = commission + (reward * stake_fraction) # How much PONT to pay to the collator.
pay_to_nominator = (reward * stake_fraction) # How much PONT to pay to each collator nominator.