> For the complete documentation index, see [llms.txt](https://docs.blackhole.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blackhole.xyz/protocol-design/liquidity-pools/rebalancer.md).

# Rebalancer

LP providers can use 1-click Rebalance and Unstake & Withdraw to facilitate LP operations.

To enable this, go to your Portfolio page and approve rebalance and approve unstake & withdraw:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2FAjYSNYBYLo8exJohb0O8%2Fimage.png?alt=media&amp;token=d41ad649-6ffa-414c-8074-db6cb1542cad" alt=""><figcaption></figcaption></figure>

After approvals the buttons "REBALANCE" and "UNSTAKE & WITHDRAW" appear:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2FkusLuKJmuLSePvwpC8eh%2Fimage.png?alt=media&amp;token=f54f7acb-a531-400a-bea4-9f104a0b5fb3" alt=""><figcaption></figcaption></figure>

When your LP position moves out of range and you need to rebalance quickly, simply click the Rebalance button. Be sure to adjust the slippage settings if necessary.

Review the Rebalance pop-up to confirm the swap settings and the new range:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2FFJNqVSSt12WrUIghAKpr%2Fimage.png?alt=media&amp;token=1304fcd1-a4fe-4581-a962-8a31ab6fa1a1" alt=""><figcaption></figcaption></figure>

Click on Confirm to execute the rebalance.&#x20;

In addition to the simplified rebalancing feature, you can also easily unstake and withdraw with one click:&#x20;

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2FRMKCR4jwjM0gQUsZ7Ql2%2Fimage.png?alt=media&amp;token=d3706ab9-b600-4e63-bab1-ac25d3a954f8" alt=""><figcaption></figcaption></figure>

A popup window will confirm the amount of any BLACK rewards that will be claimed in addition to the unstake and withdraw amounts:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2Fmp9Z6GtSVIq1lhg7sTqz%2Fimage.png?alt=media&amp;token=654e5874-631d-4fec-a49b-9b7f789dc9ae" alt=""><figcaption></figcaption></figure>

Click on Confirm to execute.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.blackhole.xyz/protocol-design/liquidity-pools/rebalancer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
