IDelayedOracleFactory

Git Source

Inherits: IAuthorizable

Functions

deployDelayedOracle

Deploys a new DelayedOracle contract

function deployDelayedOracle(
  IBaseOracle _priceSource,
  uint256 _updateDelay
) external returns (IDelayedOracle _delayedOracle);

Parameters

NameTypeDescription
_priceSourceIBaseOracleAddress of the price source for the DelayedOracle contract
_updateDelayuint256Delay in seconds to be applied between the price source and the delayed oracle feeds

Returns

NameTypeDescription
_delayedOracleIDelayedOracleAddress of the deployed DelayedOracle contract

delayedOraclesList

Getter for the list of DelayedOracle contracts

function delayedOraclesList() external view returns (address[] memory _delayedOraclesList);

Returns

NameTypeDescription
_delayedOraclesListaddress[]List of DelayedOracle contracts

Events

NewDelayedOracle

Emitted when a new DelayedOracle contract is deployed

event NewDelayedOracle(address indexed _delayedOracle, address _priceSource, uint256 _updateDelay);

Parameters

NameTypeDescription
_delayedOracleaddressAddress of the deployed DelayedOracle contract
_priceSourceaddressAddress of the price source for the DelayedOracle contract
_updateDelayuint256Delay in seconds to be applied between the price source and the delayed oracle feeds