# Withdrawal Window

Certain baskets have withdrawals that are grouped into **withdrawal windows,** which are periods of up to a certain length (such as every 48 hours). By grouping withdrawals into windows, the protocol ensures that users get a prorated distribution of their deposits after a strategy has run properly.&#x20;

Withdrawal windows exist for a few reasons. First, some of the underlying strategies that can be executed on the protocol require fixed durations of time to run properly. If, for instance, these strategies were made for instant liquidity (eg. withdrawal at any time), the protocol would necessarily need to liquidate many user funds and thereby impair the performance of users who remain in the pool.&#x20;

By capturing these requests during a withdrawal window, the protocol can ensure that users who chose to remain in the strategy are not negatively impacted (eg. closing some positions prematurely can result in a loss) while ensuring a user who does wish to exit the position can do so in a predictable manner.&#x20;

**Timing**: The design of the withdrawal windows means that user funds are inaccessible until, at most, the duration of the window has run out. Based on broader strategy designs, there are numerous safety conditions (eg. high volatility) that may close a position sooner meaning that user funds will be returned faster than the window.&#x20;

### Buying Baskets  with Withdrawal Windows

Baskets with withdrawal windows can be purchased just like normal. You will simply notice a lock icon on the buy page and a notice which will be your indication that this is a different type of basket.&#x20;

![](/files/1safiRsqvmVHPU7mFRIa)

### Executing a Withdrawal

Withdrawals occur in 3 key steps.&#x20;

1. **Initiate a Withdrawal**: A user can initiate a withdrawal for a basket that contains a withdrawal window like they would sell any other basket. At the time of a sale in the dApp -- users are notified prior to buying of this behavior as well -- the user will be shown the details of the current withdrawal window. Upon initiating the request, the user is issued an NFT that provides a claim to their underlying assets.&#x20;
   1. ![](/files/DRKQ6m7axp6CsLagXSEn)
2. **Window**: Users must wait at most the length of the withdrawal window for their request to be processed. This may happen faster based on various factors but never longer. Once the window closes, the user's request will settle at the latest market price. ![](/files/mEDSwCwjyfglFjZOADIO)
3. **Claim Assets:** User claims their assets, essentially exchanging their NFT for the value of the underlying assets. Users will see a notification on the top of the given basket page that they will need to interact with, and ultimately approve. Once the window has closed, a user will click claim and be able to

![](/files/YMVWHAR0piioSmbcK8Jk)


---

# 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://earn-docs.affinedefi.com/withdrawal-window.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.
