IOracleJob

Git Source

Inherits: IJob, IAuthorizable, IModifiable

Functions

shouldWorkUpdateCollateralPrice

Whether the update collateral price job should be worked

function shouldWorkUpdateCollateralPrice() external view returns (bool _shouldWorkUpdateCollateralPrice);

shouldWorkUpdateRate

Whether the update rate job should be worked

function shouldWorkUpdateRate() external view returns (bool _shouldWorkUpdateRate);

oracleRelayer

Address of the OracleRelayer contract

function oracleRelayer() external view returns (IOracleRelayer _oracleRelayer);

pidRateSetter

Address of the PIDRateSetter contract

function pidRateSetter() external view returns (IPIDRateSetter _pidRateSetter);

workUpdateCollateralPrice

Rewarded method to update a collateral price

function workUpdateCollateralPrice(bytes32 _cType) external;

Parameters

NameTypeDescription
_cTypebytes32Bytes32 representation of the collateral type

workUpdateRate

Rewarded method to update the redemption rate

function workUpdateRate() external;

Errors

OracleJob_InvalidPrice

Throws when trying to update an invalid collateral price

error OracleJob_InvalidPrice();