DeFiHardhat
21,000 USDC
View results
Submission Details
Severity: low
Invalid

Premature Minting of Tokens in `rewardBeans` Function

The rewardBeans function mints the entire newSupply of Beans at the beginning of its execution. This approach can lead to potential risks if subsequent checks or calculations fail or if there are errors in the distribution logic. Minting tokens before confirming that all conditions and calculations are correct increases the risk of unintended token inflation and complicates error handling, potentially leading to discrepancies in the token supply and distribution. Minting after validations would be safer to ensure integrity of operations.

Updates

Lead Judging Commences

giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.