# Welcome

Borrow UNIT against native BTC collateral held in Bitcoin vaults.

Ducat is a Bitcoin metaprotocol for borrowing UNIT against native BTC collateral. UNIT is designed to target approximately one US dollar.

BTC collateral stays in Bitcoin vault outputs. Bitcoin enforces their cryptographic spending conditions, guardians check and co-sign protocol operations, and Ducat validators reconstruct vault state and active UNIT balances from Bitcoin history.

The [UNIT/USD parameter reference](/how-ducat-works/protocol-parameters) documents a published mainnet anchor with a 160% borrowing floor and 135% liquidation threshold ratio. These values are risk parameters, not a guarantee of collateralisation or price stability at all times.

DUCAT is the planned governance token; the protocol's data model supports a Bitcoin Rune governance asset. The [governance section](/governance/governance) distinguishes this design from the configured UNIT asset and does not claim that tokenholder voting is operational.

Start with [How Ducat Works](/how-ducat-works/overview), or read the [Trust Assumptions](/trust-assumptions/overview) before opening a vault.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-type="files"></th></tr></thead><tbody><tr><td>DUCAT</td><td><a href="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-dcd19839cec87bc11096a0dbed073a84c63a8a2f%2Fgitbook-ducat-card.png?alt=media">gitbook-ducat-card.png</a></td><td><a href="/ducat/the-ducat-protocol">The Ducat Protocol</a></td><td><a href="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-66ec46ef6cae74dce20da5c6184a10784dde2217%2FScreenshot%202025-02-19%20at%2002.39.13.png?alt=media">Screenshot 2025-02-19 at 02.39.13.png</a></td></tr><tr><td>UNIT</td><td><a href="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-a2caa9d5910d623d8a863168e131254710927388%2Fgitbook-unit-card-and-logo.png?alt=media">gitbook-unit-card-and-logo.png</a></td><td><a href="/unit/philosophy">Philosophy</a></td><td></td></tr><tr><td>HOW DUCAT WORKS</td><td><a href="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-ac1a2e1a6fd0ba4f88fd2205ad60e1f70c382a8d%2Fgitbook-how-ducat-works-card.png?alt=media">gitbook-how-ducat-works-card.png</a></td><td><a href="/how-ducat-works/overview">Overview</a></td><td></td></tr><tr><td>LIQUIDATIONS</td><td><a href="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-d5d693cea3f40782329d0c94be48b8efd663eaf7%2Fgitbook-liquidations-card.png?alt=media">gitbook-liquidations-card.png</a></td><td><a href="/liquidations/basic-mechanics">Basic Mechanics</a></td><td></td></tr><tr><td>TRUST ASSUMPTIONS</td><td><a href="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-0b3d7986e731c29de938331172c01aed21576e58%2Fgitbook-trust-assumptions-card.png?alt=media">gitbook-trust-assumptions-card.png</a></td><td></td><td></td></tr><tr><td>GOVERNANCE</td><td><a href="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-7f415b264fac56fdc569799df617629b209ba4a3%2Fgitbook-governance-card.png?alt=media">gitbook-governance-card.png</a></td><td><a href="/governance/governance">Governance</a></td><td></td></tr></tbody></table>


# The Ducat Protocol

The Ducat Protocol defines BTC-collateralised debt positions and the issuance, transfer and repayment of active UNIT.

DUCAT is the planned governance token, represented as a Bitcoin Rune in the protocol's data model. Token launch and operational voting are separate from the published UNIT anchor. See [Governance](/governance/governance).

Bitcoin confirms the collateral transactions and enforces their spending scripts. Guardians authorise protocol operations and validators reconstruct their state. These roles add guardian and oracle dependencies, described in [Architecture](/how-ducat-works/architecture).

### Why Ducat?

Ducat is designed to let BTC holders borrow a dollar-targeting asset without first selling their BTC or moving the collateral to another blockchain. The borrower takes on a UNIT-denominated debt and retains exposure to the BTC collateral's price.

That position requires active risk management. A fall in BTC's price can reduce borrowing capacity or enable liquidation. Repayment requires active UNIT, whose market purchase price can differ from its dollar target.

### Why Bitcoin?

Taproot spending conditions, threshold Schnorr signatures and Rune transfers provide the building blocks for the documented transaction flows. Protocol software supplies the additional debt, oracle and collateral accounting that Bitcoin consensus does not execute.

Ducat keeps vault collateral on Bitcoin. Users retain a required signature in the cooperative spending path, while guardians participate in authorisation and oracle preimages enable the separate liquidation path. This is a specific shared-control arrangement, not an unrestricted user-only right to withdraw.

### Eligible Collateral

BTC is the only eligible collateral for borrowing. Since our product is built on Bitcoin Layer 1, this is a natural choice. The design uses BTC as external collateral rather than relying on the value of the protocol's governance token. BTC's market price and liquidity still determine collateral risk.

### Why USD?

UNIT targets a familiar dollar-denominated unit of account for users who hold BTC but face USD-denominated costs and liabilities. The target defines the debt denomination used in collateral calculations; it is not a promise that UNIT can always be exchanged for one dollar.


# Philosophy

UNIT is a Bitcoin-native asset designed to target approximately one US dollar. Users borrow it against native BTC collateral held in Ducat vaults. Its market price can differ from the target.

### Collateral and risk

The [documented UNIT/USD anchor](/how-ducat-works/protocol-parameters) sets a 160% minimum ratio for relevant borrowing and withdrawal actions and a 135% liquidation threshold ratio. These are action and liquidation parameters, not a guaranteed range for the collateral value at every moment.

BTC price movements can reduce a vault's ratio. Users can add collateral or repay debt to improve their position. If the oracle's committed threshold is breached, a valid liquidation can transfer debt and collateral to a liquidator's vault.

BTC remains on Bitcoin rather than being bridged to another chain. Vault spending nevertheless depends on the user/guardian and guardian/oracle conditions described in [Trust Assumptions](/trust-assumptions/overview).

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-a2caa9d5910d623d8a863168e131254710927388%2Fgitbook-unit-card-and-logo.png?alt=media" alt="UNIT coin illustrated beside a Bitcoin vault"><figcaption><p>UNIT</p></figcaption></figure>

### Price stability

Borrowing, repayment and liquidation affect supply, demand and collateral backing. Borrowers may be motivated to acquire UNIT to repay when it trades below its target. Liquidators need to manage the UNIT debt they assume and may later acquire UNIT to settle it.

These incentives do not guarantee a trading price or market liquidity. Liquidation also depends on oracle evidence, guardian availability, liquidator capital and Bitcoin confirmation.

### Fees

The [parameter reference](/how-ducat-works/protocol-parameters) distinguishes anchored terms from application charges. Review the transaction quote for debt, UNIT received, BTC collateral and Bitcoin fees. Do not infer a fixed origination charge or fee-free application from the protocol's collateral ratios.


# Overview

Ducat is a Bitcoin metaprotocol for borrowing UNIT against native BTC collateral. Collateral stays in Bitcoin transaction outputs; UNIT transfers use the Runes protocol. Ducat software interprets the additional records that establish which borrowing, repayment and liquidation actions are valid.

### Who does what?

| Component                      | Responsibility                                                                                                               |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Bitcoin                        | Confirms transactions and enforces signatures, hashlocks and other script conditions.                                        |
| Transaction builder and wallet | Construct Partially Signed Bitcoin Transactions (PSBTs), display the requested action and obtain the user's signatures.      |
| Guardian Network               | Checks proposed operations against protocol rules and supplies the guardian signatures needed to spend the relevant outputs. |
| Oracles                        | Sign BTC/USD price commitments and release the corresponding threshold preimages when their breach conditions are satisfied. |
| Ducat validators               | Reconstruct protocol state from Bitcoin, validate vault actions and track active and reserve UNIT separately.                |
| Anchor Contract                | Publishes the protocol's identity, recognised asset commitments, authorised keys and parameters.                             |

Bitcoin Script does not itself calculate debt, collateral ratios or the BTC/USD price. Guardian signing policy and independent protocol validation supply those checks. See [Architecture](/how-ducat-works/architecture) and [Trust Assumptions](/trust-assumptions/overview).

### Collateral, debt and UNIT

A [vault](/how-ducat-works/vaults) holds BTC and records a UNIT debt balance. Opening a vault or borrowing more UNIT uses a linked issuance transaction and vault transaction. An accepted vault action activates the corresponding UNIT amount in Ducat's ledger.

