Skip to content

MorphoFixedPriceOracle

senamakel edited this page Sep 1, 2024 · 1 revision

Solidity API

MorphoFixedPriceOracle

A contract that returns a fixed price

constructor

constructor(int256 _price, uint8 _decimals) public

getPrice

function getPrice() public view returns (int256 _price)

initialize

function initialize(int256 _price, uint8 _decimals) external

getPriceFor

function getPriceFor(uint256 amount) public view returns (int256)

price

function price() external view returns (uint256 _price)

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

Clone this wiki locally