web3wagmi

Drift Protocol After the $295M Exploit: Perps on Solana

Drift ran Solana's largest perp DEX, lost about $295M to a DPRK-linked exploit in April 2026, and relaunched as Velocity. The mechanics, honestly.

Last verified

Table of contents

Drift built the most carefully documented derivatives engine on Solana, then lost roughly $295 million through a door that had nothing to do with it.

The trading design is genuinely good: three competing liquidity sources racing inside one transaction, cross-margin that pays lending interest on collateral while it backs a position, partial liquidations with a buffer so a bad hour does not close your whole book. The attack surface was somewhere else entirely, in administrator keys and a security council that had removed its own timelock five days before the theft.

This guide covers both.

What is Drift Protocol?

Drift is a perpetual futures exchange and a money market on Solana, deployed as a single on-chain program, where one collateral deposit backs every position in a subaccount and earns lending interest at the same time. Orders fill from a just-in-time auction, an on-chain orderbook and a protocol AMM, often within the same transaction.

It launched on Solana mainnet in 2021, co-founded by Cindy Leow, David Lu and Chris Heaney, with a seed round led by Multicoin Capital. Version 1 ran a virtual AMM and took a loss during the Terra collapse in May 2022 that drained the roughly $4.95 million left in its insurance fund and left a shortfall near $14.55 million, covered by outside financing. Version 2 went live on mainnet on 19 December 2022 with the hybrid liquidity design that is still the architecture today.

By January 2025 it held over $1 billion in total value locked and it was the busiest perpetuals venue on Solana. Then came 1 April 2026.

Since 1 July 2026 the product is called Velocity. The documentation lives at docs.velocity.exchange, the app at velocity.exchange, and the code is described as a fork of Drift v2 running under fresh keys. The DRIFT ticker survived the rename. This guide uses "Drift" for the history and the token, and "Velocity" where it is specifically the rebuilt venue.

The April 2026 exploit, and what it changed

On 1 April 2026 the protocol lost somewhere between $285 million and $295 million depending on which firm counted, with the recovery plan later fixing verified losses at $295.4 million. It was the largest crypto theft of the year at the time and the second-largest incident in Solana's history after the $320 million Wormhole bridge exploit of February 2022.

Every step in the sequence below is an operational control. None of them is a line of trading code.

A social-engineering campaign running for months compromised the devices of security council members and produced pre-signed multisig approvals. Solana's durable-nonce mechanism kept those pre-signed transactions valid indefinitely instead of expiring them. On 27 March the council migrated to a two-of-five signing threshold with a zero timelock, which removed the delay during which anyone could have noticed and intervened.

On 1 April the attacker listed a manufactured token as approved collateral at an artificial price near $1, having spent weeks seeding thin liquidity and wash-trading a price history for it. Withdrawal limits on USDC and four other major markets were raised to effectively unlimited. The attacker deposited the worthless collateral and ran 31 withdrawal transactions over about twelve minutes.

Elliptic traces the drain across three core vaults, JLP Delta Neutral, SOL Super Staking and BTC Super Staking, with the largest single transfer moving roughly 41.7 million JLP tokens worth about $155 million. Proceeds were swapped to USDC through a Solana DEX aggregator, bridged to Ethereum and converted to ETH. The attacker wallet had been created about eight days ahead and received a small test transfer from a Drift vault in that window.

Drift initially stated with medium-high confidence that the operation came from the same actors behind the October 2024 Radiant Capital hack, which Mandiant attributes to the North Korean state-affiliated group UNC4736. Elliptic and TRM Labs independently place the laundering pattern with DPRK-linked operators. Drift's 3 June recovery update then reported Mandiant's forensic finding: the attacker was UNC6862, a North Korean threat group whose tactics align with historical North Korean operations. Our Lazarus Group explainer covers how these vendor cluster names map onto the wider DPRK hacking apparatus.

According to The Block, the attacker's three wallets held about 107,165 ETH in early October 2026, and one of them had moved 23,094 ETH through Tornado Cash in July.

What the rebuild actually removed

