Skip to main content

IStructPriceOracle

Git Source

Interface for the Struct price oracle.

Functions

getAssetPrice

returns the asset price in USD

function getAssetPrice(address asset) external view returns (uint256);

Parameters

NameTypeDescription
assetaddressthe address of the asset

Returns

NameTypeDescription
<none>uint256the USD price of the asset

getAssetsPrices

returns the asset prices in USD

function getAssetsPrices(address[] memory assets) external view returns (uint256[] memory);

Parameters

NameTypeDescription
assetsaddress[]the addresses array of the assets

Returns

NameTypeDescription
<none>uint256[]the USD prices of the asset