Skip to content

Commit

Permalink
N-13 [Oval] Misleading Comment (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Reinis Martinsons <[email protected]>
  • Loading branch information
Reinis-FRP authored Jun 18, 2024
1 parent 70e5b66 commit 5624e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/source-adapters/ChainlinkSourceAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ abstract contract ChainlinkSourceAdapter is DiamondRootOval {
(int256 historicalAnswer, uint256 historicalUpdatedAt, uint80 historicalRoundId) =
_searchRoundDataAt(timestamp, roundId, maxTraversal);

// Validate returned data. If it is uninitialized we fallback to returning the current latest round data.
// Validate returned data. If it is uninitialized or too old, fall back to returning the current latest round data.
if (historicalUpdatedAt > block.timestamp - maxAge()) {
return (historicalAnswer, historicalUpdatedAt, historicalRoundId);
}
Expand Down

0 comments on commit 5624e60

Please sign in to comment.