pub const fn block_reward(
    total_supply: u64,
    block_time: u16,
    coinbase_reward: u64,
    transaction_fees: u64
) -> u64
Expand description

Calculate the block reward, given the total supply, block time, coinbase reward, and transaction fees. R_staking = floor((0.05 * S) / H_Y1) + CR / 2 + TX_F. S = Total supply. H_Y1 = Expected block height at year 1. CR = Coinbase reward. TX_F = Transaction fees.