Description:
The Like
struct is declared in LikeRegistry.sol
, but it is never used within the contract. This results in unnecessary dead code, which increases contract size and reduces code clarity without providing any functional value. Unused structures can also lead to confusion for future maintainers and auditors, as they may assume the struct is intended for use in some part of the logic.
Recommended Mitigation:
Remove the unused struct if it is not needed to reduce contract size and improve maintainability.
Refactor the contract to utilize the struct if it was initially intended to store like-related data. This could improve readability and reduce redundant mappings or variables if applicable.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.