Real Ruby Turtle
Medium
OracleRelay.sol::currentValue() calls latestAnswer() on the aggregator, however this function is deprecated.
currentValue()
uses deprecated latestAnswer()
function currentValue() external view override returns (uint256) {
int256 latest = aggregator.latestAnswer();
require(latest > 0, "chainlink: px < 0");
return uint256(latest);
}
No response
No response
No response
Creating and filling orders is not possible because calls to this function revert.
No response
Properly use latestRoundData() instead of latestAnswer()