BriVault

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

Missing `Event` emission at the end of the `cancelParticipation()` function. Off-chain or front-end system inability to update Users interraction with the protocol.

Root + Impact

[L-1] Missing `Event` emission at the end of the
`cancelParticipation` function. Off-chain or front-end system
inability to update Users interraction with the protocol.

Description

The `cancelParticipation()` function does not emit an event when a user cancels their participation. As a result, off-chain systems, front-ends relying on events to track user activity cannot detect cancellations directly. While the internal state is updated correctly
(staked assets are refunded and shares burned), the absence of
an event reduces transparency and traceability.

Risk

Likelihood:

  • This is likely to occur when a user decided to cancel participation (i.e call the cancelParticipation()function.

Impact:

The issue has minimal impact on the protocol,
as the core functionality remains unaffected and user funds are
handled correctly. However, off-chain systems, analytics,
or front-end applications that rely on events to track user
actions will not detect cancellations, which could lead to
incomplete reporting or monitoring gaps. There is no direct
exploitation vector associated with this issue, making it a
low-risk concern.

Recommended Mitigation

//add emit event after external call function is executed
+ emit ParticipationCancelled(msg.sender, refundAmount);
Updates

Appeal created

bube Lead Judge 20 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
defiak Submitter
19 days ago
bube Lead Judge
16 days ago
bube Lead Judge 15 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!