DatingDapp

First Flight #33
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

No function to withdraw funds from the `LikeRegistry.sol` contract

Summary

As there is no withdraw() function present in the LikeRegistry.sol contract, ETH received by the contract through the receive() function and ETH left through precision loss while calculating rewards and fees will be stuck in the contract forever, with no way to withdraw them.

Vulnerability Details

This is a high threat vulnerability as a significant amount of ETH could get stuck in the contract forever.

Impact

Stuck ETH.

Tools Used

Manual Review

Recommendations

Create a withdraw() function for the contract.

Updates

Appeal created

n0kto Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Design choice
Assigned finding tags:

invalid_receive_function

Not the best design, but if you send money accidentally, that's a user mistake. Informational.

Support

FAQs

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