DelayedOracleFactory

Git Source

Inherits: Authorizable, IDelayedOracleFactory

This contract is used to deploy DelayedOracle contracts

The deployed contracts are DelayedOracleChild instances

State Variables

_delayedOracles

The enumerable set of deployed DelayedOracle contracts

EnumerableSet.AddressSet internal _delayedOracles;

Functions

constructor

constructor() Authorizable(msg.sender);

deployDelayedOracle

Deploys a new DelayedOracle contract

function deployDelayedOracle(
  IBaseOracle _priceSource,
  uint256 _updateDelay
) external isAuthorized 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