In the graduateAndUpgrade
function, the bursary
amount is not updated or reset after the funds are distributed to the teachers and principal. As a result, the bursary still holds the old value, which is no longer available in the contract.
You can see in the code that the bursary
value is not updated after the distribution
1) Any future calculation that depends on the bursary
value will be incorrect, since the value is outdated.
2) This can lead to transaction failures due to insufficient balance or logic errors
1) Vs code
2) Manual review
Update the bursary
value.
The bursary is not updated after wages have been paid in `graduateAndUpgrade()` function
The bursary is not updated after wages have been paid in `graduateAndUpgrade()` function
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.