The relaunched venue is deliberately smaller than the one that was drained. Four changes matter to a user.

Perpetuals only. The wide product surface of late-period Drift is gone, including isolated markets, Amplify and several ancillary products. Spot markets survive purely as collateral and lending. A narrower venue approves fewer collateral assets, and a fraudulent collateral approval was the instrument of the attack.

USDT settlement. Every perpetual quotes and settles in USDT, which removes an entire class of cross-asset accounting.

No durable nonces. The Solana durable-nonce mechanism used to hold pre-signed transactions valid indefinitely was removed.

Fresh program, rotated keys, restored timelocks. The program was redeployed and the security council controls that were loosened before the attack were reinstated.

A private beta opened to selected partners and traders in July 2026. On 17 September 2026 the team published the results of an OtterSec audit covering the post-fork code, 154 issues with none rated critical, open-sourced the repository, and said the beta would widen to all users shortly. A STRIDE threat review with the Solana Foundation was still running at that point. No firm public relaunch date has been published, so treat any circulating one as a target.

Illustration of a sunlit exchange hall where three water channels feed a glowing turbine. A coin reservoir connects to smaller platforms, and a gate diverts water into a basin. An operator overlooks the machinery, with a damaged vault, a keyhole door and a partially filled glass tank behind it.

Drift combines efficient trading mechanics with risks from shared collateral and administrative controls. The guide explains competing liquidity sources, interest on collateral, partial liquidation and the recovery plan following the exploit.

How the three-source liquidity stack works

The problem this solves is specific to Solana, and several other venues have borrowed pieces of the answer.

On a chain with 400 millisecond slots, a plain orderbook fill punishes whoever moves first. The taker crosses the spread against whatever stale quote is resting, and the maker who would have quoted better never gets a chance. Drift inverts that with a Dutch auction on every market order.

The auction price starts somewhere favourable to the taker and walks toward the order's limit price as slots pass. Makers watch it and decide when to step in. Fill early and you take a worse price than you could have waited for. Wait too long and someone else takes the order. Durations are counted in 400ms slot units and the floor scales with the market's spread and contract tier, so a wide, thin market gets a longer window than SOL-PERP.

Three sources compete inside that window.

JIT makers subscribe to incoming flow and fill atomically. A maker places an immediate-or-cancel post-only order whose only purpose is to fill the taker's order, fills it, and cancels the remainder, in one transaction.

DLOB keepers run the orderbook off-chain. Keeper bots build their own view of resting limit orders, find a match on the other side, and submit a transaction naming both orders. The keeper is paid the lesser of 10% of the fee and a time-based reward that grows with the fourth root of the order's age from a base of one cent. That reward structure is why stale orders eventually get filled: the longer an order waits, the more it pays to fill it.

The AMM is the backstop. Wherever it quotes better than the next maker in line, an AMM step is slotted ahead of that maker and bounded at the maker's price, with each step capped at roughly 1% of AMM reserves per transaction. It guarantees that a market order fills even when no human is quoting.

The practical result is that a single fill can be part JIT, part book, part AMM. Compare that to GMX, where every trade prices against a pool, or Hyperliquid, which runs a pure central limit order book on its own chain and does not need an auction because its blocks are fast enough.

Swift, and why signed orders are faster

Standard on-chain flow takes two to four seconds from a taker signalling intent to a maker being able to fill, and one to two seconds of that is pure waiting.

Swift is the off-chain signed-order path. A taker signs an order and broadcasts it to a WebSocket at the same moment the on-chain transaction goes out. Subscribed makers see it in 100 to 500 milliseconds, before the taker's transaction lands, and can submit a fill with ed25519 signature verification that lands in the same slot.

For a maker, the payoff is fresher oracle pricing and better auction positioning. The edge only exists in the window between the WebSocket message and the transaction landing, so a slow RPC node spends the entire head start on submission and gets nothing. Builder codes, the mechanism that lets a third-party frontend earn a share of the fees on trades it routes, run through Swift orders.

Cross-margin, collateral weights and account health

