Skip to main content

IOracleRef

Functions

updateOracle

function updateOracle() external

setOracle

function setOracle(
address newOracle
) external

Parameters

NameTypeDescription
newOracleaddress

setBackupOracle

function setBackupOracle(
address newBackupOracle
) external

Parameters

NameTypeDescription
newBackupOracleaddress

setDecimalsNormalizer

function setDecimalsNormalizer(
int256 newDecimalsNormalizer
) external

Parameters

NameTypeDescription
newDecimalsNormalizerint256

setDoInvert

function setDoInvert(
bool newDoInvert
) external

Parameters

NameTypeDescription
newDoInvertbool

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

NameTypeDescription
pricestruct Decimal.D256

Events

OracleUpdate

event OracleUpdate(
address oldOracle,
address newOracle
)

Parameters

NameTypeDescription
oldOracleaddress
newOracleaddress

InvertUpdate

event InvertUpdate(
bool oldDoInvert,
bool newDoInvert
)

Parameters

NameTypeDescription
oldDoInvertbool
newDoInvertbool

DecimalsNormalizerUpdate

event DecimalsNormalizerUpdate(
int256 oldDecimalsNormalizer,
int256 newDecimalsNormalizer
)

Parameters

NameTypeDescription
oldDecimalsNormalizerint256
newDecimalsNormalizerint256

BackupOracleUpdate

event BackupOracleUpdate(
address oldBackupOracle,
address newBackupOracle
)

Parameters

NameTypeDescription
oldBackupOracleaddress
newBackupOracleaddress