CompX Documentation
  • Welcome to CompX
    • Connecting to CompX
  • Portfolio Tracking
    • Portfolio Tracking Overview
  • Swap Router
    • Swap Router Overview
    • The CompX Router
    • CompX Router Layout
    • Performing a Swap
    • Minting fAssets
  • Token Streams
    • Token Streams Overview
      • Token stream UI
      • Receiving a Token Stream
      • Creating Token Streams
  • X-NFT
    • X-NFT Overview
    • X-NFT Current Status
  • xUSD
    • Overview
      • Vault Design
    • Tokenomics
      • Stability Mechanisms
        • Variable Interest Rate
        • xUSD Staking
      • Liquidation
        • Liquidation Example
        • Performing a Liquidation
      • Borrowing xUSD
      • Managing Debt
  • Staking pools
    • STAKING at CompX
    • Algorand Consensus Staking Overview
      • CompX Consensus Implementation
      • Understanding LSTs
      • Using CompX cAlgo
    • Using Time Locked Contracts
    • Using Injected Liquidity Contracts
    • Genesis Pools
      • Creating a Genesis Pool
      • Staking in a Genesis Pool
  • Governance
    • CompX Governance-Flux
    • Proposals
    • Voting
    • Maximizing Voting Power
  • Rewards
    • Overview
    • Earning Points
Powered by GitBook
On this page
  1. xUSD
  2. Tokenomics

Managing Debt

PreviousBorrowing xUSDNextSTAKING at CompX

Last updated 6 months ago

Having an , the user will need to be able to manage their vault to ensure that it doesn't become open to liquidation by falling below the liquidation threshold.

To easily do this, the user can select the "My Vaults" navigation button to filter out all of the collateral types that the they are not using. The user can also interact with their vaults under the default "All Vaults" tab if desired.

Existing vaults have several ways to interact with them. The user will be able to "Mint" xUSD, "Deposit" additional collateral, "Return" xUSD or "Withdraw" existing collateral.

Minting additional xUSD and withdrawing your collateral will always reduce the users CR, closer to liquidation. Depositing additional collateral and returning xUSD will always improve your CR. The UI box that pops up from interacting with any of these buttons will inform the user of how the action will affect the vaults CR and liquidation price before performing the action.

If the user desires to close their CDP completely, the debt can be paid down to below 100 xUSD. Because 100 xUSD is the minimum debt allowed, if the user goes below the threshold, the CDP will be closed if there is enough xUSD in the users wallet, or the transaction fails due to insufficient funds. If the CDP is able to close, all remaining collateral will be released back to the users wallet.

existing vault