The variance function in Statistics library, utilized in the LLMOracleCoordinator contract to compute data standard deviation, has an overflow issue that causes the validate function in the LLMOracleCoordinator contract to always revert.
https://github.com/Cyfrin/2024-10-swan-dria/blob/main/contracts/libraries/Statistics.sol#L22
The finalizeValidation function in the LLMOracleCoordinator contract calls stddev to calculate the standard deviation of the scores.
When scores are not same, the variance function encounters an overflow, leading it to consistently revert.
Due to this overflow issue in the Statistics library, the validate function in LLMOracleCoordinator always fails, preventing validation for any task with more than two scores.
Manual review
Modify the variance function in the Statistics library to prevent overflow and enable successful validation.
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.