MyCut

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

Commented Code Parts

Summary

Instances of commented-out code were observed in the constructor() function of the Pot contract.

Vulnerability Details

Commented-out code can give the impression that the code is unfinished and may lead to confusion. This can affect the maintainability and readability of the codebase.

constructor(address[] memory players, uint256[] memory rewards, IERC20 token, uint256 totalRewards) {
....
// i_token.transfer(address(this), i_totalRewards);
....
}

Impact

No impact

Tools Used

Manual review

Recommendations

It is recommended to either implement the commented functionalities, or to remove commented parts.

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.