The contract defines a cutOffScore variable and allows score manipulation via review and re-review processes. However, the contract lacks an implementation to automatically identify and graduate students who meet or exceed the cutOffScore.
Despite the presence of a Graduated(address levelTwo) event, the contract only allows manual graduation via _graduate(), which is never called in the context of students reaching the required score. This creates a logical gap where eligible students remain stuck in the student list even though they’ve met graduation criteria.
No logic exists to evaluate or upgrade students based on their score.
eligible students remain stuck in the student list even though they’ve met graduation criteria.
Introduce a new public function graduateStudents(address _levelTwo) callable by the principal that:
Iterates through listOfStudents.
Checks studentScore >= cutOffScore.
All students are graduated when the graduation function is called as the cut-off criteria is not applied.
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.