> For the complete documentation index, see [llms.txt](https://docs-emplifai.mrhb.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-emplifai.mrhb.network/emplifai-v1/architecture-and-vaults.md).

# Architecture and Vaults

Generally speaking, we have 2 separate types of vaults in V1:&#x20;

1. LP vault that only accepts and holds LP tokens of a specific dual sided pool. Such vaults hold the LP token for a third party AMM pool. Ie, USDC-USDT on Uniswap. The core function of these vaults is to harvest and compound any rewards obtained by the pooled LP tokens. Users can Zap into the vault using any of the assets used in the underlying pool and Zap out into either of the assets.&#x20;
2. LP vault that only accepts and holds LP tokens of a specific ‘Single Sided’ pool. i.e., single sided AMM pool such as Curve or a cross chain bridge pool such as Stargate. These vaults also harvest and compound any rewards obtained by the pooled LP tokens contained in the vault. Users can Zap into the vault using the asset used in the underlying pool and Zap out into the same asset.&#x20;

It can be tedious and complicated for a new user to navigate to the underlying protocol which is offering the pool and deposit liquidity before returning to the vault to deposit the LP token. To allow for a one stop seamless solution for users wishing to deposit directly into the vaults from the asset/assets used in the underlying strategy or withdraw from the vaults into the asset/assets, MRHB's smart contracts will take care of all the necessary steps in between. Each vault will have separate ‘in-between’ activity. This feature is what we refer to as ***ZAP***.&#x20;

<figure><img src="/files/6SErtfUE3xTj45wM2r7o" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
ZAP is essentially the ‘in-between’ activity that facilitates the seamless deposit/withdrawal into the vault.
{% endhint %}

Generally speaking, the user facing flow and deposit/withdrawal activity for a stable coin vault can be visualized as follows:

<figure><img src="/files/8kEaBii57zjWEjWZmlBL" alt=""><figcaption><p>Deposit Flow</p></figcaption></figure>

<figure><img src="/files/oY4MnF5GDidIrhL5wgwv" alt=""><figcaption><p>Withdrawal Flow</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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-emplifai.mrhb.network/emplifai-v1/architecture-and-vaults.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.
