Description
I assume diff is deviation ( deviations can either be
positive or negative)
so initializing diff as uint256 is a wrong thing to do.
Impact: Revert when diffis negative, which is not supposed to be. Logic error
Recommended mitigation
diff and sum should be initialized as int256 and then ans can be finally wrapped as uint256
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.