# Redeem in vault

**Redemption** is the reverse process of deposit. The user **burns** his shares. If the vault has an exposure to the traded assets (i.e. it is not within 10000,0,...,0 exposures/positions), then swaps are required to redeem the user. These swap transactions are also quoted by the DEX Aggregator API and provided as call data to the function.

{% hint style="info" %}
There is also a function *redeemEach* that can be used to redeem **each assets** in proportion to the vault positions. It might be useful if the DEX Aggregator API is down.
{% endhint %}

## How to redeem

<figure><img src="/files/8mvGTA3pR2izYsjWQRXT" alt=""><figcaption><p>Redeem window</p></figcaption></figure>

Like for a deposit you have to indicate the amount you want to redeem. Then you have to approve the amount.

<figure><img src="/files/yt9v3flX5Jne8pztqlxg" alt=""><figcaption><p>Redeem after approval</p></figcaption></figure>

After the approval you can click on redeem. After the transaction is confirmed by the blockchain you will see your funds in your wallet .

{% hint style="info" %}
In case of an issue with the DEX aggregator, the redeem function may not work anymore. This is why you can use the *redeemEach* function which will allow you to redeem each asset of the vault **separately**.
{% endhint %}


---

# 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.shprd.finance/guides/investing-in-a-vault/vault-redemptions.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.
