# 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>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mangrove.exchange/dev/vaults/custom-interactions/vault-factory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
