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

There is an unused custom error.

Instances:

https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/Distributor.sol#L44

error Distributor__InvalidCommissionFee();

This custom error is not used anywhere in the code.

Impact

This unused custom error leads to confusion and also increases the source line of code.

Tools Used

Manual Review and VS Code

Recommendations

The custom error should be used either in its right place or it should not be created.

Support

FAQs

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

Give us feedback!