I Simple Price Oracle

Methods

assetPrices

function assetPrices(address asset) external view returns (uint256)

Parameters

NameTypeDescription

asset

address

undefined

Returns

NameTypeDescription

_0

uint256

undefined

getUnderlyingPrice

function getUnderlyingPrice(address cToken) external view returns (uint256)

Parameters

NameTypeDescription

cToken

address

undefined

Returns

NameTypeDescription

_0

uint256

undefined

setDirectPrice

function setDirectPrice(address asset, uint256 price) external nonpayable

Parameters

NameTypeDescription

asset

address

undefined

price

uint256

undefined

setUnderlyingPrice

function setUnderlyingPrice(address cToken, uint256 underlyingPriceMantissa) external nonpayable

Parameters

NameTypeDescription

cToken

address

undefined

underlyingPriceMantissa

uint256

undefined

Events

PricePosted

event PricePosted(address asset, uint256 previousPriceMantissa, uint256 requestedPriceMantissa, uint256 newPriceMantissa)

Parameters

NameTypeDescription

asset

address

undefined

previousPriceMantissa

uint256

undefined

requestedPriceMantissa

uint256

undefined

newPriceMantissa

uint256

undefined

Last updated