Skip to content

Commit

Permalink
docs: remove fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinEgalite committed Oct 16, 2023
1 parent d9c408e commit efbc65e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libraries/ChainlinkDataFeedLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ library ChainlinkDataFeedLib {
/// @dev When `feed` is the address zero, returns 1.
/// @dev Notes on safety checks:
/// - Staleness is not checked because it's assumed that the Chainlink feed keeps its promises on this.
/// - The price is not checked to be in the min/max bounds because it's assumed that the Chainlink feed keeps its promises on this.
/// - No fallback is used. In case the oracle reverts, Morpho Blue users can still exit their positions but
/// can't be liquidated.
/// - The price is not checked to be in the min/max bounds because it's assumed that the Chainlink feed keeps its
/// promises on this.
function getPrice(AggregatorV3Interface feed) internal view returns (uint256) {
if (address(feed) == address(0)) return 1;

Expand Down

0 comments on commit efbc65e

Please sign in to comment.