Incorrect check on maxDeviation
inside the function ChainlinkARBOracle.addTokenMaxDeviation
The function addTokenMaxDeviation
reverts if maxDeviation
< 0. However since maxDeviation
is uint256, it will always be non-negative.
The correct check is to check that maxDeviation
is > 0.
If maxDeviation
is set to 0, this can halt the function consult
since the function consult
reverts when the price deviates above the threshold set by maxDeviation
.
maxDeviation
= 0 means that the price cannot change from the previous price.
Fix the check inside addTokenMaxDeviation
.
Revert if maxDeviation == 0
Redundant check on maxDelay and/or maxDeviation in ARBOracle
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.