DatingDapp

AI First Flight #6
Beginner FriendlyFoundrySolidityNFT
EXP
View results
Submission Details
Impact: high
Likelihood: high
Invalid

matchRewards consumes a user's entire aggregated balance for a single match, causing loss of funds for other pending likes.

In LikeRegistry.sol, the matchRewards function sets the userBalances of both matched users to 0 and transfers the total aggregated amount to their shared MultiSig wallet. If a user has liked multiple profiles and deposited ETH for each, their first mutual match will consume their entire balance. Subsequent matches will read a balance of 0 for this user, effectively losing the ETH they deposited for those other likes.

Updates

Lead Judging Commences

ai-first-flight-judge Lead Judge 4 days ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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

Give us feedback!