Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 562 Bytes

priceoracleinterface.md

File metadata and controls

32 lines (20 loc) · 562 Bytes
layout title
default
PriceOracleInterface

PriceOracleInterface.sol

View Source: contracts/test/PriceOracleInterface.sol

Functions

  • assetPrices(address asset)

assetPrices

Gets the price of a given asset

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

Returns

the price scaled by 10**18, or zero if the price is not available

Arguments

Name Type Description
asset address Asset to get the price of