> For the complete documentation index, see [llms.txt](https://docs.mangrove.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mangrove.exchange/dev/vaults/custom-interactions/vault-factory.md).

# Vault Factory

The vault factory deploys a vault given the address of a previously deployed [Oracles](/dev/vaults/custom-interactions/oracles.md). 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.

{% @github-files/github-code-block url="<https://github.com/mangrovedao/mangrove-vault/blob/899abdb187f1801ba44621c0e25a697edda859e7/src/MangroveVaultFactory.sol#L8-L18>" %}
