IPriceFeedProxyERC20

Git Source

Inherits: IPriceFeedProxy

Author: bull.haus

Generic API for reading ERC20 price feed data from different oracles.

Functions

getDollarPrice

Get the Dollar price of 1 asset unit.

1 asset unit is 1 ETH, 1 BTC, 1 USDT, etc.

function getDollarPrice(address priceFeedAddress) external view returns (uint256 timestamp, UD60x18 dollarPrice);

Parameters

NameTypeDescription
priceFeedAddressaddresscontract address of price feed

Returns

NameTypeDescription
timestampuint256time at which the returned value was determined
dollarPriceUD60x18price of 1 asset unit in Dollars (18 decimals)