MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

Lack of Event Emissions in the `Pot.sol` contract.

Description: The contract does not emit events for critical operations such as claiming rewards and closing the pot.

Impact: Without events, it becomes difficult to track and audit contract activity off-chain, reducing transparency and making it harder to debug or verify actions.

Proof of Concept:

Recommended Mitigation: Emit events for key actions such as RewardClaimed and PotClosed to provide a clear audit trail.

event RewardClaimed(address indexed player, uint256 reward);
event PotClosed(uint256 remainingRewards, uint256 managerCut);
function claimCut() public {
...
emit RewardClaimed(player, reward);
}
function closePot() external onlyOwner {
...
emit PotClosed(remainingRewards, managerCut);
}
Updates

Lead Judging Commences

equious Lead Judge 12 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Missing Events

Support

FAQs

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