Every asset in a subaccount backs every position in that subaccount. You can hold a BTC perpetual backed by SOL collateral without selling the SOL first, and the SOL keeps earning lending interest while it sits there. Subaccounts are the isolation boundary. If you want a position ring-fenced, open it in its own subaccount.

Deposits are not worth their full oracle value as margin. Two weights apply.

The initial weight gates new risk: opening positions, withdrawing, placing risk-increasing orders. A $100 deposit at an 80% initial weight gives $80 of buying power. The haircut covers price movement during a liquidation, book depth, and execution cost.

The maintenance weight is used only for liquidation checks and is always more generous. The gap between the two creates a band where an account can hold what it has but cannot add to it, which is exactly the right behaviour when a position is going against you.

Two further discounts bite in ways people do not expect. The initial asset weight decays linearly once a market's total deposits pass a configured threshold, with no floor, and it applies to everyone at once, so your buying power can fall passively because other people deposited. Separately an IMF factor penalises your own concentration: the required margin scales with the square root of position size, invisible at ordinary size and material on a concentrated one.

Perpetual positions do not use asset weights. Each market carries an initial margin ratio (the minimum to open, so a 5% ratio is 20x maximum leverage) and a maintenance margin ratio (the liquidation threshold). Maximum leverage is the reciprocal of the initial ratio, bounded protocol-wide between 1x and 80x. Ratios are set per market and live on chain, so read the current value for the market you are about to trade rather than assuming a house default.

Unsettled profit and loss is asymmetric on purpose. Negative unsettled P&L always carries a weight of 1, so a paper loss counts in full against the account immediately. Positive unsettled P&L is valued as an asset with separate initial and maintenance weights, and once a market's net unsettled P&L passes its imbalance threshold the protocol discounts those gains at the initial-margin stage only. It never reduces maintenance weights, so the discount blocks you from adding risk on paper profit without moving an existing position's liquidation price.

Funding rates, with the numbers

Perpetuals have no expiry, so funding is what keeps the contract near spot. If you have not traded them before, start with how to start trading perps.

The base hourly rate is:

hourly_rate = (1/24) * (market_twap - oracle_twap) / oracle_twap

Both inputs are one-hour averages rather than spot prices, and the market input is the midpoint of the bid and ask TWAPs. Using averages makes the rate expensive to manipulate: a single print does not move it.

Two adjustments sit on top. A per-market dead zone, quoted in basis points, treats tiny divergences as noise. An offset floor adds the oracle TWAP divided by 3333 to the premium before conversion, which works out near 0.00125% per hour, roughly 10.95% annualized. That floor means longs pay a small baseline even in a flat market, which is the same structural tilt every perp venue applies.

Premiums are capped by contract tier: 3% of the oracle TWAP for tier A and B markets, 5% for tier C, and 10% below that. Updates run hourly, triggered when someone opens or closes a position and independently when enough time has passed. An update that lands more than 20 minutes past the hour pushes the next one into the following period, so a quiet market can skip a payment.

A worked example. You hold a $50,000 notional SOL-PERP long. Over the hour the market TWAP prints $201 against an oracle TWAP of $200, a premium of 0.5%. The hourly rate is 0.5% divided by 24, about 0.0208%. On $50,000 that is roughly $10.40 for the hour. Held for a full day at the same premium it is about $250, or 0.5% of your notional per day. On a position you intended to hold for a week, funding is a larger cost than the trading fee by an order of magnitude.

When longs and shorts are imbalanced, the AMM absorbs the difference out of retained equity, capped at one third of its equity per period.

Liquidation, worked through

An account is liquidatable when total collateral falls below maintenance margin, tested with no cushion at all: at 0% health, you are eligible. Account health is 100% minus the ratio of maintenance margin to total collateral.

The engine then does four things in order.

  1. Cancel open orders. Orders reserve margin, so cancelling them can restore health with no position transferred. If it does, liquidation stops there.
  2. Compute a buffered target. Rather than closing back to exactly maintenance margin, it targets maintenance plus 2% of notional. With a 3% maintenance ratio that is a 5% exit target against a 3% entry threshold.
  3. Close the minimum. Only enough position transfers to reach that target. A liquidated account usually keeps most of its exposure.
  4. Throttle the transfer. A configurable ramp starts at a fraction of the shortage and climbs to 100% over a configured duration. Positions worth $50 or less transfer in full and shortages under $50 clear immediately.

Transfers price off the oracle. The order book mark plays no part, which removes the obvious attack of pushing the book to trigger someone else's stop. Before any transfer the live oracle is compared against the market's five-minute oracle TWAP, and a divergence of 50% or more rejects the liquidation outright. That 50% is a floor: admins can tighten it and cannot loosen it.

The worked example. Take a market with a 5% initial and a 3% maintenance margin ratio, and check the live figures for whatever you actually trade. You deposit $10,000 of USDT and open a 250 SOL-PERP long at $200, so $50,000 of notional at 5x. Initial margin at 5% is $2,500, comfortably covered.

Your collateral is $10,000 plus 250 times the move. Your maintenance requirement is 3% of notional, which is 7.5 times the price. Setting them equal:

10,000 + 250 * (P - 200) = 0.03 * 250 * P
242.5 * P = 40,000
P = 164.95

So you are liquidatable near $164.95, a drop of about 17.5%. Naive 5x arithmetic would put it at 20%. The gap exists because maintenance margin is a percentage of a notional that shrinks as the price falls, and it always favours the protocol.

At that price your collateral is about $1,238 and the buffered exit target is 5% of a $41,238 notional, about $2,062. The shortage is roughly $824. Closing one SOL reduces the requirement by 5% of $164.95, about $8.25, so the engine closes about 100 SOL, 40% of your position. If the market's liquidator fee is 0.75% of transferred notional, the liquidator earns about $124 on the roughly $16,500 transferred, and the insurance fund takes a similar cut.

You walk away still holding 150 SOL long, still exposed, with a thinner buffer. That is why people get liquidated twice in one candle.

The liquidator fee ages. It holds at its base rate for a 600-second grace period after the account enters liquidation, then rises by 0.01 basis points per 400 milliseconds, capped at the lesser of three times the base fee and the market's maintenance margin ratio. At a 0.75% base against a 3% maintenance ratio, the cap is 2.25% and takes roughly 100 minutes past the grace window to reach. An account nobody wants to liquidate gets steadily more profitable to liquidate.

The insurance fund and the bad-debt waterfall

When a position goes bankrupt faster than liquidation can close it, someone eats the difference. Drift publishes the order precisely.

  1. The estate: remaining collateral and profit-and-loss claims.
  2. The in-transit insurance fee.
  3. The insurance fund, up to the market's tier cap.
  4. An AMM fee-provision clawback.
  5. Socialization across remaining traders.

Each spot market that serves as collateral has its own fund denominated in that asset, and perpetual markets draw on the quote asset's fund, which is the largest. Coverage is capped by contract tier and the cap is cumulative, so a market's real claim is its cap less whatever it has already drawn.

Contract tierLifetime insurance cap
Tier A$100,000,000
Tier B$1,000,000
Tier C$100,000
Speculative, highly speculative, isolated$0

A speculative market has no insurance coverage at all. The docs put it directly: bad debt in a Speculative, Highly Speculative or Isolated market never reaches the shared vault. Trading a long-tail perpetual means a bankruptcy there goes straight past step three to socialization.

The fund is funded by direct staker deposits, an hourly capped flow from perpetual trading fees, liquidation fees and borrow fees, and a continuous carveout from lending yield that would otherwise go to depositors. It is 100% staker-owned with no protocol share. Stakers earn share-price appreciation and bear the principal risk, with a cooldown before withdrawal.

Staking the insurance fund is a yield product with a very specific shape: you are selling tail insurance to leveraged strangers. Price it that way rather than as a savings account. The same logic applies to Hyperliquid's HLP vault and to GMX pool liquidity providers.

Fees and costs

Six things cost you money here, and the trading fee is usually the smallest.

Trading fees. The documented perpetual schedule at the time of writing is volume-tiered over a rolling 30 days.

