IBeefyVeloVaultRelayerFactory

Git Source

Inherits: IAuthorizable

Functions

deployBeefyVeloVaultRelayer

Deploys a new BeefyVeloVaultRelayer contract

function deployBeefyVeloVaultRelayer(
  IBaseOracle _token0priceSource,
  IBaseOracle _token1priceSource,
  IBeefyVaultV7 _beefyVault,
  IVeloPool _veloPool
) external 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

Events

NewBeefyVeloVaultRelayer

Emitted when a new BeefyVeloVaultRelayer contract is deployed

event NewBeefyVeloVaultRelayer(
  address indexed _beefyVeloVaultRelayer,
  address _token0priceSource,
  address _token1priceSource,
  address _beefyVault,
  address _veloPool
);

Parameters

NameTypeDescription
_beefyVeloVaultRelayeraddressAddress of the deployed DenominatedOracle contract
_token0priceSourceaddressAddress of the price source for the first token in the velo pool
_token1priceSourceaddressAddress of the price source for the second token in the velo pool
_beefyVaultaddressThe address of the beefy vault contract
_veloPooladdressThe address of the velo pool underlying the beefy vault