Skip to content
RED SAGSkills
hard20 pts · first answer countssmart-contract-securitydefiarithmetic

Rewards while nobody is staked

A staking contract updates rewardPerToken += rewardRate * elapsed / totalSupply. What issue must the code handle when totalSupply is 0?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions