> For the complete documentation index, see [llms.txt](https://sosovalue.gitbook.io/sosovalue-indices/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sosovalue.gitbook.io/sosovalue-indices/solution-design/rebalance.md).

# Rebalance

1. The protocol enters the rebalancing state and pauses minting and burning operations.
2. The protocol first fetches the target index constituent token information, including rebalancing details, from the index compiler.
3. The protocol server sends a rebalancing quote request to PMM, which will return a quote order.
4. If the order price is favorable, the protocol will verify the order and notify PMM to fill the order.
5. During the rebalancing process, tokens are transferred between the protocol's custody wallet and PMM wallets. PMM will sell the tokens being removed from the index and buy the tokens being added. This process is secured by on-chain smart contracts to ensure the trustworthiness of the transactions.
6. After all trades are completed, the protocol updates the index token constituent information and marks the rebalancing process as complete.
7. Once the rebalancing process is complete, minting and burning operations resume.

<figure><img src="/files/sNWK6FIEEUX5tFayDL3q" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sosovalue.gitbook.io/sosovalue-indices/solution-design/rebalance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
