Skip to content

Commit

Permalink
fix[oval-audit-n-13]: improve chainlink source adapter comment
Browse files Browse the repository at this point in the history
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
  • Loading branch information
Reinis-FRP committed Jun 17, 2024
1 parent 297ab25 commit 026a6e1
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 026a6e1

Please sign in to comment.