Skip to main content

IOracle

Git Source

Title: IOracle

Author: Morpho Labs

Interface that oracles used by Morpho must implement.

It is the user's responsibility to select markets with safe oracles.

Note:

Functions​

price​

Returns the price of 1 asset of collateral token quoted in 1 asset of loan token, scaled by 1e36.

It corresponds to the price of 10**(collateral token decimals) assets of collateral token quoted in 10**(loan token decimals) assets of loan token with 36 + loan token decimals - collateral token decimals decimals of precision.

function price() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256