# Withdraw

User transfers supplyTokens and receives the vault supply assets in return

`withdraw(uint256 amount, address to)`

* amount - amount the user wants to withdraw
* to - address to which the funds should be sent

The user can withdraw up a loan-to-value ratio of the specified `supplyThreshold`.

#### Withdraw fee

There is a withdrawal fee applied for the users depositing and withdrawing within a short period of time. The fee is charged in the supply asset and is distributed among the other users.&#x20;

The reason for having such a fee is that when one deposits, the vault will do a rebalance to borrow more and deposit it into the farm provider for generating more yield. This can incur fees and slippage. With the time the fee is covered by the yield rewards. But without enough time, this is a cost to the vault.

The fee is currently configured to be 0.5% for withdraws within 150 blocks (\~30 minutes).


---

# 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.altitude.fi/general/protocol-overview/how-do-users-interact-with-a-vault/withdraw.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.
