# 头寸健康度&清算

### 头寸健康度

每一个借贷对都有一个配置好的最大贷款价值比(LTV)。随着时间的推移，随着利息的资本化，借款人必须增加更多的抵押品或偿还部分债务。否则，他们的头寸可能会变得不健康。为了确定借款人的LTV，我们使用抵押品的价值和ftoken的价值。

$$
LTV=\frac{BorrowShares \times Share Price}{CollateralBalance / ExchangeRate}
$$

*股价为1个fToken的资产代币单位价格(即资产代币:fToken比率)*

*汇率是1个资产代币的抵押品单位价格(即抵押品代币:资产比率)*

### 清算

当借款人的LTV高于最高LTV时，任何用户都可以代表借款人偿还债务，并获得同等价值的抵押品和清算费用。清算费用是不可更改的，并在部署时确定。默认情况下，该值被设置为10%，可以通过调用借贷对上的 `liquidationFee()` view函数来访问。通过在借贷对上调用 `maxLTV()` 函数可以找到配置的最大LTV。

### 动态债务重组

当借款人的贷款价值比（LTV）超过最大 LTV（通常为 75%）时，清算人可以立即关闭借款人的头寸。然而，在极端波动的情况下，可能清算人无法在 LTV 超过 100% 之前关闭不健康的头寸。在这种不太可能发生的情况下，会产生坏账。在这种情况下，清算人偿还由借款人抵押品覆盖的最大借款头寸，剩余债务则从所有贷款人对基础资本的总索取权中扣除。这可以防止贷款人争相提取流动性，导致最后的贷款人持有无价值的 fTokens（在其他贷款市场中通常称为“坏账”），并确保在不利事件后，交易对能够立即恢复正常运作。


---

# 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.frax.finance/zh/fraxlend/gao-ji-gai-nian/tou-cun-jian-kang-du-qing-suan.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.
