> 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/how-ducat-works/vaults/repaying-unit.md).

# Repaying UNIT

Repayment burns protocol-valid active UNIT and reduces the debt in a successor vault. It uses two linked transactions: a burn transaction and a vault update.

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-b94214796d25f0bed337e6e876abd3b98786bb32%2Fgitbook-repaying-unit.png?alt=media" alt="Active UNIT is burned before the Vault transaction. Partial repayment lowers debt; full repayment produces a Cleared vault."><figcaption><p>Repay UNIT</p></figcaption></figure>

### Transaction sequence

1. Load the current vault and select sufficient active UNIT for the requested repayment.
2. Prepare the **burn transaction**, which burns the repayment amount through the Rune transaction and creates the intermediate output needed by the vault update.
3. Prepare the dependent **vault transaction**, which records the reduced debt. Partial repayment retains the required signed oracle commitments; full repayment creates a Cleared vault with no liquidation commitments.
4. Obtain the required user and guardian signatures, broadcast the linked transactions and verify the accepted successor state.

The validator checks the active UNIT burn against the debt reduction. Reserve UNIT cannot substitute for active UNIT in this check. An ordinary token transfer to an address does not repay the vault.

### Partial repayment

A pure repayment leaves net collateral unchanged and lowers debt. It can improve a position below 160% without requiring the remaining debt to satisfy the borrowing floor.

A repayment that also reduces net collateral is treated differently: while debt remains, the resulting position must satisfy the applicable floor and non-worsening ratio checks. Paying fees from the vault can affect this distinction. Review the final output values rather than assuming every repayment is a pure repayment.

Any remaining nonzero debt must satisfy the minimum-debt rule. Confirmation matters: a pending repayment can conflict with another spend of the same vault.

### Full repayment is not Close

Full repayment leaves a debt-free **Cleared** vault. Its BTC remains under the owner's and guardian group's cooperative spending condition.

To return that BTC to the wallet, submit a separate [Close Vault](https://docs.ducatprotocol.com/how-ducat-works/vaults/close-vault.md) transaction. Close does not require another UNIT burn or an oracle quote, but it still requires guardian participation and a transaction fee.

The burn and vault transactions are linked, not consensus-atomic. Track both; do not treat the burn transaction alone as confirmation that the vault's debt record has been updated.
