From 5624e604c2346226547d462fbdb445788c090331 Mon Sep 17 00:00:00 2001 From: Reinis Martinsons <77973553+Reinis-FRP@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:11:20 +0300 Subject: [PATCH] N-13 [Oval] Misleading Comment (#25) Signed-off-by: Reinis Martinsons --- src/adapters/source-adapters/ChainlinkSourceAdapter.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/source-adapters/ChainlinkSourceAdapter.sol b/src/adapters/source-adapters/ChainlinkSourceAdapter.sol index fe3dbf9..e44bd95 100644 --- a/src/adapters/source-adapters/ChainlinkSourceAdapter.sol +++ b/src/adapters/source-adapters/ChainlinkSourceAdapter.sol @@ -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); }