> 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.md).

# Profit Settlement

A liquidator receives collateral while assuming UNIT debt. Profit is realised only after accounting for the reserve deduction, any BTC contribution, the cost of acquiring UNIT for repayment, fees and price changes during the position.

### Reserve deduction and rebate

For the [published UNIT/USD anchor](https://docs.ducatprotocol.com/how-ducat-works/protocol-parameters.md), the maximum liquidation tax is 15%. A rebate reduces the tax as the claimed position's collateral ratio falls below 125%.

The calculation uses the claimed **net** collateral and debt, valued at the liquidator's authenticated settlement price. The implementation rounds the percentage-point shortfall to the nearest integer, with nonnegative half values rounding upward.

```
ratio = claimed_net_BTC × settlement_BTC_USD_price / claimed_UNIT_debt
shortfall_points = round_nearest(max(0, 1.25 - ratio) × 100)
rebate_rate = min(0.15, round_4dp(0.006 × shortfall_points))
reserve_rate = round_4dp(0.15 - rebate_rate)
reserve_sats = round_nearest(round_4dp(claimed_net_sats × reserve_rate))

if reserve_sats < 1,000:
    reserve_sats = 0

collateral_to_liquidator_sats = claimed_net_sats - reserve_sats
```

The rate is discrete, not a perfectly smooth curve. Rounding a value to four decimal places here means nearest rounding, not truncation. The reserve floor is applied to each target's calculated reserve before aggregation in a bundled Repo.

| Claimed collateral ratio | Rounded shortfall below 125%  | Rebate      | Remaining reserve rate |
| ------------------------ | ----------------------------- | ----------- | ---------------------- |
| 125%                     | 0 percentage points           | 0%          | 15%                    |
| 124.9%                   | 0 percentage points           | 0%          | 15%                    |
| 124.4%                   | 1 percentage point            | 0.6%        | 14.4%                  |
| 120%                     | 5 percentage points           | 3%          | 12%                    |
| 110%                     | 15 percentage points          | 9%          | 6%                     |
| 100% or lower            | At least 25 percentage points | 15%, capped | 0%                     |

The rebate offsets reserve revenue. It does not create additional BTC or guarantee a positive liquidation return. Below 100%, fully offsetting the tax does not remove the collateral shortfall against debt.

### Capital required at takeover

The liquidator must leave their resulting vault compliant with the minimum ratio. For an isolated assumed position, ignoring fees and rounding:

```
required_net_collateral_USD = assumed_UNIT_debt × minimum_ratio
additional_BTC_value_USD =
    max(0, required_net_collateral_USD - collateral_received_USD)
```

An existing liquidator vault contributes its own collateral and debt to the real calculation. Its available headroom can reduce the additional BTC needed; its existing debt cannot be ignored.

The required retained minimum is separate from net collateral. Transaction fees and output rounding must also be funded.

### Repayment and profit

Repo and Trim do not burn the assumed UNIT debt. To exit, the liquidator must obtain active UNIT, burn it through the repayment flow and then close the resulting Cleared vault.

For a simplified isolated position valued at a constant BTC/USD price:

```
UNIT_purchase_cost_USD = assumed_UNIT_debt × market_UNIT_USD_price
profit_USD = collateral_received_USD - UNIT_purchase_cost_USD - total_fees_USD

incremental_cash_committed_USD =
    additional_BTC_value_USD + UNIT_purchase_cost_USD + total_fees_USD

illustrative_return = profit_USD / incremental_cash_committed_USD
```

The additional BTC contribution is returned as part of the collateral on exit; it is not itself profit. This return measure excludes pre-existing vault capital and retained minimums. A portfolio return must include that capital and the duration of exposure.

If BTC changes price before exit, value the final BTC proceeds at the exit price and account for the cost of the liquidator's own BTC contribution. UNIT's market price affects repayment cost even though protocol collateral ratios denominate UNIT debt at its $1 target.

The protocol does not guarantee market liquidity, execution at the target price, immediate settlement or positive returns. The [worked example](https://docs.ducatprotocol.com/liquidations/profit-settlement/example.md) separates the target collateral, top-up and eventual repayment.
