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).
Parameters:
Name | Type | Description |
---|---|---|
|
| token address to get primary oracle source |
Returns:
Name | Type | Description |
---|---|---|
|
| primary source oracle address |
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).
Parameters:
Name | Type | Description |
---|---|---|
|
| token address to get secondary oracle source |
Returns:
Name | Type | Description |
---|---|---|
|
| seconary source oracle address |
maxPriceDeviations_e18
Get the maximum price deviation allowed between the sources for the given token address, with 10^18
precision.
Parameters:
Name | Type | Description |
---|---|---|
|
| token address to get max price deviation |
Returns:
Name | Type | Description |
---|---|---|
|
| maximum price deviation with |
External Functions
getPrice_e36
Get the price for a specified token, with 10^36
precision.
Parameters:
Name | Type | Description |
---|---|---|
|
| token address to get price |
Results:
Name | Type | Description |
---|---|---|
|
| token price with |
getPrices_e36
Get prices for the specified tokens, with 10^36
precision.
Parameters:
Name | Type | Description |
---|---|---|
|
| array of token address to get price |
Results:
Name | Type | Description |
---|---|---|
|
| array of token prices with |
Last updated