The function graduateAndUpgrade`don't compute correctly the pay for each teacher.
As a result:
The function will revert if there are more teachers that what the contract can pay with the wrong calculation
Teacher will not receive the correct amount if the function does not revert
The amount for each teacher is computer as following:
But this does not account the number of teachers in the calcul.
POC
Update the test as following to add more teachers
High since this impact the fund distributed.
Manual analysis + Foundry + ChatGPT (for the recommandation)
Include the number of teacher in the calculation, here a simplist example:
`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.