Drift Protocol v2

⌘K
👾Welcome to Drift Protocol
📺Drift DEX
👋Getting Started
📈Perpetual Futures
📊Spot Margin Trading
🏦Borrow & Lend
🏛️Staking
🏪Market Makers
🔬Technical Explanations
📏Accounting and Settlement
➗Borrow Interest Rate
📜Delisting Process
⛲Drift AMM
🏃Just-In-Time (JIT) Auctions
📚Keepers & Decentralised Orderbook
☠️Liquidators
💧Liquidity Providers (LPs)
📋Protocol Guard Rails
📝Risks
🖥️Developer Resources
📔Program/Vault Addresses
⌨️SDK Documentation
⌨️Tutorial: Bots
⚠️Troubleshooting
🛠️Keeper Bots
🛠️Trading Bots
⌨️Historical Data (v1)
⌨️API
🛡️Security
🛡️Audits
🛡️Bug Bounty
⚖️Legal and Regulations
📝Terms of Use
📝Disclaimer
📝Privacy Policy
📝Competition Terms and Conditions
Sweepstakes Details
📚Glossary
Docs powered by
Archbee
Technical Explanations

Liquidators

2min

Liquidations act as position transfers between accounts. Liquidator accounts thus need to be collateralised in order to satisfy the transfer's initial margin requirements.

There are four instructions pertaining to liquidations:

Instruction

Details

liquidate_perp

Liquidator takes over user perpetual positions at a discount.

liquidate_borrow

Liquidator takes over borrow at a discount to the deposit value.

liquidate_borrow_for_perp_pnl

Liquidator takes over borrow for discount P&L.

liquidate_perp_pnl_for_deposit

Liquidator takes over negative P&L for discounted deposit.

Bankruptcy (see Insurance Fund ) is possible if you still have outstanding liabilities and no further assets after liquidation.

Liquidators are open-sourced and can be triggered by anybody running a liquidator bot. Liquidators, also known as Keepers, will have their collateral reward credited to their Drift account.

Liquidations will be triggered and positions will be liquidated based on oracle price, not the mark price of the exchange.

The user's trade price at liquidation for a perpetual position will be based on the oracle price + the penalty / fee that is set per market.

In the case of an oracle error (): the market will pause most fills, liquidations, and funding rate updates.

If you would like to run a liquidator bot, see Tutorial: Liquidation Bot

Updated 03 Aug 2023
Did this page help you?
PREVIOUS
Decentralised Orderbook FAQ
NEXT
Liquidity Providers (LPs)
Docs powered by
Archbee
Docs powered by
Archbee