The giveReview
function checks the review count for students. However, the invariant in the contract are:
"Students can only be reviewed once per week"
"Student must have 4 reviews before upgrade"
The following check in giveReview
function breaks the invariant because it allows 5 reviews instead of the intended 4:
Students may receive more reviews than intended, violating system assumptions tied to the upgrade condition.
Manual review
Update the check to enforce a maximum of 4 reviews:
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.