LogoLogo
Trade Now
  • Trade Now
  • 👋Welcome
    • About Demex
      • Roadmap
      • Terms and Conditions
      • Disclaimers
    • Getting Started
      • Depositing
      • Activate Account
      • One-Click Trading
  • 💰Demex Rewards
    • 🪂Demex Points
      • Spins
      • Wheel of Fortune and Loot Boxes
      • Squads
      • DMX Token
      • FAQs
    • 🏁Demex Endgame: 50,000,000 Demex Points
    • 💵Demex Credits
    • 💧User Pools
    • 🕙Past Events
      • 2022
        • Futures Trading Competition
          • Maker vs Taker #1
          • Maker vs Taker #2
        • Perpetuals Trading Competition
          • Top Gainers and Top Traders #1
          • Top Gainers and Top Traders #2
          • Top Gainers #3
      • 2023
        • Demex Trading Leagues
          • Demex Trading League
            • How to Register
          • Demex $100,000 Mega Marathon
            • Demex Trading League Vol 1
              • How to Register
            • Deposit Booster
            • Demex Trading League Vol 2
          • Demex Trading League (Round 3)
            • How to Register
          • Demex Trading League (Round 4)
          • LUNA Earn-A-Thon & Demex Trading League (Round 5)
          • Demex Trading League (Round 6)
          • SCRT Trading League
        • Earn-a-thons
          • Demex x StaFi ATOM Earn-A-Thon
          • Demex x Zilliqa ZIL Earn-A-Thon
            • How to Register
        • Trading Challenges
          • BNB Trading Challenge
            • How to generate your custom hashtag
          • NEO Trading Challenge
            • How to Register
          • OSMO Perp Trading Challenge
          • Perps Trading Challenge
        • Special Events
          • $500 Surprise Flash Promotion
          • Demex Incentivized Devnet (Ended)
            • Perp Pools Deposits
            • Base Vault and $CLP Staking
            • Fluo Dashboard (Deprecated)
              • Stake FLUO
              • Boost Rewards
              • esFLUO Rewards
            • Demex Trading League (Devnet)
              • How to Register
            • The HODL Lottery
              • How to Register
              • How to Count Your Tickets
      • 2024
        • Celestia Trading League
        • FOMO Points Booster
        • DeFi Points Booster
        • Celestia Points Booster
        • 🥛milkTIA x Demex Points Booster Bonanza
        • BTCETH Points Booster
        • 🟠 Archway Trading League
        • ⚛️ Cosmos Trading Competition
          • 🐋Whalecome to Demex
        • 💯DeFi & FOMO Points Booster
        • 💯DeFi & Layer 1 Points Booster
        • 💧dATOM Lend and Trade Spins Promo
        • 🐸Perp Pool Incentives with Leap Wallet
        • 👋Welcome #BackToDemex
        • 🥛milkTIA Lend and Trade Spins Promo
        • 🛡️Loss Protection
        • 🏃‍♂️STRD Lend and Trade Spins Promo
        • 🐶Meme Traders Arena
        • 🛡️Loss Protection Oct-Nov
        • 🌙LUNA Lend and Trade Spins Promo
        • 💯Modular Pool Points Booster
        • 🕰️Mantle Lend & Trade Spins Promo
        • 🏎️Mantle Trading League
        • 🛡️Loss Protection Dec 9 - 20
        • 👑Mantle Trading League S2
      • 2025
        • 🔲Mantle Rewards Station: 30,000,000 Demex Points
        • 🔲Mantle Rush
        • 🔐Loss Protection March 19 - 26, 2025
        • 🌀Mantle Lend & Trade Spins Promo
        • 💙Base Trading League
        • 🧢Base Lend & Trade Spins Promo
        • 🛡️Loss Protection Feb 10 - 20, 2025
        • 📝#DemexContentQuest
        • 📈#PerpsOnDemex
        • 👥Demex Referral Club
        • 🤖Traḋemex Bot
  • 📊Trade
    • Features
    • Perps & Futures
      • Pricing Engine
      • Margin Specifications
      • Liquidation Engine
      • Market Specifications
      • Pre-launch Perpetuals
      • Glossary
      • FAQs
    • Grouped USD Token
      • Constituent Criteria
      • Safety Features
      • Migration Guide
    • Fees
      • Trading Fees
      • Funding Fees
      • Network Fees
      • Deposit & Withdrawal Fees
      • Fee Delegation
      • CEX to Demex VIP Program
      • Fee Distribution
    • Notifications
      • Demex Progressive Web App (PWA)
    • Trading Modes
      • Lite Mode
      • Pro Mode
        • Features
        • Market Leverage
        • Order Types
        • Execution Options
        • Time-In-Force 🆕
        • Trigger (Stop) Orders
          • Take-Profit
          • Stop-Loss
        • Chart Trading 🆕
  • 💰EARN
    • Liquidity Pools
      • Spot Pools
        • Earnings
        • Amplified Pools
        • Uneven Pool Weights
        • Multi-Pool Routing
        • FAQs
      • Perp Pools
        • Earnings
        • Deposting & Redeeming
        • AMM Strategy
    • Nitron (Lend & Borrow)
      • Lending
      • Borrowing
        • Avoiding Liquidations
      • Liquidation
        • Partial Liquidations
      • USC Stablecoin
        • Interest Rate Model
      • High Efficiency Mode (E-Mode)
      • Liquidations
        • Liquidation Guide
      • Strategies
        • Using Nitron for Perp Trading
      • Protocol Safety Features
      • Risks
    • Referrals
      • Sharing Your Referral Link
      • FAQs
      • Terms and Conditions
  • Stake SWTH / DMX
  • 🫂COMMUNITY
    • Public Community Nodes
    • Feedback
    • Glossary
      • Annual Percentage Rate (APR)
      • Arbitrage
      • Decentralized Applications
      • Execution Options
      • Liquidation
      • Liquidity Pool
      • Liquidity Providers
      • Perpetual Pool
      • Open Interest (OI)
      • Order Book
      • Time-In-Force
      • Volume
      • Yield Farming
  • ⚙️Developers
    • APIs Overview
    • WebSocket API
    • RPC API
    • EVM API
    • Insights API
    • Node CLI
    • Running a Node
      • Testnet
      • Mainnet
      • Public API Node
      • Validators
        • Commissions & Penalties
  • 🤖EVM
    • Overview
    • Deployment Tutorial
    • Interacting with Demex L1
      • Built-in Oracle Contracts
      • Precompiled Trading Contracts
    • ICS-20 <> ERC-20 Token Conversion
    • Explorers
