Rewrite GetProofOfWorkReward() and GetProofOfStakeReward() functions