User can not join new event after participating in the previous one because _participants
mapping is not reseted.
MartenitsaEvent::joinEvent
reverts if user was participant in previous event, when stopEvent
is called at the end of an event, it sets the producers role back to false, but does not do the same with the participants, as such, they can join next event because joinEvent
require !_participants
.
##Proof of code
You may add the following code to MartenitsaEvent.t.sol
to corroborate the issue:
This issue could significantly impact the future of the protocol, as the number of participants in future events would be negatively impacted by this issue
Manual review
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.