LogoLogo
Launch App
  • ⚡Get Started
    • 1️⃣Step 1: Connect Your Wallet
      • 💳Wallets: Best Web3 Options
      • 💰FOUR Ways to Get Funds onto the Shade App
      • 💰How to move tokens from a CEX to Shade
    • 2️⃣Step 2: Create a Viewing Key
    • 3️⃣Step 3a: Hit The Button -> Buy SHD in >30 seconds
    • 3️⃣Step 3b: Bridge
      • How to bridge to Secret Network
      • How to bridge assets from Secret Network to another chain
    • 4️⃣Step 4: Swap Assets
    • 5️⃣Step 5: Use our Features
      • 💲Bonds Feature
        • How to Claim Bond Rewards
        • How to Purchase a Bond
      • 🏦Borrow Feature
        • Borrow (Silk): How to take out and repay a loan
        • Borrow (Silk Earn): How to Deposit and Withdraw
        • Borrow FAQ
      • 📈Derivatives Feature
      • 📖History Feature
        • What is a transaction hash
        • How to view transaction history
      • 💧Pools Feature
        • How to Enter and Exit Liquidity Pools
        • How to Stake and Unstake
        • How to Claim Rewards
        • 'Mint LP Shares and Stake' vs. 'Mint LP Shares'
        • Liquidity Pool FAQ
      • 💹Portfolio Feature
      • ➡️Send Feature
      • 🔵SILK Feature
        • How to Buy Silk
        • SILK's Peg
        • SILK FAQ
      • 📍Stake Feature
        • How to Stake and Unstake
        • What is stkd-SCRT
      • ⚙️Utilities Feature
      • 🔁Wrap Feature
      • 💠NFTs
        • How to Purchase a Shade NFT
        • How to Verify NFT Ownership
        • How to Sell an NFT
        • How to Bid on an NFT
    • 6️⃣Step 6: Connect with Community
    • 📚Beginner Resources
      • What is SCRT
      • Convert SCRT <> sSCRT
      • ⛽Gas Fees
        • How to Increase Gas Fees:
  • 🌑Advanced Topics: Shade Metaengine
    • 🌑What is SHD
    • 🖥️Tech Stack
    • ✍️Principles
    • ⚕️Ethos
    • 🏛️Governance
    • 🏦ShadeDAO
    • 💰Tokenomics
    • 🌀SHD
    • ✔️Brand
    • 📜Tutorials
  • 🌑Advanced Topics: Apps
    • 🔵SILK
      • Minting & Redemption
        • Overcollateralized Minting
        • Collateral Redemptions
        • Bonds
      • Basket Composition
      • Peg Migration
      • Governance
      • Tutorials
    • 🌉Bridge
    • 💱ShadeSwap
      • Trading
      • Liquidity Providing
      • LP Staking
      • Asymmetric, Concentrated Liquidity
      • Shade Swap Contracts
    • 🦅Lend
      • Stability Mechanisms
      • Risks and Fees
    • 📓Bonds
      • Bond Types
      • Collateral Types
      • Illiquid Markets
      • Issuance Policy
      • Bond Tokenomics
      • Tutorials
    • ♟️stkd-SCRT
      • Feautures
      • User Stories
      • Governance & Validators
      • Tutorials
      • FAQ
    • 💱ShadeX - Money Market
      • Liquidations
      • Logs and Transparency
      • Risk Management
      • Configurations and Restrictions
      • Fees
      • Contracts
  • 💳Wallets
    • Keplr
      • Install Keplr
      • Create Keplr Wallet
      • Import a Keplr Account
      • Import a Ledger Account
    • Fina Mobile
  • Research
    • Audit Log
    • Stablecoins
Powered by GitBook
On this page

Was this helpful?

  1. Advanced Topics: Apps
  2. ShadeX - Money Market

Liquidations

ShadeX utilizes a dual-liquidation engine, powered by Streaming Swaps on ShadeSwap and a robust public liquidation marketplace, to manage positions whose LTV are above the liquidation LTV for their collateral backing. ShadeX liquidation engine performs partial liquidations of user positions, meaning that debt is repaid just enough to return the position below the Max LTV allowed by the positions collateral. The two liquidation methods on ShadeX are referred to as Public and Private Liquidations. All liquidatable positions can be subject to private liquidations; However, public liquidations can only occur above a configurable “public liquidation LTV threshold”. This ensures that regardless of activity within the public liquidation marketplace, the protocol retains the ability to participate in liquidating positions.

Private Liquidations

  • Once a position is flagged for liquidations, the first “liquidation range” it enters is the private liquidation range. All positions flagged for liquidations are subject to private liquidations.

  • Private liquidations effectively create “streamswaps” across ShadeSwap, where collateral for liquidatable positions is sold on ShadeSwap for the debt token to repay the debt needed to return the position below the Max LTV allowed by its collateral backing. Swaps of collateral for debt tokens have configurable parameters that dictate the maximum swap size, route, and slippage tolerance allowed for private liquidations. If a position is still considered liquidatable after it is subject to private liquidation, there is a configurable “sleep timer” placed on the position where liquidation cannot be triggered. This “sleep timer” is meant to allow for market participants to arbitrage pools that were used to route collateral swaps for debt tokens in order to allow for more efficient further private liquidation events if required.

  • When a user's position is flagged for liquidation, details like position IDs, debt tokens, collateral, and route for private liquidation are obfuscated to protect user privacy. Additionally, ShadeX further attempts to protect user privacy by utilizing a Blind caller mechanism to trigger liquidation events.

    • As a result of this, callers of the liquidation function for private liquidations do not know which collateral is being sold to repay which debt, nor the swap route or the expected profit from the liquidation event.

  • In order to incentivize market participants to check for liquidatable positions and call the liquidation mechanism, profits from the liquidation (distributed as % of the additional collateral received from repaying debt) are split between the liquidator and protocol.

Public Liquidations

  • Public liquidations occur once a position flagged for liquidation has crossed a configurable threshold above the liquidation LTV. Private liquidations can occur both below and above this configurable threshold.

  • Unlike private liquidations, there are no time or size restrictions placed on public liquidation of collateral for debt tokens.

  • When a user's position is flagged for liquidation, details including position ID, debt tokens and collateral tokens are made public; details like wallet address are not made public.

  • Public liquidations provide additional liquidation capacity for collateral/debt combinations with no configured private liquidation swap route, insufficient liquidity for private liquidations, or rapid price declines where LTV has increased quicker than private liquidations can reduce the LTV..

  • Liquidators can select debts to repay and select to receive any of the available collateral backing the debt tokens being repaid. This is a first come, first serve marketplace.

  • In order to incentivize market participants to check for publicly liquidatable positions and participate in repaying debt in exchange for collateral, liquidators can repay as little, or as much, of the debt (up to the max debt needed to be repaid) and still receive the liquidation discount configured for each collateral. Public liquidations do not share profits with the protocol.

PreviousShadeX - Money MarketNextLogs and Transparency

Last updated 2 months ago

Was this helpful?

🌑
💱