IOracleRef

Functions

updateOracle

function updateOracle() external

setOracle

function setOracle(
    address newOracle
) external

Parameters

NameTypeDescription

newOracle

address

setBackupOracle

function setBackupOracle(
    address newBackupOracle
) external

Parameters

NameTypeDescription

newBackupOracle

address

setDecimalsNormalizer

function setDecimalsNormalizer(
    int256 newDecimalsNormalizer
) external

Parameters

NameTypeDescription

newDecimalsNormalizer

int256

setDoInvert

function setDoInvert(
    bool newDoInvert
) external

Parameters

NameTypeDescription

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

NameTypeDescription

price

struct Decimal.D256

Events

OracleUpdate

event OracleUpdate(
    address oldOracle,
    address newOracle
)

Parameters

NameTypeDescription

oldOracle

address

newOracle

address

### InvertUpdate

event InvertUpdate(
    bool oldDoInvert,
    bool newDoInvert
)

Parameters

NameTypeDescription

oldDoInvert

bool

newDoInvert

bool

### DecimalsNormalizerUpdate

event DecimalsNormalizerUpdate(
    int256 oldDecimalsNormalizer,
    int256 newDecimalsNormalizer
)

Parameters

NameTypeDescription

oldDecimalsNormalizer

int256

newDecimalsNormalizer

int256

### BackupOracleUpdate

event BackupOracleUpdate(
    address oldBackupOracle,
    address newBackupOracle
)

Parameters

NameTypeDescription

oldBackupOracle

address

newBackupOracle

address

Last updated