The current implementation works correctly for the value 10, but the logic is non-standard and could lead to errors if modified.
Likelihood:
* This occurs when `closePot()` is called after the 90-day period
* The issue manifests if someone attempts to change the manager cut percentage without understanding the current logic
Impact:
* Confusing code that is difficult to maintain
* High risk of introducing bugs if the percentage is changed
* If `managerCutPercent` is changed to represent actual percentage (e.g., 10 for 10%), the calculation becomes incorrect
* Non-standard percentage calculation makes code review more difficult
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.