InitOracle
Last updated
Last updated
INIT oracle contract.
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).
Parameters:
Name | Type | Description |
---|---|---|
Returns:
Name | Type | Description |
---|---|---|
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).
Parameters:
Name | Type | Description |
---|---|---|
Returns:
Get the maximum price deviation allowed between the sources for the given token address, with 10^18
precision.
Parameters:
Returns:
Get the price for a specified token, with 10^36
precision.
Parameters:
Results:
Get prices for the specified tokens, with 10^36
precision.
Parameters:
Results:
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_token
address
token address to get primary oracle source
primarySource
address
primary source oracle address
_token
address
token address to get secondary oracle source
secondarySource
address
seconary source oracle address
_token
address
token address to get max price deviation
maxPriceDeviation_e18
uint256
maximum price deviation with 10^18
precision
_token
address
token address to get price
price_e36
uint256
token price with 10^36
precision
_tokens
address[]
array of token address to get price
prices_e36
uint256[]
array of token prices with 10^36
precision