Repayment burns active UNIT and reduces the vault's debt. Depositing or withdrawing BTC changes collateral without changing debt. Full repayment leaves a debt-free vault that can then be [closed](/how-ducat-works/vaults/close-vault).

[Liquidation](/liquidations/basic-mechanics) transfers debt and reclaimable collateral into a liquidator's vault. It does not itself extinguish the transferred debt.

### Records and parameters

The [Anchor Contract](/how-ducat-works/anchor-contract) is a published data record. Vault outputs, Rune transfers and compact vault metadata provide the on-chain evidence used by validators. The [Vault State](/how-ducat-works/vault-state) page explains the distinction between stored data and calculated metrics.

The [parameter reference](/how-ducat-works/protocol-parameters) identifies a specific UNIT/USD mainnet anchor and its values. Those values must not be applied to a different network or protocol profile without verification.

DUCAT-token governance is a planned component. The [governance pages](/governance/governance) distinguish that design from the published anchor and implemented validation mechanisms.


# Architecture

Ducat combines Bitcoin settlement with guardian authorisation and independent metaprotocol validation.

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-087881e34f382ebab5ff92206705a3b50efc88bb%2Fgitbook-architecture.png?alt=media" alt="Oracle commitments and Anchor configuration support wallet construction, guardian signing, Bitcoin settlement and validator reconstruction of vault state and active UNIT balances."><figcaption><p>Protocol architecture</p></figcaption></figure>

### Bitcoin spending conditions

An indebted vault has two kinds of Taproot script path:

* **Cooperative:** the vault owner's signature and an authorised guardian signature.
* **Liquidation:** an authorised guardian signature and a preimage matching one of the vault's oracle threshold hashes.

A guardian signature may be produced by several operators jointly using FROST. It is still the guardian side of the spending condition; the cooperative path also requires the user's separate signature.

Bitcoin checks these cryptographic conditions. It does not read the oracle's external market data or enforce the collateral ratio as a Bitcoin consensus rule.

### Guardian checks

Before co-signing, guardians validate the requested transaction, its inputs and outputs, applicable protocol parameters, oracle commitments, and the action's collateral and debt changes. For repayment, the linked burn must account for the debt reduction. For liquidation, the preimage and settlement must satisfy the applicable rules.

Guardian participation is a liveness dependency: a user cannot complete a cooperative vault spend without a valid guardian signature.

### Independent validation

Validators parse the confirmed Bitcoin history and reconstruct vault state and UNIT accounting. They can reject a transaction as a Ducat operation even if Bitcoin accepts the underlying transaction. That rejection does not undo a confirmed Bitcoin spend.

Strict signing checks and confirmed replay have different purposes. Replay retains certain economic-policy diagnostics alongside the observed state, while structural and authentication checks still apply. See [Validators](/how-ducat-works/validators) before treating an indexed transaction as proof of compliance with every current signing rule.

The [Vault State](/how-ducat-works/vault-state) and [Supply Control](/trust-assumptions/supply-control) pages describe what validators reconstruct.

### Future designs

Research into different spending constructions or future Bitcoin capabilities may reduce reliance on guardians. Such mechanisms are not an exit path provided by the spending conditions documented here.


# Vaults

A vault holds BTC collateral and records the UNIT debt associated with it. Its current state is a Bitcoin UTXO plus the spending conditions and protocol history needed to interpret that output. An update spends the current vault and creates its successor.

Ordinary updates require both the owner's signature and a guardian-group signature. An encumbered vault also has liquidation paths requiring a guardian-group signature and an oracle threshold preimage. The owner does not have a unilateral spending path in the documented implementation.

### Actions and transaction stages

| Action                                                 | Bitcoin transactions in the vault flow | Result                                                               |
| ------------------------------------------------------ | -------------------------------------- | -------------------------------------------------------------------- |
| [Open Vault](/how-ducat-works/vaults/open-vault)       | Issue, then vault                      | Creates a collateralised vault and delivers newly active UNIT.       |
| [Deposit BTC](/how-ducat-works/vaults/deposit-btc)     | One vault update                       | Increases collateral without increasing debt.                        |
| [Borrow UNIT](/how-ducat-works/vaults/borrow-unit)     | Issue, then vault                      | Increases debt and delivers additional active UNIT.                  |
| [Repaying UNIT](/how-ducat-works/vaults/repaying-unit) | Burn, then vault                       | Reduces debt; full repayment produces a Cleared vault.               |
| [Withdraw BTC](/how-ducat-works/vaults/withdraw-btc)   | One vault update                       | Reduces collateral while preserving the required remaining position. |
| [Close Vault](/how-ducat-works/vaults/close-vault)     | One close transaction                  | Spends a Cleared vault and returns the remaining BTC after fees.     |

These counts describe the protocol action, not unrelated wallet funding or consolidation transactions. Two-transaction flows are linked through spent outputs. They are not an atomic Bitcoin consensus operation: the child depends on the parent, and each transaction has its own broadcast and confirmation status.

### Borrowing capacity

The published UNIT/USD parameters require a minimum 160% ratio for borrowing. The calculation uses **net collateral**, excluding the required minimum retained in the vault output:

```
net_BTC = (vault_sats - minimum_vault_sats) / 100,000,000
maximum_total_UNIT_debt = net_BTC × authenticated_BTC_USD_price / 1.60
additional_borrowing_capacity = maximum_total_UNIT_debt - existing_UNIT_debt
```

For example, $10,000 of net collateral supports up to 6,250 UNIT of total debt before rounding and any reduction in collateral to pay fees. This is not a promise that a vault remains above 160% after market prices change.

Depositing collateral or repaying debt can improve a position below the borrowing floor. The exact output, oracle commitments and other action checks must still be valid. A pending recovery transaction does not reserve the vault against a competing liquidation.

### Debt and ownership

UNIT received by the borrower can circulate independently of the vault. Sending UNIT to another wallet does not transfer or repay the vault's debt. Repayment requires the protocol's burn-and-update flow.

A full repayment removes the debt and liquidation commitments but retains the cooperative spending requirement. Use Close to release the remaining BTC. See [Vault State](/how-ducat-works/vault-state) for stored fields and [Protocol Parameters](/how-ducat-works/protocol-parameters) for the dated parameter reference.


# Open Vault

Opening a vault locks BTC as collateral and creates a corresponding UNIT debt. The wallet prepares two linked transactions, which guardians validate and help sign.

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-27cb1dc523c4ec2b5a02b98e1d88e83c00069619%2Fgitbook-open-vault.png?alt=media" alt="Wallet funding and the UNIT reserve feed an Issue transaction, followed by a Vault transaction that creates the BTC vault with recorded debt and active UNIT for the borrower."><figcaption><p>Open a vault</p></figcaption></figure>

### Transaction sequence

1. Select the applicable protocol profile, an authorised guardian group and valid signed oracle price contracts. Calculate the proposed debt, net collateral, liquidation commitments and fees.
2. Build the **issue transaction**. It prepares the UNIT allocation and an intermediate output connecting it to the vault transaction. It does not, by itself, complete a collateralised borrowing action.
3. Build the dependent **vault transaction**. It creates the BTC vault, writes its debt and oracle commitments, and delivers UNIT to the borrower.
4. Obtain the required user and guardian signatures, submit the transactions and track their confirmation. The validator recognises active issuance from the accepted protocol action.

The result must meet the borrowing ratio floor and the applicable minimum-output and minimum-debt rules. The [parameter reference](/how-ducat-works/protocol-parameters) distinguishes those minimums from transaction fees.

### What is created

The BTC output commits to the owner's key, the selected guardian-group keys and the oracle threshold hashes. Its metadata records the debt and the authenticated price commitments. The validator associates these with the transaction history; a separate wallet-held ownership token is not required.

The UNIT reserve and active UNIT are different protocol ledger classifications of the Rune. A Rune allocation alone does not prove that collateralised issuance completed.

### Completion and fees

Review the actual UNIT delivered and the BTC remaining in the vault after funding and fees. A signed request, an issue transaction ID or a pending child transaction is not evidence that the completed vault is confirmed. The two transactions have separate Bitcoin acceptance and confirmation states.


# Deposit BTC

