According to the documentation, teachers are collectively entitled to 35% of the bursary. However, the current implementation allocates 35% of the bursary to each teacher individually, leading to an overpayment when multiple teachers exist.
The current wage calculation for teachers is as follows:
This formula allocates 35% of the total bursary to each teacher, rather than splitting 35% among all teachers. However, as per the documentation:
“Teachers will share in 35% of all school fees paid as their wages.”
This implies that 35% of the bursary should be distributed among all teachers, not given in full to each
If there is more than one teacher, the system will overpay the total teacher wages—potentially distributing more than 100% of the bursary. This breaks the intended accounting model and could drain school funds.
Manual code review.
Update the payPerTeacher calculation to divide the 35% wage pool equally among all teachers:
This ensures that the total teacher payout does not exceed 35% of the bursary.
`payPerTeacher` in `graduateAndUpgrade()` is incorrectly calculated.
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.