Vault Factory
Deploy your own mangrove vault with the vault factory
The vault factory deploys a vault given the address of a previously deployed Oracles. A vault is an ERC20 token representing the share of each users in the position on the kandel Contract.
In order to deploy a vault, one also has to choose a KandelSeeder. For the normal vault, as of now, there is the AaveKandelSeeder (both assets must be listed on AAVE), or the kandelSeeder (funds are stored as underlying only). For the ERC4626MangroveVault, there is the ERC4626KandelSeeder.
https://github.com/mangrovedao/mangrove-vault/blob/899abdb187f1801ba44621c0e25a697edda859e7/src/MangroveVaultFactory.sol#L8-L18
function createVault(
AbstractKandelSeeder _seeder,
address _BASE,
address _QUOTE,
uint256 _tickSpacing,
uint8 _decimals,
string memory name,
string memory symbol,
address _oracle,
address _owner
) public returns (MangroveVault vault) {
Last updated