Usage of deprecated Chainlink functions
Submitted by Ruhum, also found by 0x1f8b, cccz, and WatchPug
The Chainlink functions latestAnswer() and getAnswer() are deprecated. Instead, use the latestRoundData() and getRoundData() functions.
Proof of Concept
ChainlinkOracleManager.sol#L120
ChainlinkFixedTimeOracleManager.sol#L81
ChainlinkFixedTimeOracleManager.sol#L84
Go to https://etherscan.io/address/0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419#code and search for latestAnswer() or getAnswer(). You’ll find the deprecation notice.
Recommended Mitigation Steps
Switch to latestRoundData() as described here.
0xca11 (Rolla) confirmed, resolved, and commented:
Fixed in RollaProject/quant-protocol#89.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity security bug in Rolla contest. Code4rena made it public on 24 June 2022. Found in the 2022-03-rolla audit contest (finding M-03).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.