Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

Unused custom error

Summary

Unused custom error in Distributor.sol.

Vulnerability Details

The following custom error Distributor__InvalidCommissionFee() is not used anywhere. Since the COMISSION_FEE is a constant and it is not caller controlled input plus it is set to 500 (5%) there is no point in checking it with if/revert statement in the logic of the _distribute method so that is most probably why this error is not used.

Impact

Unused code present.

Tools Used

Manual Review

Recommendations

Remove the custom error Distributor__InvalidCommissionFee(); from Distributor.sol

Support

FAQs

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