DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Empty revert() statements

Summary

In the FjordPoints contract, there is an empty revert() statement without providing reason strings or custom errors in Solidity. Using reason strings or custom errors in revert() statements helps in debugging and understanding why a transaction was reverted, thereby improving the overall readability and maintainability of the code.

File: FjordPoints.sol

186: revert();

Tools Used

Aderyn

Recommendations

+ error NoPoints();
function setPointsPerEpoch(uint256 _points) external onlyOwner checkDistribution {
if (_points == 0) {
- revert();
+ revert NoPoints();
}
pointsPerEpoch = _points;
}

Updates

Lead Judging Commences

inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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