Like Struct in LikeRegistryLikeRegistry defines a Like struct:
However, the contract never instantiates, stores, or returns this struct. The active like/match flow relies on likes mapping and matches arrays instead.
This leaves Like as unused code, which can mislead reviewers about expected storage design and increases code noise.
The unused declaration is always present in the current implementation.
This is a maintainability and clarity issue, not a direct exploitable vulnerability.
Static usage check:
Expected output pattern shows only the declaration location and no operational usage.
Remove the unused struct if it is not part of near-term functionality:
If historical like records are planned, implement full storage and retrieval paths that actually use this structure.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.