Use of deprecated latestAnswer() #734
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-34
insufficient quality report
This report is not of sufficient quality
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-11-kelp/blob/main/src/oracles/ChainlinkPriceOracle.sol#L38
Vulnerability details
Impact
According to the Chainlink documentation (https://docs.chain.link/data-feeds/api-reference), the function is deprecated and should not be used.
Proof of Concept
Tools Used
Manual review.
Recommended Mitigation Steps
Use
latestRoundData()
instead.Assessed type
Oracle
The text was updated successfully, but these errors were encountered: