IUniV3RelayerFactory
Inherits: IAuthorizable
Functions
deployUniV3Relayer
Deploys a new UniV3Relayer contract
function deployUniV3Relayer(
address _baseToken,
address _quoteToken,
uint24 _feeTier,
uint32 _quotePeriod
) external returns (IBaseOracle _uniV3Relayer);
Parameters
Name | Type | Description |
---|---|---|
_baseToken | address | Address of the base token to be quoted |
_quoteToken | address | Address of the quote reference token |
_feeTier | uint24 | Fee tier used to identify the UniV3 pool |
_quotePeriod | uint32 | Length of the period used to calculate the TWAP quote |
Returns
Name | Type | Description |
---|---|---|
_uniV3Relayer | IBaseOracle | Address of the deployed UniV3Relayer contract |
uniV3RelayersList
Getter for the list of UniV3Relayer contracts
function uniV3RelayersList() external view returns (address[] memory _uniV3RelayersList);
Returns
Name | Type | Description |
---|---|---|
_uniV3RelayersList | address[] | List of UniV3Relayer contracts |
Events
NewUniV3Relayer
Emitted when a new UniV3Relayer contract is deployed
event NewUniV3Relayer(
address indexed _uniV3Relayer, address _baseToken, address _quoteToken, uint24 _feeTier, uint32 _quotePeriod
);
Parameters
Name | Type | Description |
---|---|---|
_uniV3Relayer | address | Address of the deployed UniV3Relayer contract |
_baseToken | address | Address of the base token to be quoted by the UniV3Relayer contract |
_quoteToken | address | Address of the quote reference token for the UniV3Relayer contract |
_feeTier | uint24 | Fee tier used to identify the pool for the UniV3Relayer contract |
_quotePeriod | uint32 | Length of the period used to calculate the TWAP quote for the UniV3Relayer contract |