DelayedOracleFactory
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
Name | Type | Description |
---|---|---|
_priceSource | IBaseOracle | Address of the price source for the DelayedOracle contract |
_updateDelay | uint256 | Delay in seconds to be applied between the price source and the delayed oracle feeds |
Returns
Name | Type | Description |
---|---|---|
_delayedOracle | IDelayedOracle | Address of the deployed DelayedOracle contract |
delayedOraclesList
Getter for the list of DelayedOracle contracts
function delayedOraclesList() external view returns (address[] memory _delayedOraclesList);
Returns
Name | Type | Description |
---|---|---|
_delayedOraclesList | address[] | List of DelayedOracle contracts |