Depositing BTC adds collateral to an existing vault without increasing its UNIT debt. The action spends the current vault together with wallet funding and creates a successor vault in one Bitcoin transaction.

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-ca529b5bae27bcdce7b169f0c95b9bd6bb2ae6a6%2Fgitbook-deposit-btc.png?alt=media" alt="The current vault and wallet BTC feed a Deposit transaction, producing a successor with more collateral and the same debt."><figcaption><p>Deposit BTC</p></figcaption></figure>

### Transaction sequence

1. Load the current unspent vault and its accepted protocol state.
2. Choose the BTC contribution and prepare the successor output. For a vault with debt, include the authenticated oracle commitments required for that update.
3. Have the owner and an authorised guardian group sign the transaction.
4. Broadcast it and track confirmation. The accepted successor becomes the current vault.

The increase in vault collateral is the difference between the actual successor and previous output values. It need not equal the amount selected from the wallet if part of the wallet funding pays transaction fees or returns as change.

### Effect on risk

Adding collateral can improve a vault that is already below the borrowing floor; a deposit does not have to restore the ratio to 160% in one step. This does not waive the other action, oracle or signing checks.

An unconfirmed deposit cannot guarantee protection from liquidation. If a competing spend consumes the old vault first, the deposit cannot also spend it. Use the accepted successor state when assessing the position.

A deposit does not issue UNIT or repay debt. To reduce the debt, use [Repaying UNIT](/how-ducat-works/vaults/repaying-unit).


# Borrow UNIT

Borrowing more UNIT increases the debt recorded against an existing vault. It uses an issue transaction followed by a dependent vault transaction, as with opening a vault.

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-59c0af70a7bf349d17529c1cef63ed582c3cd28d%2Fgitbook-borrow-unit.png?alt=media" alt="An Issue transaction and the existing vault feed a Vault transaction, producing a successor with increased debt and additional active UNIT for the borrower."><figcaption><p>Borrow additional UNIT</p></figcaption></figure>

### Transaction sequence

1. Load the current vault, protocol terms and valid signed oracle price contracts.
2. Calculate the total debt after borrowing and the actual collateral that will remain after the chosen funding and fee arrangement.
3. Prepare the issue transaction and the dependent vault transaction, including updated debt and liquidation commitments.
4. Obtain the required user and guardian signatures, broadcast the linked transactions and track both confirmations.

The completed action must meet the borrowing ratio floor. For the published UNIT/USD anchor, that floor is 160%, calculated from net collateral rather than the gross BTC output value.

```
new_total_debt = previous_debt + additional_UNIT_borrowed
new_ratio = net_successor_BTC × authenticated_BTC_USD_price / new_total_debt
```

The wallet must account for rounding, minimum values and fees. Do not assume the BTC collateral stays exactly unchanged: it depends on the transaction's funding mode and final outputs.

### Supply and liquidation commitments

The validator recognises the new active UNIT through the valid borrowing action. A reserve Rune transfer or an issue transaction alone does not demonstrate completed collateralised issuance.

Borrowing replaces the old vault output. The successor's signed oracle commitments and threshold hashes define its liquidation paths. Review those new commitments with the debt and collateral amounts.

The linked transactions are not a single atomic Bitcoin transaction. Track the parent and child separately until the final vault state is accepted.


# 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](/how-ducat-works/vaults/close-vault) 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.


# Withdraw BTC

Withdrawing BTC reduces collateral while keeping the vault open. A single transaction spends the current vault, pays BTC to the user's chosen destination and creates a successor vault.

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-5d4fe957c5a4d799184937af73c18d1533565384%2Fgitbook-withdraw-btc.png?alt=media" alt="A Withdrawal transaction spends the current vault, returns BTC to the user and creates a successor vault with less collateral."><figcaption><p>Withdraw BTC</p></figcaption></figure>

### Transaction sequence

1. Load the current vault and calculate the proposed successor collateral after the withdrawal and fees.
2. For a vault with debt, obtain the required authenticated price contracts and construct the successor's liquidation commitments.
3. Check that the remaining net collateral meets the required ratio and that the successor satisfies the minimum-output rules.
4. Have the owner and an authorised guardian group sign, broadcast the transaction and track confirmation.

For the published UNIT/USD anchor, a withdrawal with debt remaining must satisfy the 160% floor. The ratio uses net collateral, excluding the required retained minimum.

```
required_net_BTC = UNIT_debt × minimum_ratio / authenticated_BTC_USD_price
```

The amount returned to the wallet depends on the final outputs and fees. The maximum withdrawal is not simply the gross vault balance minus the formula above: the retained minimum and any fees funded by the vault also matter.

### Debt-free vaults

A Cleared vault has no debt ratio, but a withdrawal that keeps the vault open still leaves a valid successor output. To end the vault and return its remaining BTC after fees, use [Close Vault](/how-ducat-works/vaults/close-vault).

Withdrawal does not burn UNIT or reduce debt. Use [Repaying UNIT](/how-ducat-works/vaults/repaying-unit) when the intended action is debt repayment.


# Close Vault

Close spends a debt-free **Cleared** vault and returns its remaining BTC to the user's selected destination, after the Bitcoin transaction fee. It ends the vault instead of creating a successor vault.

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-fbb9fc70d80c47336addcea3cf69d561a5bde886%2Fgitbook-close-vault.png?alt=media" alt="A Close transaction spends a Cleared vault with zero UNIT debt, returns remaining BTC to the user after fees and includes Cleared protocol metadata."><figcaption><p>Close a cleared vault</p></figcaption></figure>

### Requirements

* The input must be an unspent vault whose accepted state is Cleared. If debt remains, complete [Repaying UNIT](/how-ducat-works/vaults/repaying-unit) first.
* The owner and an authorised guardian group must sign the cooperative spend.
* The return output must meet the builder's applicable output constraints after fees.

Close is one Bitcoin transaction. The documented builder pays its fee from the vault input, returns BTC and includes Cleared protocol metadata. It does not consume UNIT, create a Rune burn or request an oracle price contract.

### Guardian participation

Debt-free does not mean independently spendable by the owner. Clearing the debt removes the liquidation paths, but the cooperative user-and-guardian condition remains. Guardian availability is therefore still required to close the vault.

Track the close transaction through confirmation and verify the destination and returned amount. A signed close request alone does not prove that the BTC has reached the destination.


# Anchor Contract

The Anchor Contract is a data inscription published on Bitcoin. A validator is configured to follow a particular anchor and uses its contents to establish the protocol's initial identity and rules. It is not a program that Bitcoin nodes execute.

### Published contents

* **Network and domain:** identify the Bitcoin network and protocol instance.
* **Boot height:** identifies the height from which protocol indexing begins.
* **Assets:** bind recognised Rune IDs to their mint commitments.
* **Signers:** identify authorised public keys by role and index, including guardian groups and oracles.
* **Terms:** define values used in validation, such as collateral requirements, liquidation rates and minimum output amounts.

Publication makes this configuration independently inspectable. It does not prove that an application uses that configuration, that its operators are available, or that governance voting is operational.

### Anchor and contract identifiers

The anchor location can be represented as `height:transaction_index:transaction_id`. The API's `anchor_id` is a tagged hash of those publication coordinates.

A `contract_id` is a separate tagged hash that binds an anchor ID to contract publication coordinates. It is not the raw Bitcoin transaction ID. In the configuration documented here, the anchor publication also supplies the contract publication coordinates.

The [parameter reference](/how-ducat-works/protocol-parameters) gives the publication coordinates for the UNIT/USD mainnet snapshot used in these docs.

### Versions and governance

The implementation includes protocol profiles, historical state and identifiers that support distinguishing versions. This does not by itself implement tokenholder voting or automatic publication of updated terms under an unchanged anchor.

The [planned governance model](/governance/upgradeability) should be distinguished from current anchor configuration. Existing vault scripts commit to their spending keys and threshold hashes; publishing a new data record alone cannot rewrite those Bitcoin outputs.


# Vault State

A vault is represented by a BTC transaction output, its spending conditions and the protocol history that leads to it. Updating a vault spends its current UTXO and creates a successor output. Closing it ends that chain.

The current transaction flows do not require a separately issued, wallet-held "Vault Token" to represent ownership. Control comes from the keys committed in the vault script; the validator reconstructs the associated record.

### Stored data

