listOfTeachers.push(_teacher);
isTeacher[_teacher] = true;
Initial State: The principal is the only authorized user to add teachers.
Step 1: The principal calls addTeacher with their own address.
Outcome: The principal is added to the listOfTeachers and marked as a teacher.
Implications: The principal can collect payments as both a teacher and the principal, leading to unfair distribution of funds.
How they are affected: Teachers may receive less payment due to the principal exploiting the system.
if (_teacher == principal) {
revert HH__NotAllowed();
}
Principal can add themselves as teacher and share in teacher pay upon graduation
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.