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?
Discussion 0
Join free to post in the discussion.
Related questions
- Private variables are public dataBlockchain Developer
- Verifying a contract on EtherscanBlockchain Developer
- Sharing a seed phraseBlockchain Developer
- Why use OpenZeppelinBlockchain Developer
- What makes a flash loan possibleBlockchain Developer
- How an AMM sets pricesBlockchain Developer
- What TVL measuresBlockchain Developer
- A stablecoin pool paying 40%Blockchain Developer