BriVault

First Flight #52
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: high
Invalid

The `cancelParticipation` function does not emit an event.

The cancelParticipation function does not emit an event.

Description

  • The cancelParticipation function does not emit an event after state changes.

    function cancelParticipation() public {
    if (block.timestamp >= eventStartDate) {
    revert eventStarted();
    }
    uint256 refundAmount = stakedAsset[msg.sender];
    stakedAsset[msg.sender] = 0;
    uint256 shares = balanceOf(msg.sender);
    _burn(msg.sender, shares);
    IERC20(asset()).safeTransfer(msg.sender, refundAmount);
    // @audit-low missing event emission
    }// Root cause in the codebase with @> marks to highlight the relevant section

Risk

Likelihood:

This happens every time the cancel participation function is called.

Impact:

Low

  • Affects off-chain systems that use events to collect data.

Recommended Mitigation

  • Emit an event for cancelling participation.

Updates

Appeal created

bube Lead Judge 19 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!