IOracleRef
Functions
updateOracle
function updateOracle() external
setOracle
function setOracle(
address newOracle
) external
Parameters
Name | Type | Description |
---|---|---|
newOracle | address |
setBackupOracle
function setBackupOracle(
address newBackupOracle
) external
Parameters
Name | Type | Description |
---|---|---|
newBackupOracle | address |
setDecimalsNormalizer
function setDecimalsNormalizer(
int256 newDecimalsNormalizer
) external
Parameters
Name | Type | Description |
---|---|---|
newDecimalsNormalizer | int256 |
setDoInvert
function setDoInvert(
bool newDoInvert
) external
Parameters
Name | Type | Description |
---|---|---|
newDoInvert | bool |
oracle
function oracle() external returns (contract IOracle)
backupOracle
function backupOracle() external returns (contract IOracle)
doInvert
function doInvert() external returns (bool)
decimalsNormalizer
function decimalsNormalizer() external returns (int256)
readOracle
function readOracle() external returns (struct Decimal.D256)
invert
function invert(
struct Decimal.D256 price
) external returns (struct Decimal.D256)
Parameters
Name | Type | Description |
---|---|---|
price | struct Decimal.D256 |
Events
OracleUpdate
event OracleUpdate(
address oldOracle,
address newOracle
)
Parameters
Name | Type | Description |
---|---|---|
oldOracle | address | |
newOracle | address |
InvertUpdate
event InvertUpdate(
bool oldDoInvert,
bool newDoInvert
)
Parameters
Name | Type | Description |
---|---|---|
oldDoInvert | bool | |
newDoInvert | bool |
DecimalsNormalizerUpdate
event DecimalsNormalizerUpdate(
int256 oldDecimalsNormalizer,
int256 newDecimalsNormalizer
)
Parameters
Name | Type | Description |
---|---|---|
oldDecimalsNormalizer | int256 | |
newDecimalsNormalizer | int256 |
BackupOracleUpdate
event BackupOracleUpdate(
address oldBackupOracle,
address newBackupOracle
)
Parameters
Name | Type | Description |
---|---|---|
oldBackupOracle | address | |
newBackupOracle | address |