-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from morpho-org/refactor/usz-oz-version
Switch `mulDiv` version to OZ
- Loading branch information
Showing
4 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule openzeppelin-contracts
added at
932fdd
Submodule v3-core
deleted from
6562c5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
pragma solidity 0.8.19; | ||
pragma solidity 0.8.21; | ||
|
||
import {IOracle} from "../lib/morpho-blue/src/interfaces/IOracle.sol"; | ||
|
||
import {AggregatorV3Interface, ChainlinkDataFeedLib} from "./libraries/ChainlinkDataFeedLib.sol"; | ||
import {IERC4626, VaultLib} from "./libraries/VaultLib.sol"; | ||
import {ErrorsLib} from "./libraries/ErrorsLib.sol"; | ||
import {FullMath} from "../lib/v3-core/contracts/libraries/FullMath.sol"; | ||
import {Math} from "../lib/openzeppelin-contracts/contracts/utils/math/Math.sol"; | ||
|
||
/// @title ChainlinkOracle | ||
/// @author Morpho Labs | ||
/// @custom:contact [email protected] | ||
/// @notice Morpho Blue oracle using Chainlink-compliant feeds. | ||
contract ChainlinkOracle is IOracle { | ||
using FullMath for uint256; | ||
using Math for uint256; | ||
using VaultLib for IERC4626; | ||
using ChainlinkDataFeedLib for AggregatorV3Interface; | ||
|
||
|