Skip to main content

VaultBoosterFactory

Git Source

Factory contract for VaultBooster

Events

CreatedVaultBooster

event CreatedVaultBooster(contract VaultBooster vaultBooster, contract PrizePool prizePool, address vault, address owner)

Emitted when a new VaultBooster is created

Parameters

NameTypeDescription
vaultBoostercontract VaultBoosterThe address of the new Vault Booster
prizePoolcontract PrizePoolThe address of the prize pool to contribute to
vaultaddressThe address of the vault to contribute for
owneraddressThe owner of the VaultBooster

Variables

deployerNonces

mapping(address => uint256) deployerNonces

Mapping to store deployer nonces for CREATE2

Functions

createVaultBooster

function createVaultBooster(contract PrizePool _prizePool, address _vault, address _owner) external returns (contract VaultBooster)

Creates a new vault booster contract

Parameters

NameTypeDescription
_prizePoolcontract PrizePoolThe prize pool to contribute to
_vaultaddressThe vault to contribute for
_owneraddressThe owner of the Vault Booster

Return Values

NameTypeDescription
[0]contract VaultBoosterThe address of the new Vault Booster

Structs

Errors