variance will always revert as we are calculating :
@>>uint256 diff = data[i] - mean; and lets suppose
dataarray is [1,2,3,4,5,6] so mean is 21/6 is eual to 3. so we call variance function in this we are assigning
uint256 diff = data[i] - mean ,so for the first element my diff will be 1-3 equal to -2 but its a unit256 that will cause a revert.
this will cause a revert of stddev as its calling the variance function.
this will cause a revert in both variance and stddev.
@>>int256 diff = data[i] - mean;
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.