29347 - [SC - Insight] Chainlinks latestRoundData might return stale o...
Description
Brief/Intro
Vulnerability Details
function getChainlinkPrice18Decimals(
address base,
address quote
) public view returns (PriceResponse memory response) {
@> try registry.latestRoundData(base, quote) returns (
uint80 roundId,
int256 answer,
uint256 /* startedAt */,
uint256 updatedAt,
uint80 /* answeredInRound */
) {
response.success = true;
response.roundId = roundId;
response.answer = _convertTo18Decimals(answer, registry.decimals(base, quote));
response.updatedAt = updatedAt;
} catch {}
}Impact Details
References
Recommendation to fix
Proof of Concept
Previous29341 - [SC - Insight] Unsafe Downcast vulnerability this can lead to ...Next29348 - [SC - Insight] Token price returned by PriceConsumer may be in...
Last updated
Was this helpful?