> For the complete documentation index, see [llms.txt](https://docs.concordia.systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.concordia.systems/platform-spec/risk-framework/rebalancing-liquidation.md).

# Rebalancing (Liquidation)

**Basic Concept of Rebalancing**

A portfolio may be forcefully rebalanced if it has insufficient equity.  Rebalancing a portfolio involves taking over a portion of its debt and collateral, with the effect of increasing its health.

A portfolio's health is a ratio of its total risk over its total collateral.  To calculate total risk, the market value of its liabilities are summed and added to a quantity of risk.  In this formulation, "risk" is just the required equity in a a portfolio -- that is, the value of collateral in excess of the value of liabilities.

$$
HealthRatio = \frac {Liabilities + Risk} {Collateral}
$$

For a portfolio to be considered "healthy", its total collateral value must be greater than its liabilities added to the portfolio specific amount of risk.

$$
Collateral \gt Liabilties + Risk
$$

**Dynamic Close Rebalancing**

The Concordia liquidation mechanism is one of the most vital components ensuring the protocol's health. Creating a successful liquidation mechanism must consider several primary concepts:&#x20;

1. Preventing toxic debt
2. Ensuring adequately capitalized and decentralized liquidators&#x20;
3. Other Design Factors.&#x20;

\*Note that neither is mutually exclusive and centered around incentives.&#x20;

**Terms**

* **Bounty:** Also referred to as Liquidation Fee or Liquidation Spread. The discount is offered on collateral to liquidations to repay parts of the loan.
* **Close-Factor:** the maximum amount of debt that can be closed out and repaid in a single liquidation, eventually equal to 1 in the dynamic close outlined below.&#x20;


---

# 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://docs.concordia.systems/platform-spec/risk-framework/rebalancing-liquidation.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.
