> For the complete documentation index, see [llms.txt](https://docs.bsc.lista.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bsc.lista.org/for-developer/credit-loans/bad-debt-handling.md).

# Bad Debt Handling

## Why Write-Off Matters

Credit Vault has a fairness issue if defaults are not explicitly recognized on-chain.

Because interest is collected upfront and distributed immediately, early withdrawers may exit before default losses are reflected. If bad debt remains booked at face value, vault NAV is overstated and later withdrawers bear disproportionate liquidity risk.

## Write-Off Flow

To resolve this, bad debt is recognized via liquidation/write-off paths such as:

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

When write-off is executed:

1. Outstanding borrow balance is reduced in market accounting.
2. Vault total assets are adjusted to recoverable value.
3. Share price is reduced immediately and proportionally.

This ensures losses are distributed to current shareholders at the time of realization, rather than deferred to later exits.

## Impact on Vault Shareholders

* Defaulted principal reduces vault total assets.
* Share price drops proportionally at write-off time.
* All current shareholders absorb loss pro-rata.
* There is no insurance tranche or first-loss absorber in this model.

Tradeoff: shareholders take this risk in exchange for higher yield from upfront interest and overdue penalties on performing loans.


---

# 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.bsc.lista.org/for-developer/credit-loans/bad-debt-handling.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.
