Hawk High

First Flight #39
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: high
Invalid

Level Two teacher pay set to 40%

Summary

In LevelTwo.sol file TEACHER_WAGE_L2 is set to 40%.

Vulnerability Details

In LevelTwo.sol it has the teacher wages set to 40, which would be 40%.

uint256 public constant TEACHER_WAGE_L2 = 40;
uint256 public constant PRINCIPAL_WAGE_L2 = 5;
uint256 public constant PRECISION = 100;

Impact

Teachers will receive 5% more than the docs stated.

Tools Used

Manual review

Recommendations

Recommend moving constants that apply across both levels to one file so that error can be avoided when changing wage levels.

Updates

Lead Judging Commences

yeahchibyke Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.