We can combine the repeated checks in ChainlinkARBOracle::addTokenMaxDeviation(),addTokenMaxDelay()
, ChainlinkARBOracle::addTokenPriceFeed()
and also for ChainlinkARBOracle::getMarketTokenInfo
into a single check.
In ChainlinkARBOracle::addTokenMaxDeviation()
In ChainlinkARBOracle::addTokenMaxDelay()
In ChainlinkARBOracle::addTokenPriceFeed()
In ChainlinkARBOracle::getMarketTokenInfo
Here if we write the two conditions separately it increases the number of SSTORE operations, which can cost more gas.
Wastes gas
Manual Review
Combine the several checks into a single check
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.