Skip to content

Commit 7b8d0c4

Browse files
docs: apply suggestions
Co-authored-by: Quentin Garchery <[email protected]> Signed-off-by: Merlin Egalite <[email protected]>
1 parent 7475697 commit 7b8d0c4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/libraries/ChainlinkDataFeedLib.sol

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ library ChainlinkDataFeedLib {
1313
/// @dev Performs safety checks and returns the latest price of a `feed`.
1414
/// @dev When `feed` is the address zero, returns 1.
1515
/// @dev Notes on safety checks:
16-
/// - A stale period is not checked since the heartbeat of a Chainlink feed is an offchain parameter that can
17-
/// change any time and checking the price deviation onchain is not possible. It was not recommended by the Chailink
16+
/// - Staleness is not checked since the heartbeat of a Chainlink feed is an offchain parameter that can
17+
/// change at any time and checking the price deviation onchain is not possible. It was not recommended by the Chailink
1818
/// team either.
1919
/// - The price is not checked to be in the min/max bounds since the check is already performed by Chainlink most of
20-
/// the time. Adding
21-
/// a safety margin would be arbitrary as well since the contract is immutable.
20+
/// the time. Adding a safety margin would be arbitrary as well since the contract is immutable.
2221
/// - No fallback is used. In case the oracle reverts, Morpho Blue users can still exit their positions but
2322
/// can't be liquidated.
2423
function getPrice(AggregatorV3Interface feed) internal view returns (uint256) {

0 commit comments

Comments
 (0)