IDelayedOracleFactory
Inherits: IAuthorizable
Functions
deployDelayedOracle
Deploys a new DelayedOracle contract
function deployDelayedOracle(
IBaseOracle _priceSource,
uint256 _updateDelay
) external 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 |
Events
NewDelayedOracle
Emitted when a new DelayedOracle contract is deployed
event NewDelayedOracle(address indexed _delayedOracle, address _priceSource, uint256 _updateDelay);
Parameters
Name | Type | Description |
---|---|---|
_delayedOracle | address | Address of the deployed DelayedOracle contract |
_priceSource | address | 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 |