Description:
The graduateAndUpgrade() logic assumes listOfTeachers.length> 0 , where if its zero, the payout math could fail silently or return nothing.
Impact:
If the number of teachers are zero, the logic will break and leads to math error for the contract
Remediation:
Consider adding the following code inside LevelOne::graduateAndUpgrade()
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.