sherlock-audit / 2022-11-float-capital-judging

2 stars 1 forks source link

0xmuxyz - Chainlink Oracle's `latestRoundData()` function may return price data which is not fresh or incorrect price data in results #3

Closed sherlock-admin closed 1 year ago

sherlock-admin commented 1 year ago

0xmuxyz

medium

Chainlink Oracle's latestRoundData() function may return price data which is not fresh or incorrect price data in results

Summary

Vulnerability Detail

Impact

Code Snippet

Tool used

Recommendation

require(answeredInRound >= latestRoundId, "Price is not fresh"); require(block.timestamp - updatedAt < PRICE_ORACLE_THRESHOLD_WHICH_IS_NOT_FRESH, "Price round incomplete");



Duplicate of #4