LogoLogo
  • Welcome
  • 🪙DUCAT
    • The Ducat Protocol
  • 🔳Unit
    • Philosophy
  • 💠How DUCAT works
    • Overview
    • Architecture
    • Vaults
      • Open Vault
      • Deposit BTC
      • Borrow UNIT
      • Repaying UNIT
      • Withdraw BTC
    • Canonical Reference Satoshis
    • Multi-Party Computation (MPC) Network
    • Indexer
    • Oracles
      • How It works
      • Price Quotes
      • Generating Keys and Signatures
  • 📊Liquidations
    • Basic Mechanics
    • Profit settlement
      • Example
  • 🤝Trust Assumptions
    • Overview
    • Asset management
    • Liquidations
    • Supply Control
  • 📩Governance
    • Governance
    • Risk Management
  • ⚠️Disclaimer
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. How DUCAT works
  2. Vaults

Repaying UNIT

PreviousBorrow UNITNextWithdraw BTC

Last updated 3 months ago

Was this helpful?

In a two-transaction process, the user returns some of their borrowed UNIT stablecoins to their vault. This lower debt lowers the Bitcoin price at which liquidation would be triggered (further from the current price), giving the user a greater margin of safety. The user initiates a transaction to repay their borrowed UNIT runes, sending these back to their vault UTXO along with the transaction. The MPC Network verifies the repayment amount and processes the return of UNIT runes. The transaction builder constructs a PSBT that reduces the vault's borrowed amount while maintaining the same BTC collateral. The output reflects the reduced debt and unchanged collateral position in an updated vault UTXO. In a second transaction, the new vault state is processed, handling the network fees for both transactions to ensure atomicity. This generates an updated vault token reflecting the reduced borrowed amount and improved collateralization ratio. The vault UTXO maintains both the user update path and guardian/oracle liquidation path, though with the improved collateral ratio reducing liquidation risk. An OP_RETURN output records the new vault state with the reduced borrowed amount and updated collateral ratio.

Both these processes work in concert with the Open Vault function to provide a complete vault management system, allowing users to borrow against, repay, and maintain their BTC-collateralized positions while ensuring proper record-keeping and safety mechanisms throughout.

💠
Repaying UNIT Transaction Diagram