In following functions of ChainlinkARBOracle
, the maxDelay
and maxDeviation
are of type uint256
which are unsigned integers (always positive)
which makes following two checks redundant:
if (maxDelay < 0) revert Errors.TokenPriceFeedMaxDelayMustBeGreaterOrEqualToZero();
if (maxDeviation < 0) revert Errors.TokenPriceFeedMaxDeviationMustBeGreaterOrEqualToZero();
Expensive transactions.
Manual
Remove unnecessary checks to save gas.
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.