Skip to content
Audit finding Intermediate

Usage of deprecated Chainlink functions

Ruhum Follow

Originally disclosed on Code4rena

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.


The original report as published on Code4rena, by Ruhum. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

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.

More by Ruhum

View all

55 more disclosed reports, best first.

More from Rolla contest

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.