| Location                       | Information                                                                                                         |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
| Vault output value             | Gross BTC collateral, in satoshis.                                                                                  |
| Taproot spending conditions    | User and guardian keys, and any oracle threshold hashes.                                                            |
| Vault `OP_RETURN` metadata     | Vault format version, guardian indices and, when debt exists, debt balance, price timestamp and oracle commitments. |
| Each oracle commitment         | Oracle index, base BTC/USD price, threshold price, HASH160 threshold hash and BIP-340 Schnorr signature.            |
| Transaction inputs and history | Which earlier vault and issuance or burn outputs are spent, and how the action relates to prior state.              |
| Protocol profile               | The recognised assets, authorised keys and terms used to interpret the action.                                      |

A debt-free vault uses the **Cleared** metadata form. A vault with debt uses the **Encumbered** form, which contains one to three oracle commitments. The vault format version is not a substitute for identifying the applicable protocol contract.

### Calculated data

The collateralisation ratio is calculated; it is not a percentage stored directly in `OP_RETURN`.

For the documented ratio policy:

```
net_collateral_sats = gross_vault_sats - required_vault_minimum_sats
collateral_ratio = (net_collateral_sats / 100,000,000 × BTC_USD_price) / UNIT_debt
```

UNIT debt is denominated at its USD target for this calculation. UNIT's market exchange price is a separate input to a user's purchase cost or liquidation profit.

With several authenticated oracle commitments, the implementation uses the minimum retained base price for the base-price ratio calculation. Each commitment still has its own threshold and hash.

A display using a fresh market price is different from the ratio derived from the vault's recorded commitments. Interfaces should identify the price and time used. A debt-free vault has no debt ratio; it should be shown as debt-free rather than as an ordinary finite percentage.

### Confirmed state and pending requests

A submitted or signed request is not confirmed Bitcoin state. Track transaction status and reconstruct state from the accepted chain, including changes caused by reorganisations.

For the supported user actions, see [Vaults](/how-ducat-works/vaults).


# Protocol Parameters

This reference records the parameters in a specific UNIT/USD anchor publication, checked on 10 November 2026. It is not a claim that every application or network uses these values. Check the network and protocol profile selected by your application or validator.

### Publication

