generationDeviationFactor
and validationDeviationFactor
both are defined as deviation factors.
generationDeviationFactor
is used when comparing in if ( generationScores[g_i] >=mean - generationDeviationFactor * stddev)
in finalizeValidation function.
Similarly validationDeviationFactor
should be used at the time of score >= _mean - _stddev
and (score <= _mean + _stddev) comparing for validation but it is not used giving wrong results. And it defined nowhere it is used.
https://github.com/Cyfrin/2024-10-swan-dria/blob/main/contracts/llm/LLMOracleCoordinator.sol#L343
https://github.com/Cyfrin/2024-10-swan-dria/blob/main/contracts/llm/LLMOracleCoordinator.sol#L368
score >= _mean - _stddev
and (score <= _mean + _stddev)
will be wrongly compared without using validationDeviationFactor
. It is nowhere used and defined for this only.
LLMOracleCoordinator.sol#L343
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.