DatingDapp

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

Missing `FeesWithdrawn` Event in `withdrawFees()`

[LOW] Missing FeesWithdrawn Event in withdrawFees()

File: sources/2025-02-datingdapp/src/LikeRegistry.sol
Lines: 64–69

Summary

withdrawFees() transfers funds with no emitted event, making fee withdrawals invisible on-chain.

Vulnerability Details

function withdrawFees() external onlyOwner {
...
(bool success,) = payable(owner()).call{value: totalFeesToWithdraw}("");
require(success, "Transfer failed");
// No event emitted
}

Impact

Low — reduces transparency and off-chain auditability.

Tools Used

  • Manual review

Recommendations

+ event FeesWithdrawn(address indexed owner, uint256 amount);
function withdrawFees() external onlyOwner {
...
require(success, "Transfer failed");
+ emit FeesWithdrawn(owner(), totalFeesToWithdraw);
}
Updates

Lead Judging Commences

ai-first-flight-judge Lead Judge 6 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!