IOracleRef
Volt Protocol
OracleRef interface
Methods
backupOracle
function backupOracle() external view returns (contract IOracle)
Returns
Name | Type | Description |
---|---|---|
_0 | contract IOracle | undefined |
decimalsNormalizer
function decimalsNormalizer() external view returns (int256)
Returns
Name | Type | Description |
---|---|---|
_0 | int256 | undefined |
doInvert
function doInvert() external view returns (bool)
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
invert
function invert(Decimal.D256 price) external pure returns (struct Decimal.D256)
Parameters
Name | Type | Description |
---|---|---|
price | Decimal.D256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | Decimal.D256 | undefined |
oracle
function oracle() external view returns (contract IOracle)
Returns
Name | Type | Description |
---|---|---|
_0 | contract IOracle | undefined |
readOracle
function readOracle() external view returns (struct Decimal.D256)
Returns
Name | Type | Description |
---|---|---|
_0 | Decimal.D256 | undefined |
setBackupOracle
function setBackupOracle(address newBackupOracle) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
newBackupOracle | address | undefined |
setDecimalsNormalizer
function setDecimalsNormalizer(int256 newDecimalsNormalizer) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
newDecimalsNormalizer | int256 | undefined |
setDoInvert
function setDoInvert(bool newDoInvert) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
newDoInvert | bool | undefined |
setOracle
function setOracle(address newOracle) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
newOracle | address | undefined |
updateOracle
function updateOracle() external nonpayable
Events
BackupOracleUpdate
event BackupOracleUpdate(address indexed oldBackupOracle, address indexed newBackupOracle)
Parameters
Name | Type | Description |
---|---|---|
oldBackupOracle indexed | address | undefined |
newBackupOracle indexed | address | undefined |
DecimalsNormalizerUpdate
event DecimalsNormalizerUpdate(int256 oldDecimalsNormalizer, int256 newDecimalsNormalizer)
Parameters
Name | Type | Description |
---|---|---|
oldDecimalsNormalizer | int256 | undefined |
newDecimalsNormalizer | int256 | undefined |
InvertUpdate
event InvertUpdate(bool oldDoInvert, bool newDoInvert)
Parameters
Name | Type | Description |
---|---|---|
oldDoInvert | bool | undefined |
newDoInvert | bool | undefined |
OracleUpdate
event OracleUpdate(address indexed oldOracle, address indexed newOracle)
Parameters
Name | Type | Description |
---|---|---|
oldOracle indexed | address | undefined |
newOracle indexed | address | undefined |