Skip to main content

IOracleRef

Volt Protocol

OracleRef interface

Methods

backupOracle

function backupOracle() external view returns (contract IOracle)

Returns

NameTypeDescription
_0contract IOracleundefined

decimalsNormalizer

function decimalsNormalizer() external view returns (int256)

Returns

NameTypeDescription
_0int256undefined

doInvert

function doInvert() external view returns (bool)

Returns

NameTypeDescription
_0boolundefined

invert

function invert(Decimal.D256 price) external pure returns (struct Decimal.D256)

Parameters

NameTypeDescription
priceDecimal.D256undefined

Returns

NameTypeDescription
_0Decimal.D256undefined

oracle

function oracle() external view returns (contract IOracle)

Returns

NameTypeDescription
_0contract IOracleundefined

readOracle

function readOracle() external view returns (struct Decimal.D256)

Returns

NameTypeDescription
_0Decimal.D256undefined

setBackupOracle

function setBackupOracle(address newBackupOracle) external nonpayable

Parameters

NameTypeDescription
newBackupOracleaddressundefined

setDecimalsNormalizer

function setDecimalsNormalizer(int256 newDecimalsNormalizer) external nonpayable

Parameters

NameTypeDescription
newDecimalsNormalizerint256undefined

setDoInvert

function setDoInvert(bool newDoInvert) external nonpayable

Parameters

NameTypeDescription
newDoInvertboolundefined

setOracle

function setOracle(address newOracle) external nonpayable

Parameters

NameTypeDescription
newOracleaddressundefined

updateOracle

function updateOracle() external nonpayable

Events

BackupOracleUpdate

event BackupOracleUpdate(address indexed oldBackupOracle, address indexed newBackupOracle)

Parameters

NameTypeDescription
oldBackupOracle indexedaddressundefined
newBackupOracle indexedaddressundefined

DecimalsNormalizerUpdate

event DecimalsNormalizerUpdate(int256 oldDecimalsNormalizer, int256 newDecimalsNormalizer)

Parameters

NameTypeDescription
oldDecimalsNormalizerint256undefined
newDecimalsNormalizerint256undefined

InvertUpdate

event InvertUpdate(bool oldDoInvert, bool newDoInvert)

Parameters

NameTypeDescription
oldDoInvertboolundefined
newDoInvertboolundefined

OracleUpdate

event OracleUpdate(address indexed oldOracle, address indexed newOracle)

Parameters

NameTypeDescription
oldOracle indexedaddressundefined
newOracle indexedaddressundefined