Description:
The graduateAndUpgrade
function is intended to execute only after the school session concludes, rewarding participants and upgrading the contract to the next level. However, it currently lacks a critical check: verifying that all students have received the required four reviews
(i.e., one per week over four weeks) before proceeding with the upgrade.
This oversight allows the contract upgrade to occur even when some students have not been fully reviewed by the teachers. This directly contradicts the contract’s intended logic and academic fairness, which assumes all students are evaluated consistently over the duration of the session.
Premature Upgrade: The contract can be upgraded even if the academic session hasn’t concluded or not all students have been fairly reviewed.
Inconsistent Evaluation: Students may graduate to the next level without being fully evaluated, potentially violating the intended rules of academic progression.
System Integrity Flaw: Violates the assumed logic that performance and reviews influence graduation and upgrade eligibility.
Update graduateAndUpgrade
to:
Ensure the session has ended.
Iterate through all enrolled students to confirm each has received 4 reviews.
All students are graduated when the graduation function is called as the cut-off criteria is not applied.
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.