InitOracle

INIT oracle contract.

View Functions

primarySources

Get the primary oracle source for the given token address.

If the token is not supported, the primary source will be Solidity's default value (0 value).

function primarySources(address _token) external view returns (address primarySource);

Parameters:

Returns:

secondarySources

Get the secondary oracle source for the given token address.

If the token is not supported, the secondary source will be Solidity's default value (0 value).

function secondarySources(address _token) external view returns (address secondarySource);

Parameters:

Returns:

maxPriceDeviations_e18

Get the maximum price deviation allowed between the sources for the given token address, with 10^18 precision.

function maxPriceDeviations_e18(address _token) external view returns (uint maxPriceDeviation_e18);

Parameters:

Returns:

External Functions

getPrice_e36

Get the price for a specified token, with 10^36 precision.

function getPrice_e36(address _token) external view returns (uint price_e36);

Parameters:

Results:

getPrices_e36

Get prices for the specified tokens, with 10^36 precision.

function getPrices_e36(address[] calldata _tokens) external view returns (uint[] memory prices_e36);

Parameters:

Results:

Last updated