IOracleOperator
Title: IOracleOperator
Author: Merge Layers Inc.
Oracle operator interface returning USD prices
Functions
getPrice
Get the price of a mToken asset
function getPrice(address mToken) external view returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
mToken | address | The mToken to get the price of |
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | price The underlying asset price mantissa (scaled by 1e18). Zero means unavailable. |
getUnderlyingPrice
Get the underlying price of a mToken asset
function getUnderlyingPrice(address mToken) external view returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
mToken | address | The mToken to get the underlying price of |
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | price The underlying asset price mantissa (scaled by 1e18). Zero means unavailable. |