Tier30-day volumeTaker feeMaker rebate
BaseUnder $5M4 bps (0.040%)0.25 bps
Tier 2$5M and above3 bps (0.030%)0.25 bps
Tier 3$80M and above2 bps (0.020%)0.25 bps

The maker rebate is flat across all three tiers and requires the post-only flag. A resting order without that flag which happens to match as a taker pays the full taker fee and earns nothing. An individual market can add up to 10 basis points on top of the taker fee, which is a larger swing than the entire tier ladder, so check the market spec before assuming the base rate applies. Liquidation volume counts toward tiering on both sides: the liquidatee's taker counter and the liquidator's maker counter. Fees are applied to the position's cost basis in the quote asset rather than billed separately, so your entry price already contains them.

Spot markets carry no maker or taker fee. Lending interest is carved on accrual.

Funding. Covered above. On anything held longer than a few hours this dominates. Half a percent of notional per day at a modest premium is 10 basis points of fee equivalent every five hours.

Spread and auction slippage. The auction is designed to get you a better price than crossing a stale book, and it is still a cost. A wide market with a long auction floor can walk several ticks before anyone fills you.

Liquidation fees. Three per-market components against transferred notional: the liquidator fee, the insurance fund fee, and a protocol fee initialized at zero. The insurance side is paid first specifically so that a protocol cut can never push a liquidation into a bankruptcy that would not otherwise have happened.

Solana network fees. Real but trivial, a fraction of a cent per transaction. You need a small SOL balance in your wallet regardless of what you trade.

Builder fees. If you arrive through a third-party frontend using builder codes, that frontend's fee is passed through on top.

The DRIFT token and the recovery tokens

DRIFT launched with a maximum supply of one billion, distributed over a five-year emission schedule, positioned as a governance token over protocol parameters. The published allocation runs 43% to ecosystem development, 25% to protocol contributors and 22% to venture investors, with 100 million tokens, 10% of supply, airdropped to around 180,000 users at launch on their prior activity.

DRIFT trades near $0.006738, for a market capitalization near $5M. That is far below where the token traded before the exploit, and the comparison to Hyperliquid's HYPE is not close. A governance token over a protocol that was drained and rebuilt is a claim on a future that has to be earned back first.

Recovery tokens are a separate instrument. The May 2026 recovery plan fixed the loss at $295,426,725.97 and promised one token per dollar of verified loss. The token shipped as DFX, a standard Solana SPL token, with a fixed supply of 299,500,810.998: one DFX per verified USDT lost at the 1 April 2026 snapshot. No more will be minted. DFX is transferable and trades on Raydium.

Claims are open, and the first payout is about 1%

Drift opened DFX claims and redemptions at the start of October 2026, at dfx.drift.trade. The deadline is 00:00 UTC on 1 January 2028, after which unclaimed DFX is burned.

Claim with the wallet that controlled the Drift account on 1 April 2026; any other wallet shows nothing. The same portal pays out pre-exploit Insurance Fund stakes as a separate claim in the staked token, and those amounts can be clawed back from 1 July 2027. As of early November 2026 only about 5% of DFX allocations had been claimed. The web3wagmi claims checker reads both claims for any Solana wallet.

The redemption amount is the pool balance divided by the DFX still outstanding. At launch the pool held about 3.1 million USDT, which works out to about 0.0104 USDT per DFX. A user who lost $10,000 and redeemed on day one received roughly $104. The Block reported that 216,480 DFX were redeemed on the first day for about $2,250, and that the daily revenue sweep added $31 on its first day.

Redemption is burn-on-redeem and one-time. Whoever redeems takes the current rate and forfeits any further claim on the pool. The upside of waiting is that each redemption burns tokens and removes USDT proportionally, so later deposits are shared among fewer holders. Drift's own example: if 10% of supply redeems early, the remaining holders each get about 11% more of subsequent deposits. A holder therefore has three choices: redeem now at about 1%, hold for future funding, or sell DFX on the open market.

Where the rest of the money is supposed to come from

