We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e2880 commit 69b6ebdCopy full SHA for 69b6ebd
src/libraries/ChainlinkDataFeedLib.sol
@@ -10,8 +10,7 @@ import {ErrorsLib} from "./ErrorsLib.sol";
10
/// @custom:contact [email protected]
11
/// @notice Library exposing functions to interact with a Chainlink-compliant feed.
12
library ChainlinkDataFeedLib {
13
- /// @dev Returns the latest price of a `feed`.
14
- /// @dev Performs some safety checks and returns the latest price of a feed.
+ /// @dev Performs safety checks and returns the latest price of a `feed`.
15
/// @dev When `feed` is the address zero, returns 1.
16
function getPrice(AggregatorV3Interface feed) internal view returns (uint256) {
17
if (address(feed) == address(0)) return 1;
0 commit comments