VaultFactory
Author: Molecular Labs
Factory contract for deploying Ion Lending Vaults.
Functions
createVault
Deploys a new Ion Lending Vault. Transfers the initialDeposit
amount of the base asset from the caller initiate the first deposit to the vault. The minimum initialDeposit
is 1e3. If less, this call would underflow as it will always burn 1e3 shares of the total shares minted to defend against inflation attacks.
The 1e3 initial deposit amount was chosen to defend against inflation attacks, referencing the UniV2 LP token implementation.
Parameters
Name | Type | Description |
---|---|---|
|
| The asset that is being lent out to IonPools. |
|
| Address that receives the accrued manager fees. |
|
| Fee percentage to be set. |
|
| Name of the vault token. |
|
| Symbol of the vault token. |
|
| The initial delay for default admin transfers. |
|
| The initial default admin for the vault. |
|
| The salt used for CREATE2 deployment. |
|
| Arguments for the markets to be added to the vault. |
|
| The initial deposit to be made to the vault. |