The LikeRegistry
contract lacks an array to track all users that each user has liked, making it difficult for the frontend to display liked profiles and prevent duplicate likes. This leads to poor UX and potential wasted gas on failed transactions.
Current implementation only tracks likes in a boolean mapping:
Missing critical tracking:
Poor user experience
Wasted gas on failed transactions
Frontend cannot show liked profiles
Users cannot track their likes
Difficult to build user dashboard
Add liked users array:
add code snippet to likeUser
function.
Add getter functions:
Foundry Testing Framework
Manual Review
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.