The LevelOne contract fails to enforce its documented graduation policy. While the system design includes a cutOffScore parameter and student scoring mechanism, the graduateAndUpgrade function does not verify that students have met the minimum score requirement before facilitating their progression to the next academic level.
The contract establishes multiple mechanisms to track student performance:
A cutOffScore state variable is defined and set by the principal
Each student has an associated studentScore that starts at 100
Teachers can decrease scores through negative reviews
The documentation explicitly states: "If they fail to meet the cutoff score at the end of a school session, they will not be graduated to the next level"
However, the critical disconnect occurs in the system upgrade logic. The graduateAndUpgrade function, which handles the transition to the next level:
The function focuses solely on financial distribution and system upgrade authorization, completely omitting the academic qualification check that should prevent underperforming students from graduating.
Academic Integrity Compromise: The entire academic evaluation system loses its meaning if performance has no bearing on advancement.
Trust Violation: Students and teachers participate in a system that claims to have standards but fails to enforce them.
Economic Waste: Teachers are paid for evaluating students even though these evaluations have no practical impact on graduation outcomes.
Reputation Risk: Once stakeholders recognize this disconnect, trust in the institution could collapse.
To align implementation with requirements, the graduateAndUpgrade function should be modified to:
Create a filtered list of qualifying students based on the cutOffScore requirement
Either prevent upgrade if any students don't qualify, or exclude non-qualifying students from the upgrade process
Consider implementing a specific event to track which students qualified for graduation
Example solution:
This implementation would ensure that only academically qualified students graduate, maintaining the integrity of the stated graduation requirements.
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.