The pool is funded daily at 00:00 UTC from Velocity's net protocol revenue, with 60% to 90% of daily revenue going in depending on revenue levels, plus any recovered stolen funds. Tether has committed up to 127.5 million USDT and strategic partners up to 20 million USDT. The Block reported that neither commitment had been deposited when claims opened. The May plan had said redemption would open once the pool cleared $5 million; claims opened with the pool at about 3.1 million USDT.

Against a loss near $295 million, the committed capital covers roughly half. The remainder depends on trading revenue the rebuilt venue has not yet earned, and on day one that revenue was a rounding error.

The recovery plan listed about 130,259 ETH in attacker wallets under monitoring and about $3.36 million of USDC frozen through Circle, pending a seizure warrant. By October The Block put frozen funds at $9.2 million. A bounty of 10% of recovered assets was offered with Bybit, and the plan said final decisions on the pool, multisig structure and timelocks would go through a DAO vote.

Public reaction to the rebrand was mixed, with a recurring criticism that renaming preceded making users whole. The team's stated answer is that the Tether facility is a loan structured to fund a working exchange, because exchange revenue is the only path to the recovery pool, and it cannot be redirected to pay users directly.

Drift vs Hyperliquid, Jupiter, GMX, dYdX and Pacifica

VenueChainLiquidity modelSettlementDistinguishing trait
Drift (Velocity)SolanaJIT auction, on-chain orderbook and backstop AMM competing in one transactionUSDT after the rebuildCross-margin collateral that earns lending interest while backing positions
HyperliquidOwn L1Fully on-chain central limit order bookUSDCDominant share of on-chain perp volume, HLP vault as the house liquidity provider
Jupiter PerpsSolanaTrade against the JLP pool for majors, with an order-book engine added for newer marketsUSDCVery high maximum leverage on majors (up to 250x), pool acts as counterparty
GMXArbitrum, AvalanchePool-based, oracle-priced, zero price impact within limitsUSDC and basket assetsLiquidity providers take the other side of every trade
dYdXOwn Cosmos appchainOff-chain orderbook, on-chain settlementUSDCLong-running appchain with fee-funded staking rewards
PacificaSolanaOff-chain order book matchingUSDCNewer Solana venue built around order-book execution

If you want the deepest books and the tightest spreads on majors, Hyperliquid wins and it is not close. If you want maximum leverage on a handful of majors with no order-book skill required, Jupiter Perps is the simpler product. If you want oracle-priced fills with no slippage inside limits, GMX still does that better than anyone. Drift's specific advantage is capital efficiency: the collateral doing the work is also earning, and the auction can beat a thin book. Its specific disadvantage is a security record with two losses in four years.

For the wider field, our perpetual DEX comparison covers more venues on more axes, and best decentralized exchanges covers spot.

What goes wrong

You misread maximum leverage as safe leverage. A 5% initial margin ratio permits 20x. At 20x, a 3% maintenance ratio means roughly a 4% adverse move liquidates you before fees. The ratio tells you what the program allows and says nothing about what survives a normal SOL candle. Fix: size from your liquidation price. Compute it before you submit, the way the worked example above does.

Your buying power drops without you doing anything. The initial asset weight shrinks as a market's total deposits grow past a threshold, with no floor, and the IMF factor penalises your own concentration. A position that was comfortably margined on Monday can be blocking withdrawals on Friday. Fix: keep a buffer well above the minimum and check account health after large market-wide deposit growth as well as after price moves.

You post a resting order without the post-only flag. It matches as a taker, you pay 4 basis points instead of collecting 0.25, and on a market-making strategy that difference is the whole edge. Fix: set the flag explicitly, and verify the fill type on your first few orders rather than assuming.

You trade a speculative market and assume insurance covers you. Speculative, highly speculative and isolated tiers carry a $0 insurance cap. A bankruptcy there socializes immediately. Fix: check the contract tier of any market outside the majors before you open size in it.

You hold a funding-expensive position overnight for a thesis that needed hours. At a sustained 0.5% daily premium, a week costs 3.5% of notional. Fix: treat funding as a carry cost and decide the holding period before entry. If the thesis is multi-week, consider spot or a dated instrument instead.

