IStructPriceOracle
Interface for the Struct price oracle.
Functions
getAssetPrice
returns the asset price in USD
function getAssetPrice(address asset) external view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
asset | address | the address of the asset |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | the USD price of the asset |
getAssetsPrices
returns the asset prices in USD
function getAssetsPrices(address[] memory assets) external view returns (uint256[] memory);
Parameters
Name | Type | Description |
---|---|---|
assets | address[] | the addresses array of the assets |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256[] | the USD prices of the asset |