# Funds and Vaults

Vaults in Grateful are compatible with ERC4626 standard. Vaults can either generate yields on platforms like Aave, Yearn, etc., or act as simple containers for the deposited assets.

When a user wants to deposit their chosen asset, they do so into the corresponding vault associated with their profile. Grateful keeps track of the number of shares issued by the vault and updates the user's profile balance accordingly. To ensure accuracy, shares are standardized to 20 decimal places.

<figure><img src="/files/Fw6hUTZpw3AT03x7lrZV" alt=""><figcaption><p>Deposit flow</p></figcaption></figure>

A user can only withdraw from their profile if they have the necessary authorization. When a withdrawal is requested, Grateful receives the specified amount of standardized shares and transfers the corresponding assets to the user who made the request.

<figure><img src="/files/fu6dLWnOXxIl52HB4kSW" alt=""><figcaption><p>Withdraw flow</p></figcaption></figure>


---

# 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://grateful.gitbook.io/docs/funds-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.