| Field                               | Value                                                                                                                                                         |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Bitcoin network                     | Mainnet                                                                                                                                                       |
| Anchor transaction                  | [c4c3915aa1fb7f0d8843db634ad777e77db1570138e2abe6847d4834bd87f508](https://mempool.space/tx/c4c3915aa1fb7f0d8843db634ad777e77db1570138e2abe6847d4834bd87f508) |
| Anchor block height                 | 974580                                                                                                                                                        |
| Transaction index within that block | 2531, zero-based                                                                                                                                              |
| Boot height                         | 974721                                                                                                                                                        |
| UNIT Rune ID                        | `974465:2031`                                                                                                                                                 |

The anchor was confirmed at block 974580. Its published boot height is a separate field; it is not evidence that any particular service was ready at that height.

### Economic parameters

The term keys below identify the fields in the anchor's tuple-encoded terms.

| Parameter                          | Term key | Published value         | Meaning                                                               |
| ---------------------------------- | -------- | ----------------------- | --------------------------------------------------------------------- |
| Minimum borrowing/withdrawal ratio | 249      | 1.60 (160%)             | Required floor for the relevant risk-increasing actions.              |
| Liquidation threshold ratio        | 242      | 1.35 (135%)             | Used to construct and validate liquidation thresholds.                |
| Liquidation tax                    | 241      | 0.15 (15%)              | Maximum reserve deduction rate before the rebate.                     |
| Rebate threshold                   | 246      | 1.25 (125%)             | Below this ratio, the rebate calculation applies.                     |
| Rebate increment                   | 245      | 0.006                   | 0.6 percentage points per rounded percentage-point shortfall.         |
| Minimum reserve output             | 244      | 1,000 sats              | A calculated reserve payment below this amount is omitted.            |
| Minimum vault output               | 250      | 1,000 sats              | Retained minimum excluded from net collateral for ratio calculations. |
| Minimum nonzero UNIT debt          | 248      | 100 base units (1 UNIT) | UNIT has two decimal places; cleared debt is zero.                    |

The 160% floor is not a promise that existing vaults remain above 160% as BTC prices change. Deposits and pure repayments improve a position without requiring it to reach that floor immediately; other validity and signing checks still apply.

The rebate reduces the reserve deduction and is capped by the liquidation tax. It is not an independent cash payment to the liquidator. See [Profit Settlement](/liquidations/profit-settlement) for rounding and minimum-output handling.

### Oracle bucket parameters

| Parameter            | Term key | Published value |
| -------------------- | -------- | --------------- |
| Minimum bucket ratio | 221      | 1.60            |
| Maximum bucket ratio | 222      | 5.00            |
| Bucket step          | 223      | 0.01            |

Oracle price buckets and threshold rounding affect the commitments selected for a vault. The actual signed threshold prices and hashes in the vault determine the cryptographic liquidation paths; the headline ratio alone does not supply a preimage.

### Fees and governance status

Bitcoin transaction fees are paid separately from the UNIT debt accounting. Depending on the action and funding mode, fees may come from wallet funds or reduce the BTC remaining in the vault.

This anchor does not encode a 7% minting service charge, an ongoing interest rate or a 10 BTC treasury target. Those figures should not be presented as enforced terms of this publication. Application-level charges, if any, need a separately published fee schedule and must be reflected in the transaction quote; absence of an anchor term does not establish that an application is fee-free.

The publication recognises UNIT and does not contain a governance-token asset term. The implementation's governance-related fields do not establish DUCAT launch or operational voting. See [Governance](/governance/governance).

### Implementation reference

The technical mechanics in these pages were checked against [protocol-sdk revision 379c574](https://github.com/DUCAT-UNIT/protocol-sdk/tree/379c574593ed73fbe0a05106fbfb242107c72944) and the [UNIT/USD validator revision b69a397](https://github.com/DUCAT-UNIT/validator-rs/tree/b69a397845ae22a98b3824e6c9b544fa53558a5c), including the SDK revision that validator pins. These references identify reviewed source, not an attestation of the software running at a particular service endpoint.


# Guardian Network

Guardians are the protocol's co-signers. They validate proposed vault operations and provide the signatures that authorise the guardian side of Bitcoin spending conditions.

### FROST and guardian keys

FROST allows a threshold of participants to produce one Schnorr signature for a guardian public key without any one participant holding the complete signing key. The threshold and operator set are deployment-specific.

An on-chain guardian key represents a signing group. Multiple shares of that key are not multiple independent vault spending keys. A vault may also reference more than one authorised guardian key; its script contains the corresponding spending paths.

### Authorisation

For normal vault actions, the cooperative script requires both the user's signature and a guardian signature. For liquidation, a guardian signature and a matching oracle preimage authorise the spend without a new signature from the liquidated borrower.

Before signing, guardian software checks the transaction's protocol identity, authorised participants, price commitments, collateral and debt accounting, and action-specific rules. FROST supplies the signature; it does not itself decide whether those economic rules are satisfied.

### Control and availability

The normal spending path does not let guardians spend alone, but users also cannot spend through it alone. Guardian refusal or unavailability can therefore delay vault updates and closure.

The liquidation path introduces a different dependency: a valid guardian signature combined with the required oracle preimage can spend the collateral without the borrower. Describe this as a conditional spending arrangement, not an absence of guardian control.

Clearing a vault's debt removes its liquidation hashes in the documented construction. [Closing](/how-ducat-works/vaults/close-vault) that cleared vault still uses cooperative user/guardian signing.

### Transparency

Anyone with the required Bitcoin history and protocol configuration can use a [Ducat validator](/how-ducat-works/validators) to reconstruct vault state and UNIT accounting. Independent validation helps identify invalid protocol activity; it cannot reverse a Bitcoin transaction whose script conditions were satisfied.

The [trust assumptions](/trust-assumptions/overview) describe guardian availability, oracle compromise and the limits of independent validation.


# Validators

A Ducat validator reconstructs protocol state from Bitcoin transactions using the selected anchor and applicable protocol profile. Users may operate their own validator or use a service, but a generic Rune balance does not establish whether that balance is active UNIT under Ducat's rules.

### What is validated?

* The anchor, recognised Rune mint commitments and authorised keys.
* Protocol accounts used for UNIT issuance.
* Vault creation, borrowing, repayment, deposits, withdrawals, closure and liquidation.
* The relationship between spent vaults, successor outputs, debt balances and price commitments.
* UNIT quantities classified as reserve, active or burned.

Vault metadata uses `OP_RETURN OP_8`; Rune transfers use the Runes `OP_RETURN OP_13` encoding. These markers identify candidate data, not proof that an action is valid. Validation also requires the relevant inputs, history, signatures and protocol context.

### Active UNIT

The ledger distinguishes reserve UNIT from active UNIT. An accepted Open or Borrow action activates the borrowed quantity. Moving reserve runes to another address does not by itself activate them.

Repayment requires a linked, accepted burn of active UNIT. The validator checks that the vault's debt reduction is supported by that burn. See [Supply Control](/trust-assumptions/supply-control).

### Vault state

The BTC output value supplies the gross collateral amount. Compact vault metadata supplies debt and authenticated oracle commitments. Validators combine these with historical context to calculate ratios and track ownership and successor outputs.

For details, see [Vault State](/how-ducat-works/vault-state).

### Signing policy and confirmed replay

The implementation distinguishes strict validation of a proposed action from reconstruction of confirmed history.

* **Before signing:** collateral floors, liquidation settlement and other applicable economic-policy checks can reject a proposal.
* **During confirmed replay:** structural, authentication, debt-accounting and Bitcoin consensus checks still apply. Certain economic-policy differences are recorded as diagnostics while preserving the observed transition.

For example, liquidation replay can retain settlement or ratio diagnostics instead of pretending that the confirmed transfer did not occur. An indexed vault or active balance is therefore not, by itself, proof that every current signing-policy check passed. Inspect the action's policy diagnostics and historical profile as well as its balances.

This distinction keeps historical accounting separate from permission to sign a new transaction. It does not make policy violations safe or reverse their effects.

### Limits and governance

A validator can classify a Bitcoin transaction as invalid under Ducat rules; it cannot undo that transaction or recover spent collateral. Bitcoin validity and Ducat validity are different checks.

The schema contains governance-related terms and version identifiers. This page does not represent proposal counting or DUCAT voting as an operational feature of the documented deployment. See [Governance](/governance/governance).


# Oracles

Oracles provide authenticated BTC/USD observations and the threshold commitments used by vault liquidation paths. Bitcoin does not fetch a market price or compare a vault's collateral ratio with a threshold.

The current mechanism uses a **price contract** signed with BIP-340 Schnorr. It binds an oracle identity, network, base price, timestamp, threshold price and a hash of a secret threshold key. A vault records the signed commitment and includes the hash in its spending conditions.

### Two responsibilities

| Responsibility            | Oracle output                                  | How it is used                                                                                                  |
| ------------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| Attest to a price         | Signed price contract                          | Wallets, guardians and validators authenticate the observation and check the proposed vault action.             |
| Enable a liquidation path | Released threshold key, also called a preimage | A liquidation spend presents this key and a guardian-group signature to satisfy a matching Bitcoin script path. |

The signature authenticates what the oracle attested. It does not prove that the quoted market price is correct. Likewise, Bitcoin verifies that a supplied preimage matches a hash; it does not verify why or when the oracle released it.

### Price contracts and transport

A current-price response, a signed price contract and an event carrying that contract are different objects. Only the validated contract supplies the authenticated commitment required for a vault.

Contracts can be delivered through service APIs or relays. The transport does not replace validation against the oracle keys authorised by the selected protocol profile. See [Price Quotes](/how-ducat-works/oracles/price-quotes) for the fields and reference client endpoints.

### Multiple oracles

An encumbered vault can retain one to three oracle commitments. The current format requires distinct oracle indices and compatible network, timestamp and price data. Each oracle retains its own signed threshold and hash.

Multiple oracle commitments do not mean that all oracles must release a key before a vault can be spent. The script construction offers alternative liquidation leaves. One matching preimage and an authorised guardian-group signature can satisfy a leaf; the complete transaction must also pass the protocol's liquidation rules.

For the lifecycle, see [How It Works](/how-ducat-works/oracles/how-it-works). For the exact cryptographic encoding, see [Generating Keys and Signatures](/how-ducat-works/oracles/generating-keys-and-signatures).


# How It Works

An oracle price contract connects a signed BTC/USD observation to a hashlocked liquidation path.

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-4e223ed7e784bcd8d07d421d8df73d088f5be7fc%2Fgitbook-oracle-workflow.png?alt=media" alt="The oracle signs price and threshold commitments. A matching threshold key and guardian signature authorise the liquidation spend from the committed vault."><figcaption><p>Oracle commitments &#x26; liquidation</p></figcaption></figure>

### Creating the commitment

1. The oracle constructs a contract for a base price, observation timestamp, network and threshold price.
2. It derives a threshold key from its secret key and the contract parameters, then publishes the key's HASH160 hash.
3. It signs the contract identifier using BIP-340 Schnorr. The threshold key remains unrevealed while the contract is sealed.
4. The wallet and guardians authenticate the contract and check that its threshold is appropriate for the proposed vault state and protocol terms.
5. The vault transaction records the signed commitment and creates a liquidation leaf containing the threshold hash.

The hash, threshold price and signature are public. The threshold key is the part intended to remain secret before release.

### Selecting a threshold

The economic threshold depends on the debt, net collateral, oracle base price and protocol risk parameters. Price buckets and integer rounding determine the available commitments; the result is not always identical to an unrounded spreadsheet formula.

For example, with a $100,000 base BTC price, a 160% bucket and a 135% liquidation threshold ratio, the corresponding threshold is $84,375. At a 161% bucket, the unrounded result is approximately $83,850.93 and the threshold rounds upward to $83,851.

Use the signed threshold in the accepted vault commitment to identify its hashlocked path. Do not substitute a dashboard's current ratio or an independently rounded price.

### Releasing and spending

When the oracle's breach policy detects the threshold crossing, it can release the matching threshold key. A liquidator uses that key when constructing a transaction, and a guardian group checks the action's debt transfer, collateral, reserve payment and other rules before signing.

Bitcoin then checks the signature, preimage and normal transaction validity. A valid preimage alone cannot spend the vault; the guardian signature is also required. The borrower's signature is not required for the liquidation path.

The preimage becomes public when revealed and is visible in a liquidation witness. Once exposed, it cannot become secret again if the BTC price recovers. Fresh signing policy still requires the authenticated settlement price to be at or below the threshold associated with that preimage. Continued spendability also depends on the vault still being unspent and a guardian authorising the transaction.

### Availability and privacy

An unavailable oracle can prevent new commitments or delay the release needed for liquidation. An incorrect or premature release is a different risk: it exposes a spending capability that guardians must still evaluate against protocol policy.

Contract generation need not include a vault identifier. That reduces the information required in a request, but it does not guarantee anonymity: requests, relay activity and public vault commitments may be correlated. Deterministic key derivation also does not mean a service keeps no logs or cached contracts.


# Price Quotes

The current vault commitment is a signed `PriceContract`. A bare BTC/USD price or an unsigned quote response is not sufficient to authorise a vault action.

### Contract fields

| Field           | Encoding                                         | Meaning                                                         |
| --------------- | ------------------------------------------------ | --------------------------------------------------------------- |
| `oracle_pubkey` | 32-byte x-only secp256k1 public key, hex in JSON | Identity that must match an authorised oracle.                  |
| `chain_network` | Network identifier                               | Domain separation for the intended Bitcoin network/profile.     |
| `base_price`    | Unsigned 32-bit integer                          | BTC/USD base price in whole USD.                                |
| `base_stamp`    | Unsigned 32-bit integer                          | Observation time as Unix seconds.                               |
| `thold_price`   | Unsigned 32-bit integer                          | BTC/USD liquidation threshold in whole USD.                     |
| `commit_hash`   | 32 bytes, hex in JSON                            | Tagged hash of the identity, network, prices and timestamp.     |
| `thold_hash`    | 20 bytes, hex in JSON                            | HASH160 of the threshold key.                                   |
| `contract_id`   | 32 bytes, hex in JSON                            | Tagged hash binding the commitment and threshold hash.          |
| `oracle_sig`    | 64 bytes, hex in JSON                            | BIP-340 Schnorr signature over `contract_id`.                   |
| `thold_key`     | Null, or 32 bytes encoded as hex                 | Null while sealed; supplied when the threshold key is revealed. |

The signature is over the derived identifier, not a serialised JSON object. Adding the revealed key does not change the signed identifier: the receiver verifies that the supplied key hashes to the already committed `thold_hash`.

Contract age and preimage release are separate checks: a contract can be too old for a new action without its threshold key having been released. Use the applicable freshness policy and the committed hash rather than inferring one state from the other.

### Validation

A consumer must:

1. Resolve the authorised oracle key from the selected protocol profile; do not trust a response merely because it contains a self-consistent public key and signature.
2. Check the network and recompute `commit_hash` and `contract_id` with the exact byte encoding.
3. Verify the BIP-340 signature and the action's price, timestamp, threshold and freshness requirements.
4. Require the appropriate sealed or revealed state. If a key is supplied, verify `HASH160(thold_key) == thold_hash`.
5. For multiple commitments, enforce distinct oracle indices, the same network and timestamp, and the implementation's price-compatibility checks. The current check permits at most 10% base-price variance relative to the first contract; it does not merge the contracts into a single oracle signature.

The transaction's validator still checks the full vault action. Authenticating a quote alone does not establish that a withdrawal, borrowing request or liquidation is valid.

### Reference HTTP client

The SDK's direct oracle client exposes the following read operations for the compatible service adapter:

| Request                                           | Purpose                                                                           |
| ------------------------------------------------- | --------------------------------------------------------------------------------- |
| `GET /api/status`                                 | Read service status and configuration.                                            |
| `GET /api/price/latest`                           | Read the current price and timestamp.                                             |
| `GET /api/contract?th=<threshold>&ts=<timestamp>` | Request a signed contract; the timestamp query is optional.                       |
| `GET /api/events`                                 | Read published events, which consumers filter and validate for the required type. |

This is an adapter interface, not a promise that every production oracle exposes these endpoints publicly or serves arbitrary historical timestamps. A deployment may distribute contracts through a relay instead. Use its configured transport and verify the returned contract independently.

The cryptographic network string is not necessarily the same as the JSON enum spelling. See [Generating Keys and Signatures](/how-ducat-works/oracles/generating-keys-and-signatures) before implementing a compatible client.


# Generating Keys and Signatures

The reference price-contract implementation uses BIP-340 Schnorr signatures on secp256k1. The following byte-level derivation defines the commitment; signing a JSON string or using ECDSA is not compatible.

### Encoding

* `oracle_pubkey`: the 32 raw bytes of the x-only public key.
* `network_bytes`: UTF-8 bytes of the SDK's contract-compatible network string, without a length prefix or separator.
* `base_price`, `base_stamp`, `thold_price`: unsigned 32-bit integers, each encoded in big-endian byte order.
* `||`: raw byte concatenation. Hex text must be decoded before hashing.
* `HASH160(x)`: `RIPEMD160(SHA256(x))`.

The contract-compatible network strings are:

| Network               | String included in the hash |
| --------------------- | --------------------------- |
| Bitcoin mainnet       | `main`                      |
| Testnet3              | `testnet3`                  |
| Testnet4              | `testnet4`                  |
| Signet                | `signet`                    |
| Mutinynet             | `mutiny`                    |
| Regtest               | `regtest`                   |
| Alpha mainnet profile | `alpha-mainnet`             |

For example, substituting the JSON enum string `bitcoin` for `main` changes the commitment and invalidates compatibility.

### Derivation

```
tagged_hash(tag, message) =
    SHA256(SHA256(UTF8(tag)) || SHA256(UTF8(tag)) || message)

commit_hash = tagged_hash(
    "ducat/price_contract_commit",
    oracle_pubkey ||
    network_bytes ||
    uint32_be(base_price) ||
    uint32_be(base_stamp) ||
    uint32_be(thold_price)
)

thold_key = HMAC_SHA256(
    key = oracle_secret_key_32_bytes,
    message = commit_hash
)

thold_hash = HASH160(thold_key)

contract_id = tagged_hash(
    "ducat/price_contract_id",
    commit_hash || thold_hash
)

oracle_sig = BIP340_SIGN(oracle_signing_key, contract_id)
```

The reference implementation derives the threshold key from the same oracle secret key used to construct its signing keypair. A separately provisioned HMAC secret would produce different threshold keys and is not the documented derivation.

The output sizes are 32 bytes for `commit_hash`, `thold_key` and `contract_id`; 20 bytes for `thold_hash`; and 64 bytes for `oracle_sig`.

### Signing and verification

The Rust implementation uses deterministic Schnorr signing without auxiliary randomness for reproducible signatures. Compatible verifiers should verify BIP-340 validity, not require that every valid signer produce one identical signature byte string.

Verification requires the authorised oracle public key, reconstructed commitment and contract identifier. The threshold key is not required to verify a sealed contract. Once revealed, it must additionally satisfy the committed HASH160 value.

The oracle's secret key is never part of a contract response. The threshold key is a derived, contract-specific preimage, not the oracle's signing key. Its publication enables only matching hashlocked paths, each of which still requires a guardian-group signature.

### What a signature establishes

The signature binds the oracle to the encoded price, timestamp, network and hash commitment. It does not independently establish market-price correctness, timely publication, honest threshold release or guardian availability. Those remain part of the [oracle and liquidation trust assumptions](/trust-assumptions/liquidations).


# Basic Mechanics

Liquidation transfers collateral and its associated UNIT debt from an eligible target into a liquidator's vault. It does not burn the debt at takeover. The liquidator must later repay active UNIT to remove that obligation.

### Eligibility and authorisation

An encumbered vault commits to one or more oracle threshold hashes. A liquidation spend requires a preimage matching one of those commitments and an authorised guardian-group signature. The borrower's signature is not required.

The 135% liquidation threshold in the [published UNIT/USD parameters](/how-ducat-works/protocol-parameters) is used to construct and validate the price commitments. Bitcoin itself checks the hashlock and signature, not a BTC/USD ratio.

A revealed key proves knowledge of the committed preimage; it does not prove that the current price is still below the threshold. Fresh signing checks also require the settlement price to be at or below the threshold associated with the presented preimage.

### Full and partial liquidation

| Action   | Target state after liquidation                                                                                                                               | Liquidator's obligation                                               |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| **Repo** | Fully transfers the debt of one or more target vaults. Each target retains a Cleared output at the required minimum under its existing ownership conditions. | Absorbs exactly the sum of the targets' transferred debts.            |
| **Trim** | Transfers part of one target's debt and the corresponding collateral. The target retains a successor with the remaining debt and collateral.                 | Absorbs the claimed debt; the target's debt falls by the same amount. |

The target's retained minimum is excluded from the net collateral available for the liquidation. A Repo does not hand the original owner's entire gross BTC output to the liquidator. A Trim must preserve a valid remaining position and obey the minimum-debt and output rules.

### Settlement flow

<figure><img src="https://3381100491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZOzQaoopNKdgkYJmuRPt%2Fuploads%2Fgit-blob-e76821de14325faf7c0599b7a317fe30d9b9eb3f%2Fgitbook-liquidation-flow.png?alt=media" alt="Repo or Trim transfers eligible collateral and debt into the liquidator successor, with any required reserve deduction and target remainder. Later UNIT repayment clears the liquidator vault; a separate Close returns BTC after fees."><figcaption><p>Liquidation, repayment &#x26; close</p></figcaption></figure>

The settlement calculation uses the minimum authenticated base price in the liquidator's post-action commitments. Target threshold prices establish eligibility; they are not automatically the settlement price.

Before signing, the liquidator's resulting vault must meet the applicable minimum collateral ratio, 160% for the published UNIT/USD anchor. Existing excess collateral can contribute; otherwise the liquidator supplies additional BTC. Fees, the reserve deduction and retained minimums affect the required contribution.

The reserve payment goes to the recipient configured in the applicable anchor. The rebate reduces that deduction; it is not a separate reward-token issuance.

### What completes liquidation?

Repo or Trim completes the transfer of debt and collateral when its Bitcoin transaction is confirmed and its protocol state is reconstructed. It does not complete the liquidator's eventual exit.

The liquidator may keep the resulting indebted position open. To close it, they must obtain sufficient active UNIT, complete repayment and then close the Cleared vault. Neither the protocol accounting nor the oracle guarantees that UNIT will be available to buy at $1.

These are the rules for constructing and authorising a new liquidation. Confirmed replay also preserves policy diagnostics where applicable; see [Validators](/how-ducat-works/validators). For reserve calculations and profit, see [Profit Settlement](/liquidations/profit-settlement).


# 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](/how-ducat-works/protocol-parameters), 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](/liquidations/profit-settlement/example) separates the target collateral, top-up and eventual repayment.


# 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.


# Overview

Ducat settles BTC and Rune transactions on Bitcoin and interprets vaults and active UNIT through a metaprotocol. Its security depends on the interaction between Bitcoin spending conditions, guardian authorisation, oracle commitments and independent validation.

### Responsibilities and limits

| Component           | Responsibility                                                               | Limit                                                                                     |
| ------------------- | ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| Bitcoin             | Enforces transaction validity, signatures, hashlocks and the accepted chain. | Does not evaluate BTC/USD prices, collateral ratios or the UNIT peg.                      |
| Vault owner         | Authorises cooperative vault actions with their key.                         | Cannot independently spend the documented cooperative vault without a guardian signature. |
| Guardian group      | Validates proposed actions and supplies its signing authority.               | Availability and correct signing depend on the configured threshold participants.         |
| Oracle              | Authenticates observations and controls threshold-key release.               | A signature does not prove market truth or timely, honest release.                        |
| Ducat validator     | Reconstructs state, active UNIT accounting and validation diagnostics.       | Cannot reverse Bitcoin transactions or recover spent collateral.                          |
| Market participants | Supply liquidation capital and UNIT liquidity.                               | Participation and execution prices are not guaranteed.                                    |

Guardians are not Bitcoin miners, and a Ducat validator is not a replacement for Bitcoin consensus. These roles enforce different conditions.

### Safety and availability

For cooperative actions, the user and a guardian group must sign. For a liquidation path, a guardian group and a matching oracle preimage are sufficient; the borrower's signature is not required.

A threshold signing arrangement distributes the guardian key's authority. Its resilience depends on the actual threshold, operator independence, key handling and availability. The use of FROST alone does not prove those operational properties.

Oracle and guardian separation provides distinct checks, but it does not make collusion or correlated failure impossible.

### Verification and recovery

Running an independent validator reduces reliance on a hosted service's account of balances and vault state. Consumers must still use the correct Bitcoin chain, anchor, software and historical context, and inspect relevant policy diagnostics.

A validator can reject a malformed Ducat action while still observing the Bitcoin spend and Rune allocations. Confirmed replay can also preserve an observed transition with economic-policy diagnostics. Neither outcome restores spent BTC.

A new deployment can select new keys and rules, but it cannot automatically move collateral locked under old keys. Recovery depends on the spending paths that actually exist, available signers and any valid migration transaction.

See [Asset Management](/trust-assumptions/asset-management), [Supply Control](/trust-assumptions/supply-control) and [Liquidations](/trust-assumptions/liquidations) for the specific assumptions.


# Asset Management

Vault BTC is controlled by explicit Bitcoin spending conditions. Economic rules such as collateral ratios are checked by protocol software before guardians sign; the Bitcoin script does not independently enforce them.

### Cooperative control

The ordinary vault path requires two separate signatures:

```
vault owner signature + authorised guardian-group signature
```

A guardian group may produce its signature through FROST threshold signing. Several operators can therefore share the guardian side without holding a single complete signing key at one operator.

This is shared control. The owner cannot bypass the guardian requirement, and a guardian signature alone cannot satisfy the cooperative path. A vault with debt also has the separate liquidation paths described below.

### Liquidation control

An encumbered vault's liquidation path requires:

```
matching oracle threshold preimage + authorised guardian-group signature
```

It does not require the owner's signature. A guardian cannot satisfy this path without the preimage, but the preimage can become public after release. Bitcoin checks those cryptographic inputs, not whether the oracle correctly observed a market threshold or whether the transaction is economically fair.

The guardian's signing checks therefore remain material after a key is revealed. See [Liquidations](/trust-assumptions/liquidations).

### Collateral and fees

The published UNIT/USD borrowing floor is 160%, calculated from net collateral after subtracting the required retained minimum. It is an action requirement, not a continuous guarantee as BTC prices move.

Transaction fees can be funded from wallet inputs or, for supported modes, from the vault. The actual remaining collateral must be calculated from the outputs. A UI estimate does not change the spending conditions or the final transaction.

### Availability, rotation and exit

A cleared vault still requires a guardian signature for a cooperative update or Close. Full repayment removes debt and liquidation commitments; it does not add a unilateral owner exit.

Changing threshold participants while preserving an existing group key is different from replacing that key. Replacing a group key in configuration does not rewrite already locked Bitcoin outputs. A migration needs a valid spending path and the signatures required by the old output.

If required signers are unavailable, a new validator or a new anchor cannot by itself release the old collateral. Any claimed recovery or emergency exit must identify an actual supported spending path.


# Liquidations

Liquidation relies on both oracle release of a threshold preimage and guardian authorisation of the resulting transaction. Neither component alone is the full spending condition.

### Public commitment and secret preimage

The oracle signs a price contract containing the base price, timestamp, threshold price, network and threshold hash. The vault records this data, and its liquidation script includes the hash.

The hash is public. The threshold preimage is intended to remain secret until release. Once revealed, it is available to others and appears in the liquidation witness; secrecy cannot be restored by a later price recovery.

A matching preimage demonstrates knowledge of the committed key. Bitcoin does not determine whether releasing that key was justified by market prices.

### Guardian checks

A guardian group must still authorise the liquidation. Fresh signing checks include the target's threshold eligibility at the authenticated settlement price, debt conservation, collateral allocation, the protocol reserve payment and the resulting liquidator-vault ratio.

These checks are implemented in software. The hashlocked Bitcoin script does not contain a complete settlement formula. Guardian compromise or incorrect signing can therefore have consequences that an independent validator cannot undo.

A guardian may decline to sign when its checks fail. Do not assume an unspecified alternate price feed can replace the oracle identity or commitment required by the protocol.

### Multiple oracles and privacy

The current vault format can contain several oracle commitments, but the liquidation leaves are alternatives. One matching committed preimage plus a guardian-group signature can satisfy a path; it is not an all-oracle quorum.

An oracle request need not contain the vault's identity. That does not prevent correlation with public commitments, service requests or relay data. The protocol does not guarantee that an oracle stores no history.

Operational separation between the oracle and guardian group can reduce shared failure risk. It is not a cryptographic guarantee against collusion.

### Delay and market risk

Failure to release a required preimage, guardian unavailability, insufficient liquidator capital or delayed Bitcoin confirmation can postpone liquidation. Rapid BTC price changes can create a collateral shortfall before settlement.

Liquidation transfers debt; it does not immediately buy and burn UNIT. The liquidator remains exposed until repayment and any eventual close. A tax rebate reduces the reserve deduction but does not create external collateral or guarantee a profitable exit.

See [Basic Mechanics](/liquidations/basic-mechanics) and [Profit Settlement](/liquidations/profit-settlement) for the action and accounting rules.


# Supply Control

UNIT uses a Bitcoin Rune, but a generic Rune balance is not the complete Ducat supply model. Ducat's ledger distinguishes **reserve UNIT**, **active UNIT** and burns, and relates active issuance to accepted borrowing actions.

### Reserve and active balances

Reserve UNIT is inventory available for the protocol's issuance flow. An accepted Open or Borrow action activates the borrowed quantity and associates it with vault debt.

Moving reserve Rune units to another address does not automatically make them active UNIT. A wallet or exchange that reads only an ordinary Rune indexer can miss this distinction. A Ducat-aware service must use the protocol's ledger classification.

Active UNIT can move independently of the vault that originally borrowed it. Sending tokens away does not remove that borrower's debt.

### Repayment and liquidation

A repayment reduces vault debt through a linked burn-and-update action. The validator checks the active UNIT burn against the reduction. Reserve UNIT does not qualify as the required active repayment burn.

Repo and Trim transfer debt to the liquidator's vault. They do not reduce the active supply through a burn at takeover. Later repayment is the step that burns active UNIT and clears the assumed obligation.

These are different events:

| Event                            | Debt effect                      | Active UNIT effect                        |
| -------------------------------- | -------------------------------- | ----------------------------------------- |
| Valid Open or Borrow             | Creates or increases vault debt. | Activates the borrowed quantity.          |
| Transfer of existing active UNIT | No change to vault debt.         | Moves the existing active balance.        |
| Repo or Trim                     | Transfers debt between vaults.   | No repayment burn at takeover.            |
| Valid repayment                  | Reduces the repaid debt.         | Burns the active UNIT used for repayment. |

### Rejected actions and observed transactions

A rejected borrowing action must not activate reserve UNIT merely because Rune outputs exist. Conversely, an invalid Ducat action tag does not mean a validator can pretend an already confirmed Bitcoin spend or its Rune allocation never happened.

The ledger tracks actual allocations and eligibility separately from transaction diagnostics. Existing active balances do not become invalid simply because they travel through a transaction with an unrelated rejected protocol action.

Not every economic-policy diagnostic is a rejected action during confirmed replay. See [Validators](/how-ducat-works/validators) for the difference between strict pre-signing checks and historical indexing.

### Independent verification

Running a validator allows users to reconstruct these classifications against their chosen protocol profile. Using a hosted validator delegates that view to the service.

Neither choice guarantees the market price of UNIT or recovers BTC spent through a valid Bitcoin path. Supply classification and collateral recovery are separate properties.

The published UNIT/USD anchor does not establish an active DUCAT governance asset or vote-counting system. Those should not be included as current supply-validation functions without a separate implemented specification.


# Governance

DUCAT token governance is a planned part of the protocol. The implementation and UNIT/USD anchor documented here do not establish an operational proposal, voting or automatic activation process.

### What defines the current terms?

A protocol deployment selects a published anchor and the corresponding validation rules. The anchor identifies assets, authorised signer keys and economic parameters. Applications, guardians and validators must agree on the protocol profile they are using.

The [Protocol Parameters](/how-ducat-works/protocol-parameters) page records a specific confirmed UNIT/USD publication. It contains a UNIT asset term, but no governance-token asset term. A schema field for a governance token is not evidence that DUCAT has launched or that votes are being counted.

The published reserve and vault minimums are each 1,000 sats. Application charges and treasury targets require their own defined authority and accounting; they cannot be inferred from the anchor's collateral parameters.

### Intended governance scope

Future governance may govern risk parameters, approved oracles, guardian participation, treasury policy and protocol upgrades. These are intended responsibilities, not transactions that users can presently rely on from this documentation.

An operational governance specification would need to define:

* The governance asset and eligible voting balances.
* Proposal and ballot formats, counting rules and voting periods.
* Quorum, approval thresholds and activation conditions.
* How guardians, validators and clients adopt the accepted change.
* How existing vaults and historical protocol versions are handled.

Until those mechanisms are implemented and identified for a deployment, do not assume that a DUCAT transfer constitutes a vote or that a successful informal vote changes an existing vault's Bitcoin spending conditions.

See [Risk Management](/governance/risk-management) for the consequences of parameter changes and [Upgradeability](/governance/upgradeability) for the distinction between version support and voting.


# Risk Management

Risk parameters affect the actions guardians authorise and validators interpret. They do not guarantee that collateral remains sufficient through every market move or infrastructure outage.

The [published parameter reference](/how-ducat-works/protocol-parameters) identifies the anchor and values used in these explanations. Use that reference rather than treating an undated percentage as a universal constant.

### Decisions and their effects

| Area                                      | Effect of a change                                                                                                    |
| ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| Borrowing ratio                           | Changes required collateral for risk-increasing actions. A higher floor can reduce borrowing and withdrawal capacity. |
| Liquidation thresholds and oracle buckets | Changes the commitments selected for affected vault actions and when their liquidation paths can be enabled.          |
| Liquidation tax and rebate                | Changes reserve revenue, collateral available to liquidators and the BTC needed to recapitalise assumed debt.         |
| Minimum debt and BTC outputs              | Changes which small positions and residual outputs can be constructed.                                                |
| Oracle and guardian configuration         | Changes accepted identities and signing dependencies for the applicable profile.                                      |
| Treasury or application fees              | Requires its own defined accounting and authority; it should not be inferred from unrelated anchor terms.             |

### Existing vaults

A confirmed vault output commits to concrete keys and hashlocks. Publishing a new oracle key or voting for a different guardian does not rewrite that output.

The implementation carries version and historical-profile information so earlier transactions can be interpreted in context. The effect of an upgrade on an existing vault must still be specified for each action and migration path. Neither "all old vaults immediately use the new terms" nor "only newly opened vaults can ever be affected" is a sufficient general rule.

A change proposal should identify the publication, activation height, compatible software, historical rules and any transaction required from existing users.

### Emergency actions

There is no verified operational 51% emergency-vote mechanism in the documented deployment. A service refusing to sign new borrowing is an operational restriction; it is not the same as a Bitcoin consensus rule or proof that token governance has frozen issuance everywhere.

Emergency procedures must also account for repayment, closure and signer availability. Replacing configuration alone does not recover funds locked under unavailable keys.

### Limits of parameter policy

Deposits and repayments can improve a position, but they need an unspent vault and valid signatures. Liquidation requires an available preimage, guardian participation, liquidator capital and Bitcoin confirmation. Rapid price changes or delays can leave collateral below debt despite the configured thresholds.


# Upgradeability

The implementation supports protocol identities, versions and historical profiles. That infrastructure allows software to identify the rules associated with a transaction; it does not by itself implement token governance.

### Anchor and contract identity

An anchor is located by its confirmed Bitcoin transaction coordinates. The implementation derives identifiers from those coordinates and uses protocol profiles and switch heights to resolve historical context.

The current anchor-derived contract identity uses the anchor's own location. The type system allows room for separate contract publications and later versions, but this is not evidence of a live proposal-and-vote mechanism updating one anchor automatically.

See [Anchor Contract](/how-ducat-works/anchor-contract) for the identity distinctions.

### Adopting a release

A concrete upgrade must identify:

1. The new software rules and applicable anchor or profile.
2. Its activation point and the prior profiles needed for replay.
3. How clients, guardians and validators select the same rules.
4. The treatment of existing vaults, including any required user transaction.
5. Compatibility and migration checks for keys, metadata, assets and balances.

Historical validation needs the relevant earlier context; it cannot simply reinterpret every old vault using today's settings.

Bitcoin outputs retain their original spending conditions until spent. A software upgrade or new anchor cannot change the keys or hashlocks already committed in an unspent vault.

### Planned voting design

On-chain proposals, token-weighted ballots, vote tabulation and automatic activation are future governance mechanisms unless a deployment provides the implemented formats and rules. This page does not specify an available voting procedure.

A future design must explain how voting outcomes map to executable software and existing Bitcoin outputs, as well as how conflicting or unavailable participants are handled.


# Disclaimer

This document is provided solely for informational purposes. It does not constitute an offer to sell, or the solicitation of an offer to buy, any security or other financial instrument in any jurisdiction. Nothing contained herein should be interpreted as legal, tax, investment, accounting, regulatory, or other professional advice. Recipients are advised to consult their own advisors regarding any legal, financial, tax, or other matters relevant to their individual circumstances.

Certain statements in this document may constitute forward-looking statements. These statements are generally identifiable by terminology such as “may”, “will”, “should”, “expect”, “intend”, “plan”, “anticipate”, “believe”, “estimate”, “project”, “forecast”, or other similar expressions. All such statements reflect the current views of the authors with respect to future events and are subject to various risks, uncertainties, and assumptions. Actual results, performance, or achievements may differ materially from those expressed or implied by such forward-looking statements. No assurance is given that any of the plans, intentions, or expectations expressed or implied in this document will be realised.

Forward-looking statements are valid only as of the date they are made. Ducat expressly disclaims any obligation to update or revise any forward-looking statement, whether as a result of new information, future events, or otherwise, unless required by applicable law.

The Ducat Protocol and its associated systems, including the UNIT token and DUCAT governance token, remain under active development. Accordingly, the contents of this document, including all protocol specifications, features, and operational mechanics, are subject to change. Nothing in this document should be construed as representing the final design, functionality, or guarantees of the protocol.

UNIT is an experimental, overcollateralised algorithmic stablecoin soft-pegged to approximately one US dollar. Its stability depends on dynamic market forces, including UNIT supply, UNIT demand, and the overcollateralisation ratio of Bitcoin held in protocol vaults. There is no guarantee that UNIT will maintain its target peg under all or even most conditions.

If the Ducat Protocol fails to maintain equilibrium between UNIT supply and demand, or if the system suffers from unforeseen vulnerabilities, the value of UNIT may experience significant volatility or de-pegging. Additionally, DUCAT governance tokens may become worthless in part or in full.

The DUCAT token is not intended to be offered, sold, or distributed to any U.S. persons, or in any jurisdiction where such offer, sale, or distribution would be unlawful. The Protocol reserves the right to restrict participation in accordance with applicable laws and regulations.

Participation in the Ducat Protocol is entirely at your own risk. By engaging with the Protocol or any of its components, you acknowledge that you understand and accept the experimental nature of the system, and that you may incur substantial or total loss of value.


