Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: low
Invalid

Calls will revert when `totalSupply()` returns zero

Summary

totalSupply() being zero will result in a division by zero,
causing the transaction to fail.
The function should instead special-case this scenario, and avoid reverting.

Vulnerability Details

There is 1 instance of this issue:

Impact

Possibly dividing by 0 if the totalSupply ever returns a zero.

Tools Used

Manual Review

Recommendations

Checking if totalSupply() greater than zero before division.

Updates

Lead Judging Commences

hans Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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