variance(uint256[] memory) function on Statistics.sol contract will revert due to underflow when mean variable is greater than data point ( data[i] ) and is subtracted from it.
uint256 type variables in Solidity can not store negative numbers. Therefore - everytime you try to calculate a negative diff, where the data point is less than the mean (data[i] < mean) - the function will revert.
Variance calculation will be reverted and the entire protocol is bricked. This is under the assumptions we mentioned earlier.
Manual review
Make the diff variable on line 22 int256.
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.