Beginner FriendlyFoundryGameFi
100 EXP
View results
Submission Details
Severity: medium
Invalid

Event can't be stopped

Summary

Martenitsa Event can't be stopped due to logical error.

Vulnerability Details

In MartenitsaEvent::stopevent() , there is incorrect logic highly disrupting the protocol

require(block.timestamp >= eventEndTime, "Event is not ended");

According to this logic, we can't stop the event after the EndTime.

Impact

The Event will not be able to stop, disrupting the protocol

Tools Used

Manual Review

Recommendations

Change the statement to

require(block.timestamp < eventEndTime, "Event is not ended");
Updates

Lead Judging Commences

bube Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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