Condition For Liquidation

A technical breakdown to Decoding GMX Liquidation Conditions - Analyze the `isPositionLiquidatable` function in `PositionUtils.sol` to grasp the exact criteria for GMX Synthetics liquidation. Understand how remaining collateral, PnL, price impact, and total fees contribute to the crucial liquidation checks.

Get SSCD+ certified, for free!

Cyfrin Updraft has partnered with GMX to provide SSCD+ certifications vouchers to the first 25 students who demonstrate the completion of this course and are building on top of GMX. Join the GMX Discord server to redeem your coupon, or navigate to the docs to learn more!

1. Condition For Liquidation
A technical breakdown to Decoding GMX Liquidation Conditions - Analyze the `isPositionLiquidatable` function in `PositionUtils.sol` to grasp the exact criteria for GMX Synthetics liquidation. Understand how remaining collateral, PnL, price impact, and total fees contribute to the crucial liquidation checks. Duration: 3min
2. Approximate Liquidation Price
An estimation guide to Approximate Liquidation Price - Uncover simplified formulas to quickly estimate liquidation risk for long/short trades based on entry price and leverage. Compare formula accuracy for stablecoin versus index asset collateral scenarios. Duration: 12min
3. Auto Deleveraging
A detailed breakdown to GMX V2 Market Types & Auto-Deleveraging (ADL) - Differentiate between Fully Backed markets, fully collateralized for all outcomes, and Synthetic markets, which carry inherent risk. Learn how Auto-Deleveraging (ADL) manages this risk to ensure protocol solvency. Duration: 1min
4. Quiz 1 Quiz
Questions: 12

Course Overview

About the course

What you'll learn

Mechanics and contract architecture of the GMX protocol

Token pricing and fees

Liquidity: GM pools and GLV vaults

Math, funding rates, liquidation pricing, P&L calculations

Limit orders, take profit orders, stop loss, and stop market orders

Auto-cancel and auto-deleveraging

GLP, esGMX, GMX staking and delegation

Course Description

Who is this course for?

  • Software engineers
  • Web3 developers
  • Finance developers
  • Smart contract security researchers

Potential Careers

DeFi Developer

$75,000 - $200,000 (avg. salary)

Smart Contract Engineer

$100,000 - $150,000 (avg. salary)

Web3 developer

$60,000 - $150,000 (avg. salary)

Web3 Developer Relations

$85,000 - $125,000 (avg. salary)

Smart Contract Auditor

$100,000 - $200,000 (avg. salary)

Security researcher

$49,999 - $120,000 (avg. salary)

Meet your instructors

Tasuku Nakamura

Tasuku Nakamura

Founder at smartcontract.engineer

Smart contract engineer and educator.

Last updated on August 14, 2025