IOracleOperator
Prices are returned in USD
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 | The underlying asset price mantissa (scaled by 1e18). Zero means the price is 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 | The underlying asset price mantissa (scaled by 1e18). Zero means the price is unavailable. |