# 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="https://4042996663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp22VZjhas5Bq2OgV9HzX%2Fuploads%2F02Z3x0FrTuL5pVwnoHOY%2FApprove-Redeem.png?alt=media&#x26;token=7ae3b7ae-b3dc-4a2d-8a40-8a723eef99b0" 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="https://4042996663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp22VZjhas5Bq2OgV9HzX%2Fuploads%2FRErmt7BlyEmdBTJKeHbg%2FRedeem.png?alt=media&#x26;token=e3bb73d0-ed03-45d4-a85b-400eeae3faae" 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 %}
