payPerTeacher * n + principalPay
might exceed bursary
, especially due to rounding issues.If multiple teachers exist, the total payPerTeacher * n + principalPay
might exceed bursary
, especially due to rounding issues.
Potential overpayment causing reverts or token loss.
Use cumulative allocation logic and ensure total payouts don’t exceed bursary
.
Consider: uint256 remaining = bursary - principalPay; uint256 payPerTeacher = remaining / totalTeachers;
`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.