BeefyVeloVaultRelayerFactory

Git Source

Inherits: Authorizable, IBeefyVeloVaultRelayerFactory

This contract is used to deploy BeefyVeloVaultRelayer contracts

The deployed contracts are BeefyVeloVaultRelayerChild instances

State Variables

_beefyVeloVaultRelayers

The enumerable set of deployed BeefyVeloVaultRelayer contracts

EnumerableSet.AddressSet internal _beefyVeloVaultRelayers;

Functions

constructor

constructor() Authorizable(msg.sender);

deployBeefyVeloVaultRelayer

Deploys a new BeefyVeloVaultRelayer contract

function deployBeefyVeloVaultRelayer(
  IBaseOracle _token0priceSource,
  IBaseOracle _token1priceSource,
  IBeefyVaultV7 _beefyVault,
  IVeloPool _veloPool
) external isAuthorized returns (IBaseOracle _beefyVeloVaultRelayer);

Parameters

NameTypeDescription
_token0priceSourceIBaseOracleAddress of the price source for the first token in the velo pool
_token1priceSourceIBaseOracleAddress of the price source for the second token in the velo pool
_beefyVaultIBeefyVaultV7The address of the beefy vault contract
_veloPoolIVeloPoolThe address of the velo pool underlying the beefy vault

Returns

NameTypeDescription
_beefyVeloVaultRelayerIBaseOracleAddress of the deployed BeefyVeloVaultRelayer contract

beefyVeloVaultRelayersList

Getter for the list of BeefyVeloVaultRelayer contracts

function beefyVeloVaultRelayersList() external view returns (address[] memory _beefyVeloVaultRelayersList);

Returns

NameTypeDescription
_beefyVeloVaultRelayersListaddress[]List of BeefyVeloVaultRelayer contracts