Wrong check for chainlink answer between min and max answer would cause unnecessary DOS when chainlink returns a price at min or max.
Zaros makes use of chainlink pricefeeds to provide reliable data on token price which is used in various parts of the system. On the return price data a validation is checked for if the answer falls within the min and max answer. If it does not fall within this range the function reverts.
However, because of the use of <= and >=, any answer which falls on the minAnswer or maxAnswer would fail. Such answers are not actually out of range. This would cause unnecessary failure of a very crucial function in the system.
chainlinkUtils.getPrice which is very crucial to various operations such as liquidations, depositing collateral and filling orders can fail unnecessarily. This can cause other more critical issues during normal operations, to both users and the protocol.
Manual Review
Make use of < and > instead to properly check for answers falling out of range
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.