function startSession(uint256 _cutOffScore) public onlyPrincipal notYetInSession {
sessionEnd = block.timestamp + 4 weeks;
inSession = true;
cutOffScore = _cutOffScore;
}
Initial State: A session is active.
Step 1: The session end time (sessionEnd) is reached.
Outcome: The session remains active (inSession = true), and no state updates occur.
Implications: The system does not transition to a post-session state, leading to potential inconsistencies.
How they are affected: The undefined state could lead to confusion or exploitation.
function endSession() public onlyPrincipal {
require(block.timestamp >= sessionEnd, "Session not ended yet");
inSession = false;
emit SessionEnded(block.timestamp);
}
`inSession` not updated after during upgrade
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.