You leave collateral in one subaccount for everything. Cross-margin is the feature and it is also the contagion path. One blown trade takes the collateral supporting your other positions. Fix: use subaccounts as firebreaks, one per strategy, and accept the lower capital efficiency as the price of isolation.

You sign something from a link. Every major exchange has an impersonation problem, and one that just rebranded has two domain names circulating and a user base primed to click anything about recovery. Fix: reach the app only from your own bookmark, and never sign an approval you cannot read. Our guide on how to revoke token approvals covers the cleanup.

How to get started

  1. Learn perps first. If funding, maintenance margin and liquidation price are not already familiar, read how to start trading perps and how to read crypto charts before you deposit anything.
  2. Get a Solana wallet funded. Phantom or any Solana wallet, with a small SOL balance for network fees and your trading capital in the settlement stablecoin. Arriving from an EVM chain, you need a bridge first.
  3. Reach the app from a bookmark you created yourself. Confirm you are on the official domain before connecting.
  4. Read the admin keys and audits pages. Given the history, treat this as required. Check the current multisig threshold and the timelock length, and confirm the timelock is non-zero. A zero timelock is exactly the condition that made April's theft executable.
  5. Deposit into a dedicated subaccount. Do not put your whole balance in the account you trade from.
  6. Open one small position and watch the fill. Note where the auction filled you relative to the oracle, what the fee was, and whether it went to JIT, book or AMM.
  7. Write down your liquidation price before you submit the order. Then check account health after the first funding payment lands.
  8. Decide your exit conditions in advance, including the funding cost at which the trade stops making sense. How to exit a DeFi position covers the general discipline.

Who this suits, and who should pick something else

It suits a Solana-native trader who wants capital efficiency. If your balance already lives on Solana and you want it earning lending interest while it margins a perp, this is the most direct way to get that, and the auction design is a real answer to a real problem with order books on fast chains.

It suits builders. The developer documentation, the TypeScript and Rust SDKs, the keeper bot templates, the market-maker guides and the Swift API are unusually complete, and builder codes give a frontend a revenue model. If you are writing a bot or an interface, this is the best-documented derivatives program on Solana.

It suits someone who wants to understand perp mechanics. The docs explain the funding formula, the liquidation waterfall and the margin weights with more precision than most venues manage, which makes it a good place to learn even if you trade elsewhere.

Pick something else if depth is what you need. Hyperliquid has more of it, on more markets, with a longer clean operating record.

Pick something else if you want a simple product. Jupiter Perps is three majors and a pool, and for many traders that is the correct amount of surface area.

Pick something else if the security history disqualifies it for you. That is a defensible position. Two losses in four years, one of them among the largest of its year, is a real data point and no amount of key rotation erases it. If it disqualifies the venue for you, Pacifica and the rest of the perpetual DEX field are a click away.

The bottom line

Drift built the best-documented derivatives engine on Solana and then demonstrated, at a cost of roughly $295 million, that the quality of your trading math is irrelevant if your administrative keys and your timelocks are not equally well designed.

The rebuilt venue under the Velocity name has narrowed to perpetuals in one settlement asset, rotated its keys, restored the controls it had loosened, shipped an audit with no critical findings, open-sourced the code, and published a recovery plan that covers roughly half the loss with committed capital and the rest with future revenue. Claims opened in October 2026 at about 1% of the loss, with the Tether and partner money still undeposited. The plan remains unfinished, and DFX holders are the ones carrying the unfinished part.

Use it, if you use it, for what it does better than the alternatives: collateral that works twice, an auction that beats a thin book, and documentation that tells you exactly how you will be liquidated. Size it for a venue that has been drained, because it has been.

Frequently asked questions

What is Drift Protocol?

Drift is a perpetual futures exchange and money market on Solana, deployed as a single on-chain program. You deposit collateral into a subaccount, that collateral backs every position in the subaccount and simultaneously earns lending interest, and you trade perpetual contracts with leverage against a combination of just-in-time market-maker quotes, an on-chain orderbook and a protocol AMM. It launched in 2021, relaunched as v2 in late 2022, became the largest perp DEX on Solana, and rebranded to Velocity on 1 July 2026 after a major exploit.

