forked from timeless-fi/options-token
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIOracle.sol
More file actions
17 lines (14 loc) · 769 Bytes
/
IOracle.sol
File metadata and controls
17 lines (14 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/// @title Interface for an oracle of the options token's strike price
/// @author zefram.eth
/// @notice An oracle of the options token's strike price
interface IOracle {
/// @notice Computes the current strike price of the option
/// @return price The strike price in terms of the payment token, scaled by 18 decimals.
/// For example, if the payment token is $2 and the strike price is $4, the return value
/// would be 2e18.
function getPrice() external view returns (uint256 price);
/// @notice This is important for verifying compatibility between oracle and exercise.
function getTokens() external view returns (address paymentToken, address underlyingToken);
}