In the current implementation of the DatingDapp protocol, users must pay 1 ETH to like someone. However, if a user never finds a match, their previous deposits remain permanently locked within the contract. Since there is no function allowing users to withdraw their funds, this creates a "once entered, no going back until match found" situation where funds become irretrievable if no matches are found.
Users who do not receive a match have no way to recover their ETH, leading to a poor user experience and financial loss.
Users may be hesitant to participate in the protocol due to the risk of losing funds if they are not matched.
To address this issue, an unlikeUser
function should be implemented. This function allows users to revoke their like and recover their 1 ETH deposit if they are unmatched. Something like this:
Prevents Fund Lockup: Users who are not matched can retrieve their ETH.
Enhances User Experience: Allows users to control their interactions and make decisions freely.
Improves Protocol Trust: Encourages more users to engage with the platform without fear of losing their funds.
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.