IPriceFeedProxyERC20
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
Name | Type | Description |
---|---|---|
priceFeedAddress | address | contract address of price feed |
Returns
Name | Type | Description |
---|---|---|
timestamp | uint256 | time at which the returned value was determined |
dollarPrice | UD60x18 | price of 1 asset unit in Dollars (18 decimals) |