IOracleOperator

Git Source

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

NameTypeDescription
mTokenaddressThe mToken to get the price of

Returns

NameTypeDescription
<none>uint256price 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

NameTypeDescription
mTokenaddressThe mToken to get the underlying price of

Returns

NameTypeDescription
<none>uint256price The underlying asset price mantissa (scaled by 1e18). Zero means unavailable.