Is Drift now called Velocity?

Yes. The team announced the rebrand on 1 July 2026, moved the documentation to docs.velocity.exchange and the app to velocity.exchange, and described the new name as reflecting a cleaner architecture and a narrower scope. The rebuilt venue is perpetuals-only, settles in USDT, drops Isolated Markets and several ancillary products, and runs a freshly deployed program with rotated keys. The DRIFT token kept its ticker. Treat "Drift" as the historical name and the token, and "Velocity" as the live product.

What happened in the Drift hack?

On 1 April 2026 Drift lost roughly $285 million to $295 million, the largest crypto theft of the year at the time and the second-largest Solana incident after the $320 million Wormhole bridge hack. A months-long social-engineering campaign compromised the devices of security council members, which yielded pre-signed multisig approvals held valid by Solana durable nonces. On 27 March the council had migrated to a two-of-five threshold with zero timelock. The attacker then listed a manufactured token as approved collateral near $1, raised withdrawal limits to effectively unlimited, deposited the token and drained three vaults across 31 withdrawals in about twelve minutes. Elliptic and TRM Labs linked it to North Korea, and Mandiant's forensic review, published by Drift in June 2026, attributed it to UNC6862, a North Korean threat group.

Will users get their money back?

Partially, and on a schedule nobody can promise. Claims for DFX, the recovery token, opened at dfx.drift.trade in early October 2026: one DFX per verified USDT lost, a fixed supply of about 299.5 million, snapshot 1 April 2026. At launch the pool held about 3.1 million USDT, so redeeming paid about 0.0104 USDT per DFX, just over 1% of the loss, and redeeming burns the token and forfeits any future payout. The pool is topped up daily from 60% to 90% of Velocity's net revenue plus any recovered funds, and Tether (up to $127.5 million) and strategic partners (up to $20 million) have committed capital that had not been deposited when claims opened. Holders can also keep DFX or sell it on Raydium. Unclaimed DFX is burned after 1 January 2028.

How does a Drift liquidation work?

An account becomes liquidatable when total collateral falls below the maintenance margin requirement, measured at oracle prices rather than book prices. The engine cancels open orders first, because orders reserve margin and cancelling them can restore health on its own. If that is not enough, it closes only the part of the position needed to reach maintenance margin plus a buffer of 2% of notional, so a liquidated account usually keeps most of its exposure. A configurable throttle limits how much transfers at first and ramps to 100%.

How are Drift funding rates calculated?

The base hourly rate is one twenty-fourth of the gap between the market TWAP and the oracle TWAP, divided by the oracle TWAP. Both inputs are one-hour averages rather than spot prices, and the market input is the midpoint of the bid and ask TWAPs. A per-market dead zone treats tiny divergences as noise, and an offset floor adds roughly 0.00125% per hour, near 10.95% annualized, so longs pay a small baseline. Premiums are capped by contract tier, from 3% for the safest markets to 10% for the riskiest.

What are Drift's trading fees?

The documented perpetual schedule at the time of writing is volume-tiered over a rolling 30 days: 4 basis points taker at the base tier, 3 bps from $5 million of 30-day volume, and 2 bps from $80 million, with a flat maker rebate of 0.25 bps that requires the post-only flag. An individual market can add up to 10 basis points on top of the taker fee. Spot markets carry no maker or taker fee. Liquidations carry their own three-way split between liquidator, insurance fund and protocol. Schedules change, so check the docs.

Is Drift safe to use now?

Both losses came through operations rather than the trading math. The 2026 loss came through compromised admin keys and a security council that had removed its own timelock; the 2022 loss came through leverage management during the Terra collapse. The rebuilt venue rotated keys, narrowed the product surface, removed the durable-nonce mechanism used in the attack, restored timelocks and multisig requirements, completed an OtterSec audit in September 2026 that raised 154 issues with none rated critical, and open-sourced the code. Those fixes address the failure that happened. A venue that has been drained twice still deserves smaller position sizes than one that has not.

Sources & References

Figures in this guide are cross-referenced against the sources below.