Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 829 Bytes

File metadata and controls

44 lines (27 loc) · 829 Bytes
layout title
default
PriceOracleProxy

PriceOracleProxy.sol

View Source: contracts/PriceOracleProxy.sol

Contract Members

Constants & Variables

address public mostRecentCaller;
uint256 public mostRecentBlock;
contract PriceOracleInterface public realPriceOracle;

Functions

  • assetPrices(address asset)

assetPrices

Gets the price of a given asset

function assetPrices(address asset) public nonpayable
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