Powered by GitBook
On this page
  • Overview
  • Calculation
  • Close Factor
  • Liquidation Amount
  • Example

Was this helpful?

  1. EARN
  2. Nitron (Lend & Borrow)
  3. Liquidation

Partial Liquidations

PreviousLiquidationNextUSC Stablecoin

Last updated 23 days ago

Was this helpful?

Overview

In the event of liquidation, not all of the user's collateral may always be liquidated. The maximum amount of collateral that can be liquidated (and therefore repaid debt is determined by:

  • : The collateralization level of the borrower's position (e.g. ratio of the value of the collateral to the outstanding debt)

  • Close Factor: The maximum percentage of the borrower's collateral that can be liquidated in the event of default.

Calculation

To determine the maximum collateral that can be liquidated, we must first find the Close Factor of the position.

Close Factor

Mathematically, the Close Factor is a number that scales linearly between a Minimum Close Factor (e.g. 0.1) and 1.0. The maximum value of 1.0 is reached when the Borrowed Value has reached a critical value ("Critical Borrowed Value"), which is between between initial Liquidation Threshold and the Collateral Value. This means that the position has passed its Complete Liquidation Threshold.

The Critical Borrowed Value is defined as:

B = LT + (CV-LT) * CLT, where

  • B = Critical Borrowed Value;

  • CV = Collateral Value;

  • LT = Liquidation Threshold;

  • CLT = Complete Liquidation Threshold; the CLT determines how far between LT and CV a borrower’s borrowed value must have progressed to allow a full liquidation. For example, 0.3 indicates 30% of the way from LT to CV.

There is a special case where Close Factor is always 1.0 if the Borrowed Value is less than the Small Liquidation Size, as long as the borrower is eligible for liquidation, so that small underwater positions can be easily completely removed.

Liquidation Amount

Example

Suppose:

  • Loan to Value (LTV) = 85% or 0.85;

  • Liquidation Threshold = 88% or 0.88;

  • Liquidation Bonus = 5% or 0.05;

  • Liquidation Bonus Fee = 10% or 0.10;

  • Minimum Close Factor = 0.10;

  • Close Factor = Variable factor; The close factor determines the percentage of the borrower's collateral that can be liquidated.

A borrower provides $100,000 in USDC and borrows $85,000 in ATOM (max LTV).

Collateral

$100,000 in USDC

Borrowings

$85,000 in ATOM

Loan to Value (LTV)

85% < Liquidation Threshold

Health Factor

= (Collateral Value * Liquidation Threshold) / Borrow Value

= (100,000 * 0.88) / 85,000

= 1.03529

> 1

The value of the borrowed ATOM increases to $92,500, bringing the user’s LTV ratio to 95.2% (thus exceeding the Liquidation Threshold of 88%).

Collateral

$100,000 in USDC

Borrowings

$92,500 in ATOM

Loan to Value (LTV)

92.5% > Liquidation Threshold

Health Factor

= (Collateral Value * Liquidation Threshold) / Borrow Value

= (100,000 * 0.88) / 92,000

= 0.95652

< 1

The borrower will be liquidated to ensure their position remains over-collateralized.

The exact calculation is as follows:

  1. Find Close Factor

Critical Borrowed Value (B)

= LT + (CV-LT) * CLT

= $88,000 + ($100,000 - $88,000) * 0.7

= $96,400

Close Factor = 1 when Borrowed Value hits the critical amount of $96,400.

Close Factor (CF)

= (Debt - LT) / (CV - LT) * (1 - Minimum CF) + Minimum CF

= (92,500 - 88,000) / (100,000-88,000) * (1-0.1) + 0.1

= 0.4375

  1. Calculate Maximum Liquidation Amount

The maximum amount that can be liquidated

= Close Factor * Debt (e.g. Current value of borrowings in USD)

= 0.4375 * $92,500

= $40468.75

The maximum amount that can be liquidated is $40468.75. The liquidator can initiate a liquidation and sell up to $40468.75 in collateral to repay the outstanding debt.

In return, the liquidator should expect to receive $40,468.75 * 1.045 = $42289.84 worth of the collateral after repaying the debt.

The is then multiplied by the value of the borrower's collateral to determine the maximum amount of collateral that can be liquidated.

💰
Close Factor
Health Factor
Relationship between Close Factor and Borrow Value