Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calculate_yearly_prep_rewards(irep):
- b1 = (irep * 0.5) * 22 * (1 / 1296000)
- b2 = (irep * 0.5) * 100 * (1 / 1296000)
- return (b1 + b2) * 43120 * 365
- def calculate_yearly_staking_rewards(rrep, delegated_supply):
- b3 = (rrep * delegated_supply) * (1 / 15552000)
- return b3 * 43120 * 365
- print(f"P-Rep Rewards (50,000 I-Rep): {calculate_yearly_prep_rewards(50000)} ICX")
- print(f"P-Rep Rewards (40,000 I-Rep): {calculate_yearly_prep_rewards(40000)} ICX")
- print(f"ICONist Staking Rewards: {calculate_yearly_staking_rewards(0.1926, 189022412)} ICX")
- irep_50k_issuance = calculate_yearly_prep_rewards(50000) + calculate_yearly_staking_rewards(0.1926, 189022412)
- irep_40k_issuance = calculate_yearly_prep_rewards(40000) + calculate_yearly_staking_rewards(0.1926, 189022412)
- print(f"Yearly Inflation (50,000 I-Rep): {round(irep_50k_issuance / 806127870 * 100, 2)}%")
- print(f"Yearly Inflation (40,000 I-Rep): {round(irep_40k_issuance / 806127870 * 100, 2)}%")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement