✔️How to create a vault
Last updated
Last updated
You can create a new Vault using the VaultFactory contract. This process involves calling the createVault
function and specifying various parameters to configure the initial settings of the Vault.
Parameter | Type | Description |
---|---|---|
Vault
: The address of the newly created Vault contract
initialFee
should be a value between 0 and 1000 (0% - 10%).
minDelay
should be set carefully. Too short may pose security risks, while too long may cause operational inconvenience. (minimum: 600 seconds)
If creating a Private Vault (type: 1), subsequent whitelist management will be necessary.
After creating the Vault, you need to add the required Banks and set allocations.
A VaultCreated
event is emitted when a Vault is created:
You can monitor this event to track the creation of new Vaults.
After creating a Vault, you can use its address to perform additional setup and management operations.
asset
IERC20
The address of the base asset (token) to be used in the Vault
name
string
The name of the Vault
symbol
string
The symbol of the Vault
initialFee
uint256
Initial fee setting (max 1000, which represents 10%)
initialFeeRecipient
address
The initial address to receive fees
minDelay
uint256
Minimum delay for timelock operations (in seconds)
vaultType
IVault.VaultType
Type of the Vault (Public or Private)