> For the complete documentation index, see [llms.txt](https://docs.ducatprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ducatprotocol.com/liquidations/profit-settlement/example.md). Agents can also search and read this documentation through its [MCP server](https://docs.ducatprotocol.com/~gitbook/mcp).

# Example

This example follows a full liquidation, repayment and close using the published UNIT/USD parameters. It is an illustrative USD calculation before satoshi rounding and transaction fees.

Assume UNIT can be purchased for exactly $1, BTC's price stays constant after liquidation, and Bob has a suitable cleared liquidator vault. Required retained vault minimums are outside the amounts below; Alice's $800 starting collateral is **net** collateral.

### Alice's position

Alice has $800 of net BTC collateral and 500 UNIT of debt, a 160% ratio.

BTC falls by 15.7%, reducing her net collateral value to:

```
$800 × (1 - 0.157) = $674.40
$674.40 / 500 UNIT = 1.3488 = 134.88%
```

Assume the matching oracle threshold key has been released and the proposed transaction passes the current eligibility and signing checks. A displayed ratio below 135% alone is not the cryptographic authorisation for liquidation.

### Bob takes over the debt

The ratio is above the 125% rebate threshold, so the full 15% reserve deduction applies:

| Component                         | Calculation               | Value    |
| --------------------------------- | ------------------------- | -------- |
| Alice's claimable net collateral  | After the BTC decline     | $674.40  |
| Protocol reserve deduction        | $674.40 × 15%             | $101.16  |
| Net collateral transferred to Bob | $674.40 − $101.16         | $573.24  |
| Debt transferred to Bob           | Full Repo of Alice's debt | 500 UNIT |
| Required net collateral at 160%   | 500 × 1.60                | $800.00  |
| Bob's additional BTC contribution | $800.00 − $573.24         | $226.76  |

After the Repo, Bob's vault has $800 of net BTC collateral and 500 UNIT of debt. The $573.24 is the value received from Alice after the reserve deduction; it is not Bob's full post-action vault value.

Alice retains a Cleared output at the required minimum, 1,000 sats in this parameter snapshot. That retained output is not included in the $674.40 net collateral calculation.

### Bob repays and closes

Bob buys 500 active UNIT for $500. He completes the burn-and-update repayment, producing a Cleared vault, and then submits a separate Close transaction.

At the assumed unchanged BTC price, his net collateral is still worth $800 before fees:

```
incremental cash committed = $226.76 BTC top-up + $500 UNIT purchase
                          = $726.76

profit = $800 returned net collateral - $726.76 cash committed
       = $73.24

illustrative return = $73.24 / $726.76
                    ≈ 10.08%
```

This excludes the existing cleared-vault minimum and all transaction fees. It also assumes Bob has no other debt or net collateral in the liquidator vault.

### What changes the outcome?

At a UNIT purchase price of $1.02, the repayment tokens cost $510. With the same BTC price and no fees, profit falls to $63.24.

Fees reduce profit. A BTC price change alters the value of the final proceeds, and a delay in obtaining UNIT leaves Bob exposed to that price movement. Actual transactions also apply integer satoshi and UNIT-base-unit rounding. The example does not establish a guaranteed return or guaranteed liquidity.
