graduateAndUpgradeThe contract pays each teacher the full teacher wage portion of the bursary rather than distributing it evenly among all teachers.
The following code:
calculates the entire teacher share and then pays that amount to each teacher. If there are 3 teachers, they receive a total of 3x the intended amount.
Overpayment depletes the contract’s USDC balance and may leave insufficient funds for the principal. It can also cause the final transfer to revert due to insufficient balance.
Manual Review
Split the teacher share equally:
`payPerTeacher` in `graduateAndUpgrade()` is incorrectly calculated.
`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.