IUniV3RelayerFactory

Git Source

Inherits: IAuthorizable

Functions

deployUniV3Relayer

Deploys a new UniV3Relayer contract

function deployUniV3Relayer(
  address _baseToken,
  address _quoteToken,
  uint24 _feeTier,
  uint32 _quotePeriod
) external returns (IBaseOracle _uniV3Relayer);

Parameters

NameTypeDescription
_baseTokenaddressAddress of the base token to be quoted
_quoteTokenaddressAddress of the quote reference token
_feeTieruint24Fee tier used to identify the UniV3 pool
_quotePerioduint32Length of the period used to calculate the TWAP quote

Returns

NameTypeDescription
_uniV3RelayerIBaseOracleAddress of the deployed UniV3Relayer contract

uniV3RelayersList

Getter for the list of UniV3Relayer contracts

function uniV3RelayersList() external view returns (address[] memory _uniV3RelayersList);

Returns

NameTypeDescription
_uniV3RelayersListaddress[]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

NameTypeDescription
_uniV3RelayeraddressAddress of the deployed UniV3Relayer contract
_baseTokenaddressAddress of the base token to be quoted by the UniV3Relayer contract
_quoteTokenaddressAddress of the quote reference token for the UniV3Relayer contract
_feeTieruint24Fee tier used to identify the pool for the UniV3Relayer contract
_quotePerioduint32Length of the period used to calculate the TWAP quote for the UniV3Relayer contract