# Deposit and Withdrawal Flow

**Deposit to PERQ Pools**:&#x20;

1. Connect your wallet, choose your Pool & Asset and Deposit.
2. After confirming the Deposit transaction, your Deposit will be marked as pending. PERQ is using Yelay middleware to batch transactions to save on gas costs and to power key utilities of PERQ. If you want to read more about the details of how [Yelay works, please refer to their docs](https://docs.spool.fi/).
3. While a deposit is pending, it temporarily cannot be withdrawn as it is waiting to be swept into the underlying strategies powering the PERQ pool. As the sweep is called, funds are sitting in a [smart contract waiting](https://etherscan.io/address/0xf5dcf1f6e4c661cb28c27fff88adde3522cfbe91) to be deposited.
4. After the Sweep has been executed, your Deposit is finalized and earning yield. It is now available for withdrawal.

**Withdraw from PERQ Pools**:

1. Connect your wallet and select the Pool you want to withdraw from.
2. Ensure that your Deposit has been finalized and is not pending, as per above.
3. Withdrawals from Drip work in two different ways: Slow and Fast.\
   \
   **Slow Withdrawals** work in a cheap & efficient two-step process that mark your withdrawal to be executed with the next Sweep. After the Sweep has been executed, you can claim your assets, thus finalizing the withdrawal.\
   \
   **Fast Withdrawals** are an expensive but quick way to withdraw your assets in a single step. You will forego waiting for the Sweep, and instead pay to withdraw from all underlying strategies by yourself while covering all gas costs yourself.
4. Fast Withdrawals are finalized as soon as the transaction is confirmed while Slow Withdrawals finalize with your claim of withdrawn assets after the Sweep.


---

# 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.perq.finance/deposit-and-withdrawal-flow.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.
