# 坏账处理

## 为什么注销很重要

如果违约未在链上明确识别，Credit Vault 将存在公平性问题。

由于利息是预先收取并立即分配的，提前退出的投资者可能会在违约损失反映之前退出。如果坏账仍按面值记账，金库的净资产值会被高估，后期退出的投资者将承担不成比例的流动性风险。

## 注销流程

为了解决这个问题，通过以下清算/注销路径识别坏账：

* `CreditBroker.liquidate()`
* `Moolah.liquidateBrokerPosition()`

执行注销时：

1. 在市场会计中减少未偿还借款余额。
2. 调整金库总资产至可回收价值。
3. 立即并按比例降低份额价格。

这确保了损失在实现时分配给当前股东，而不是推迟到后期退出。

## 对金库股东的影响

* 违约本金减少金库总资产。
* 在注销时份额价格按比例下降。
* 所有当前股东按比例分摊损失。
* 在此模型中没有保险级别或首次损失吸收层。

权衡：股东为了从预付利息和表现良好贷款的逾期罚款中获得更高的收益，接受这种风险。


---

# 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.bsc.lista.org/zh-cn/kai-fa-zhe-zhuan-qu/credit-loans/bad-debt-handling.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.
