> For the complete documentation index, see [llms.txt](https://documents.velo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documents.velo.org/base-concepts/rebalancing-the-reserve-and-collateral-pool.md).

# Rebalancing the Reserve and Collateral Pool

Collateral asset values may change every day. As a result, collateralization levels will increase and decrease. The DRS continually checks the collateral health and transfers tokens between the collateral and reserve pools to maintain a consistent level of collateralization.

## Logic&#x20;

### 1. run the collateral health check to determine the amount of mismatch for the specified stable credit.&#x20;

&#x20;            ● If there are no mismatched amounts then no rebalancing is required.&#x20;

### 2. If a mismatch is detected, then initiate transfer between the Collateral and the Reserve pool to ensure that the amount of collateral in the Token Collateral Pool is always in line with the amount of collateral required.&#x20;

&#x20;          ● If the amount of collateral in the Collateral account exceeds the required amount, DRS executes a payment operation to return the excess collateral to the Token Reserve Pool.&#x20;

&#x20;          ● If the amount of collateral in the Token Collateral Pool is less than the required amount, DRS executes a payment operation to get the missing collateral from the Token Reserve Pool.

## Workflow

![](/files/-MHzJqdkBVMHpt8icVgE)


---

# 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://documents.velo.org/base-concepts/rebalancing-the-reserve-and-collateral-pool.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.
