# Withdraw - Remove Liquidity

Starfish allows user to withdraw their investments from liquidity pools in two means.

* Proportional Withdrawal
* Single Sided Withdrawal

{% hint style="info" %}
**Maximum Swap In/Out Ratio - 0.3**

A maximum swap in ratio of 0.3 means a user can only swap in less than 30% of the current balance of `tokenIn` for a given pool, or swap out less than 30% of the current balance of `tokenOut.`

This means if user execute a single sided withdrawal, only less than 30% of the single token would be withdrawn.
{% endhint %}

### How does proportional withdrawal work?

Proportional withdrawal is just like removing liquidity from any other AMM protocols, you can redeem all underlying tokens of the pool with respect to the pool weight and the amount of Starfish Pool Token (SPT) you have.&#x20;

Assume that you have provided liquidity to the following pool, with underlying token balance of 100 USDT, 100 USDC, 100 wBUSD. And at this moment, you would like to remove liquidity and get back all underlying tokens, i.e. 100 USDT, 100 USDC, 100 wBUSD.

1. Click **Withdraw** button to start removing liquidity of this pool.

![](/files/f388sRgPLHPbynTUinM9)

&#x20;2\. Under the Token dropdown, it's by default chosen **All**, meaning you are doing proportionate withdrawal. You can click the **MAX** button next to Balance to burn your SPT to redeem all underlying tokens.

![](/files/iGAvZH7FDSgl02U1Z84U)

3\. Click **Preview Withdraw**, to review the final underlying tokens to be received with the input SPT for withdraw. You can refresh the pool, by clicking the "Reload" button on the top right corner. If the final amount looks okay to you, click **Confirm Withdraw**, and **Confirm** transaction on MetaMask.

![](/files/b5zkw2YoHOofSef2B6XH)

### How does single sided withdrawal work?

Single Sided withdrawals allow users to withdraw from a pool in the form of only one of the assets. A price impact due to the shift of the balance of the tokens will be accounted in this scenario.

1. To choose single sided token withdrawal, click on the token dropdown, and choose the token you wish to redeem. Say you want to redeem as USDT only, choose USDT token in the popup.

![](/files/VtWYQou6ZHzp0ZDtjCDx)

2\. If you wish to redeem maximum amount of USDT in terms of SPT you hold, click **MAX** button and you will see the corresponding price impact you are going to experience based on the amount entered.

![](/files/0HmEgtOqY97Orfybtcxp)

3\. Click **Preview Withdraw** if you want to continue with the withdraw amount. You are advised to look at the Price Impact and click the "Refresh" button to see the latest USDT amount you can redeem. Click **Confirm Withdraw** to continue with the withdrawal transaction.

![](/files/HqKDJcfDvJRMuOpW5ByS)

4\. After the transaction goes through, you'll see the updated **My Investment** balance, and more USDT in your wallet!


---

# 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.starfish.finance/defi-x-nft-fi/liquidity/withdraw-remove-liquidity.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.
