MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Unused Custom Error: `Pot__InsufficientFunds`

Summary

The smart contract Pot defines a custom error Pot__InsufficientFunds, which is not utilized anywhere in the code. This oversight could lead to confusion and missed opportunities for handling specific error conditions.

Vulnerability Details

The custom error Pot__InsufficientFunds is declared but never used in the contract.

contract Pot is Ownable(msg.sender) {
error Pot__RewardNotFound();
> error Pot__InsufficientFunds();
error Pot__StillOpenForClaim();

Impact

The presence of unused code can reduce the clarity and maintainability of the contract.

Tools Used

Manual Review

Recommendation

Either remove the unused error to clean up the code or implement it in relevant parts of the contract where fund sufficiency is checked.

Updates

Lead Judging Commences

equious Lead Judge about 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.