# How to deposit in a Vault

## Prerequisites

* You must have the vault's underlying token(s) in your wallet. See here how to fund your wallet: [funding-your-wallet](https://docs.beefy.finance/get-started/funding-your-wallet "mention")
* You must use a supported wallet, such as Metamask or Trustwallet: [connecting-your-wallet-to-beefy](https://docs.beefy.finance/get-started/connecting-your-wallet-to-beefy "mention").&#x20;

## Walkthrough

### 1. Go to the [Beefy app](https://app.beefy.com/) page:

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2FqBdLJHIYxD0xmKEs2wOF%2FBeefyApp.png?alt=media&#x26;token=649169f9-b755-40b2-8fcf-e7bfb78ad746" alt=""><figcaption><p>Screenshot date: 10 October 2022</p></figcaption></figure>

Again, make sure that your wallet is connected and that it is funded with tokens.

### 2. Use the filters to find a vault you want to deposit into:

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2F4T0bpwRUrFfnchLIvXCB%2FFilters.png?alt=media&#x26;token=a647ce32-1cfa-41e9-a7c9-441ca0418259" alt=""><figcaption></figcaption></figure>

The blockchain logos, the preset selection buttons and the search field all act as filters.&#x20;

### 3. Example of filter usage

In this guide, we will use the BIFI Maxi vault on Arbitrum as an example:

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2FCq0YCYMK37re3GGXmgr5%2FFilterSelection.png?alt=media&#x26;token=58f971de-9ca3-4e56-ba8a-8efcdb61ed6f" alt=""><figcaption></figcaption></figure>

Note that the BIFI Earnings Pool, in which you can earn WETH by depositing BIFI, also shows up. Open the BIFI Maxi vault by clicking anywhere in the field above.

### 4. Inside the BIFI Maxi vault:

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2FChnKKRbQk8JSuOp5n33q%2FBIFIMaxiVaultArbi.png?alt=media&#x26;token=d222495a-7779-4ec6-8b36-210974b9d856" alt=""><figcaption></figcaption></figure>

There is a lot of information inside the vault, such as TVL (Total Value Locked), Price and APY (Annual Percentage Yield) historical rates, the [Broken link](https://docs.beefy.finance/faq/how-to-guides/broken-reference "mention"), Token Asset details, and the Vault's compounding strategy ([#what-is-a-vault-strategy](https://docs.beefy.finance/beefy-products/strategies#what-is-a-vault-strategy "mention")).&#x20;

### 5. The Deposit and Withdraw module:

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2F6AMe8Gy8vrxj4N0s4ufP%2FDepositWithdrawModule.png?alt=media&#x26;token=130622a0-4442-40e4-9d74-1c273775dc45" alt=""><figcaption></figcaption></figure>

The vault already sees we have 1 BIFI available in our wallet to deposit. There is a "Buy Token" link provided in case you do not have any BIFI or wish to buy more BIFI to deposit, as well as a "Bridge BIFI" button to bridge BIFI from another blockchain to Arbitrum. A deposit field and a "Max" button are used for entering the exact amount of BIFI you want to deposit. Furthermore, the Beefy Vault Fees ([#what-is-the-vault-fee-structure](https://docs.beefy.finance/beefy-products/vaults#what-is-the-vault-fee-structure "mention")) are shown.

### 6. An example deposit:

In this example, we first click the "Max" button to deposit all the BIFI in our wallet, followed by clicking on the "Deposit All" button.&#x20;

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2Fu4YKitapRxu2RGnum5WO%2FExampleDeposit.png?alt=media&#x26;token=4666936c-9811-48f7-a303-0f9be73f41f6" alt=""><figcaption></figcaption></figure>

When it is the first time you deposit in this vault, you need to grant permission to the vault's contract and allow it to access your funds:

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2F50BXnWkqLsPLgKgGs854%2FDepositPermission.png?alt=media&#x26;token=c629dae3-c488-4ae8-934a-7fc715d692b4" alt=""><figcaption></figcaption></figure>

In the next transaction you will be actually depositing in the vault:

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2FgLJzZsx1ETDGqJrGj03N%2FDepositActual.png?alt=media&#x26;token=a55f7f4b-d8f2-4540-a56e-53c81c6bca42" alt=""><figcaption></figcaption></figure>

In summary, depositing into a new vault always requires two transactions: one for approving the spending permission and one for the actual deposit.

### 7. Deposit confirmation:

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2Fv9k7Abo4natle3nXsZ3B%2FDepositConfirmation.png?alt=media&#x26;token=30284430-1413-404a-94b0-857d9373e0a9" alt=""><figcaption></figcaption></figure>

Once the transaction succeeds, a message will pop up confirming the deposit and it contains a link to the transaction in the block explorer. It is very important to understand that your wallet now holds a tokenized proof of deposit called a "mooToken" ([#what-are-mootokens](https://docs.beefy.finance/beefy-products/vaults#what-are-mootokens "mention")). This mooToken is required to withdraw from the vault, don't lose it!&#x20;

On the block explorer page of the deposit transaction you can find out that the mooTokens are indeed supplied to your wallet after depositing in the vault. The token transfer will look something like this:

<figure><img src="https://3342042426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJZ0tXJc-hdgL-YTlPk-887967055%2Fuploads%2F7GdNrcAtDmPUPg4AqVfZ%2FDepositMooTokens.png?alt=media&#x26;token=58d1f394-e6d1-490e-b747-0497a71c8163" alt=""><figcaption></figcaption></figure>

Since mooTokens are interest-bearing, they are more valuable than their "normal" token counterpart. This is also the reason why the mooToken amount does not 1:1 match with the token amount initially deposited ([#how-do-mootokens-earn-interest](https://docs.beefy.finance/beefy-products/vaults#how-do-mootokens-earn-interest "mention")).

That's it, once the harvest function on this vault is called, you are already earning yield!


---

# 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.beefy.finance/faq/how-to-guides/how-to-deposit-in-a-vault.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.
