|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | +pragma solidity >=0.5.0; |
| 3 | + |
| 4 | +import {IERC4626} from "../../interfaces/IERC4626.sol"; |
| 5 | +import {IOracle} from "../../../lib/morpho-blue/src/interfaces/IOracle.sol"; |
| 6 | +import {IPyth} from "@pythnetwork/pyth-sdk-solidity/IPyth.sol"; |
| 7 | + |
| 8 | +/// @title IMorphoPythOracle |
| 9 | +/// @author Morpho Labs |
| 10 | +/// @custom:contact security@morpho.org |
| 11 | +/// @notice Interface of MorphoPythOracle. |
| 12 | +interface IMorphoPythOracle is IOracle { |
| 13 | + /// @notice Returns the address of the Pyth contract. |
| 14 | + function pyth() external view returns (IPyth); |
| 15 | + |
| 16 | + /// @notice Returns the address of the base ERC4626 vault. |
| 17 | + function BASE_VAULT() external view returns (IERC4626); |
| 18 | + |
| 19 | + /// @notice Returns the base vault conversion sample. |
| 20 | + function BASE_VAULT_CONVERSION_SAMPLE() external view returns (uint256); |
| 21 | + |
| 22 | + /// @notice Returns the address of the quote ERC4626 vault. |
| 23 | + function QUOTE_VAULT() external view returns (IERC4626); |
| 24 | + |
| 25 | + /// @notice Returns the quote vault conversion sample. |
| 26 | + function QUOTE_VAULT_CONVERSION_SAMPLE() external view returns (uint256); |
| 27 | + |
| 28 | + /// @notice Returns the address of the first base feed. |
| 29 | + function BASE_FEED_1() external view returns (bytes32); |
| 30 | + |
| 31 | + /// @notice Returns the address of the second base feed. |
| 32 | + function BASE_FEED_2() external view returns (bytes32); |
| 33 | + |
| 34 | + /// @notice Returns the address of the first quote feed. |
| 35 | + function QUOTE_FEED_1() external view returns (bytes32); |
| 36 | + |
| 37 | + /// @notice Returns the address of the second quote feed. |
| 38 | + function QUOTE_FEED_2() external view returns (bytes32); |
| 39 | + |
| 40 | + /// @notice Returns the price scale factor, calculated at contract creation. |
| 41 | + function SCALE_FACTOR() external view returns (uint256); |
| 42 | + |
| 43 | + /// @notice Returns the maximum age of the price feed. |
| 44 | + function PRICE_FEED_MAX_AGE() external view returns (uint256); |
| 45 | +} |
0 commit comments