Skip to main content

At 03:20:16 UTC this morning, a two-of-five multisig sent one instruction to Velocity, the Solana perpetuals exchange rebuilt from the remains of Drift Protocol, and its program log printed a single line: exchange_status: 0 -> 255. Every deposit, withdrawal, order, fill and settlement stopped in the same slot. Velocity then posted that it had found a bug, that user deposits are safe, and that it would stay paused until it was safe to resume. The pause looks textbook to me, and the chain lets you check almost all of it. What you cannot check is the code being paused. Velocity’s own documentation says the program “is not open source yet” and “will be published once the post-fork audit report is final”. The same documentation dates that final report to 3 September. That was 83 days ago.

TL;DR

  • Velocity (program vELoC1audYbSYVRXn1vPaV8Axoa9oU6BYmNGZZBDZ1P) was paused at 03:20:16 UTC on 25 November 2026 by a dedicated pause multisig. On-chain, the exchange status went from 0 to 255, meaning every operation was halted.
  • In the 50 minutes before the pause, the USDT insurance fund vault processed about 17,500 successful transactions against a normal rate of a few per hour. Across four insurance fund vaults, the fund fell by roughly $14,300. The user deposit vault barely moved, and in my sample every transaction touching the fund was resolving a bankruptcy.
  • The deployed program has been upgraded 11 times since it went live on 2 July. Nine of those upgrades came after the public repository was last pushed to, seven came after OtterSec’s audit window closed, and none of them has a verified build. The public repository is archived and holds Drift’s code at v2.162.0. The interface Velocity ships on npm is v2.169.0, and it lists 35 instructions that do not exist in any public source.
  • Velocity promised to publish its source once the audit report was final. The report was dated 3 September. Since 3 November its bug bounty has been paused “while an audit is in progress”.
  • The vault balances can be read. The rules that moved money out of them cannot. A claim about code that nobody outside can read is a statement, not a check. That is the hundred-and-tenth unasked half of fairness.

What the chain says happened this morning

Nothing below comes from a press release or a screenshot. All of it comes from public Solana RPC calls made this morning, which anyone can repeat.

Velocity’s global state lives in one account, 2etx5NvPNxeMZ7EfHE6GjJfW2imRYEUANehNS1WB4CVW. Decoded with the interface Velocity publishes on npm, its exchange status byte now reads 255, every pause bit set. The transaction that set it, at slot 473,593,416, was executed through Squads, the standard Solana multisig, by a vault that Velocity’s state names as its pause_admin. After the pause, the USDT deposit vault saw 14 more transactions and the SOL vault two. Every one of them failed. So the pause held.

The interesting part is the hour before it. Over the previous 50 hours, the USDT deposit vault handled between 14 and 95 transactions an hour, with a median of 35. Between 02:00 and 03:00 UTC this morning it handled 16,036 successful transactions, and another 11,688 in the 20 minutes before the pause. Almost none of them came before 02:30. From 02:30 the rate was above a thousand a minute. The insurance fund’s USDT vault, which had seen a single transaction in the previous hour, recorded 17,524 successful transactions between 02:01 and the pause.

I pulled 200 of those 17,524 at random and read every one. All 200 were resolving a bankruptcy. 107 ran a five-instruction sequence (LiquidateSpot, ResolvePerpBankruptcy, ResolveSpotBankruptcy, SettlePnl, Withdraw), 76 ran ResolveSpotBankruptcy on its own, and 17 force-cancelled orders and then resolved a bankruptcy. 191 of the 200 reduced the insurance fund, nine left it unchanged, and none added to it. The median payment out was 0.72 USDT. They came from 75 different signing wallets, and 107 of the 200 logged that the exchange’s oracle for the market involved was stale. Here is what the four insurance fund vaults held at the start and end of that window:

Insurance fund vault First transaction in window Last before pause Change Approx. USD
USDT 183,712.30 171,413.17 −12,299.13 (−6.7%) $12,285
SOL 183.714 171.810 −11.904 (−6.5%) $812
wETH 4.0983 3.6017 −0.4966 (−12.1%) $820
wBTC 0.12743 0.12058 −0.00685 (−5.4%) $406
Total ≈$14,300

Meanwhile the main USDT deposit vault went from 2,020,507.50 at 02:30 to 2,021,363.35 now. It rose by about $850. So “user deposits are safe” is consistent with the one number anyone can read. The vault holding the money users put in is still full, along with 2,573 SOL, 18.4 wETH, 1.18 wBTC and 25.8 ZEC in the other markets. Velocity’s documentation describes the insurance fund as 100% staker-owned. Whoever staked into it is about 6.7% lighter in USDT this morning than they were at 02:00, and they are users too.

I want to be precise about what I am not saying. I do not know that this burst is the bug Velocity paused for. Liquidations and bankruptcy resolution are normal machinery, and an insurance fund exists to pay for them. Hundreds of bankruptcy resolutions a minute are not normal for this venue, though, and neither is a small, steady, one-directional draw on the fund. The pause landed seven minutes after the last of it. Velocity has said it will explain the bug. When it does, the explanation will describe code that nobody outside can read.

What Velocity said it would publish, and when

Velocity’s documentation lives in a public GitHub repository, so its history is public too. The admin keys page has carried the same closing paragraph since at least 2 September:

“The Velocity program is not open source yet. It will be published once the post-fork audit report is final. See Audits for the current review status.”

On 9 September a commit titled “add audit report” updated the Audits page. It says OtterSec reviewed the program between 19 June and 20 July 2026 and “issued the final report on September 3rd, 2026”: 154 findings, none Critical, 41 High, 109 Medium, one Low and three Informational, with the 382-page PDF attached. Since 9 September, then, the documentation has said the report is final in one place and promised source on finality in another. Both sentences are still live. The source has not appeared.

On 3 November a commit titled “pause bug bounty payouts during audit” added a banner to the bounty page: “Bounties are paused while an audit is in progress. No bounties will be paid until the audit is complete.” Its exclusions already ruled out findings that overlap “an in-progress or completed audit”. That commit landed at 06:20 UTC. Two hours and forty minutes earlier, at 03:40 UTC, the program had received its most recent upgrade.

Line those dates up against what is actually deployed and you get this:

Date (UTC) What happened Source anyone outside can read
1 Apr 2026 Drift hacked, about $295M lost Drift v2.162.0 tagged that day
19 Jun to 20 Jul OtterSec audit window Last code commit on master: 23 June
2 Jul Program deployed, authority handed to a Squads multisig, first upgrade None for the new program
8 Jul Upgrade 2; repository last pushed the same evening Repository since archived
11 Jul to 29 Jul Upgrades 3 to 6 (22 and 29 July fall after the audit window closes) None
27 Aug, 3 Sep, 7 Sep Upgrades 7 to 9; the final audit report is dated 3 Sep None
29 Sep, 3 Nov Upgrades 10 and 11 None
25 Nov, 03:20 Exchange paused None

The repository Velocity calls its fork origin is the same repository. github.com/drift-labs/protocol-v2 now redirects to velocity-exchange/protocol-v2, which is archived and whose interface file declares itself Drift v2.162.0. The interface file in Velocity’s current npm SDK, published 19 November, declares itself v2.169.0. I diffed the two. The deployed interface has 246 instructions, and 35 of them appear nowhere in the public code. Among them are update_pause_admin, update_warm_admin, update_hot_admin, trip_equity_floor_breaker, update_solvency_status, update_spot_market_withdraw_circuit_breaker, and two instructions that withdraw protocol fees. Another 38 instructions that are in the public code are gone, including the whole spot order book and the admin withdrawal from the insurance fund.

Finally, OtterSec runs a public registry that matches a deployed Solana program to a reproducible build from a named commit. Queried this morning for Velocity’s program ID, it returns "is_verified": false, “On chain program not verified”, with no repository and no commit. That is not a judgement on OtterSec’s audit. It means nobody has ever claimed, in the one place built for the claim, that the bytes running on Solana came from any particular source.

The safety page describes code you cannot see

Velocity’s admin keys page is one of the better documents of its kind. It argues, correctly, that one admin key fails in two directions: every routine operation carries full authority, and the safety controls end up as slow as the most dangerous change. So it splits authority into cold, warm and hot tiers, plus a separate pause key, and the chain bears that out. I decoded the three Squads multisigs involved:

Role Multisig Threshold Timelock
Cold admin and program upgrade authority 7qipzLR9j1JcvdxE1XJEFgvoyFmgBpgw5hMdHBMPcJtM 4 of 5 voters 1 hour
Warm admin (routine parameters) 8QCtNg1u2D4rQsgdX7NmN2BVUGDd8e7EJvSff784utZ8 2 of 4 voters 24 hours
Pause admin 4c2o37X9tamF4BdTag7s7SZt3a61qcr8aeg3iMVnjsN6 2 of 5 voters None

That is better governance than most of the industry runs. Here is the problem. The page’s central safety claim is that the pause key “can only add pauses, never remove them”, and the page says this “is enforced onchain: when the pause key writes a pause bitmask, the check requires that every bit already set stays set”. That check, if it exists, lives inside update_exchange_status and its relatives in a program whose source has never been published. The tier system itself, cold_admin, warm_admin, pause_admin and the ten hot roles, only appears in the npm interface, not in any public code. The interface tells you the fields exist. It cannot tell you what checks them. An interface is a menu. It is not the recipe.

Then look at the timelocks. A routine parameter change through the warm tier waits 24 hours. Replacing the entire program through the cold tier waits one. That is a defensible design: a fix has to ship fast. But it means the most consequential change the system can make comes with an hour’s notice, and with a closed binary, that hour shows you a new program is coming without showing you what is in it. A timelock on a diff nobody can read is a countdown, not a review window. Today’s fix will arrive that way, and so did the last eleven upgrades.

Why I care about this more than the $14,300

This series has spent a hundred and nine instalments on one idea: a fairness claim is only as good as the part of it a stranger can check without asking. Velocity’s statement this morning has three parts. Two can be checked and one cannot.

“We have paused.” Checkable, and I checked it. One state byte, one signed transaction, one multisig with a published threshold, and failed transactions afterwards.

“User deposits are safe.” Checkable for the deposit vaults, and they are intact. Not checkable for user balances inside the program, because those are numbers in program accounts, written by program logic. A token vault can stay full while the ledger that says who owns it changes. That is exactly what bankruptcy resolution does by design. An insurance fund that pays down a bankrupt account moves real tokens, which is why I could measure it. A loss socialised across other traders’ positions moves none.

“Every High finding is fixed in the deployed code.” This one is on the Audits page, not in today’s post, and it is the one that matters. It is a claim about the relationship between a PDF and a binary. Nobody outside Velocity and OtterSec holds both. With seven upgrades since the audit window closed, it is now a claim about code the auditors reviewed as of some later date we have not been told. I am not suggesting it is false. I am saying there is no procedure by which you or I could find out.

That is the difference from what we covered when Polygon patched flaws it could not tell anyone about. Polygon’s silence was a window with an end date: fixes shipped first, the source and the disclosure followed, and afterwards anyone could check the whole sequence. Velocity’s window has no end date. The condition it set itself was met on 3 September, and a new audit has been running since 3 November. Each new audit is a reasonable thing to commission. Each one is also a reason not to publish yet.

It is also different from the Coldcard flaw that five years of audits missed. There, the code was public and the reviewers checked that the right random number generator existed rather than that it was called. That was a failure of looking. Here, nobody outside can even attempt the looking. And it is a separate question from what a pause button can reach or who decides to press it. Velocity’s button reached everything and was pressed within minutes. The question is what it was pressed on.

The same standard, applied to us

A provably fair draw is a narrower promise than an exchange, which is why it can be a stronger one. When a Satoshie raffle or coinflip settles, the randomness comes from Chainlink VRF, with a proof that is verified on chain before the number reaches the game, and the payout is a state change anyone can replay. You do not need to trust our statement about the outcome, because the outcome carries its own evidence.

That only holds if the contract doing the verifying is the contract you think it is, which means the standard I am applying to Velocity applies to us too. In practice:

  • Source for a game contract should be verified, as an exact match, before it takes a single entry. Afterwards is too late. On Base that means a full match on Sourcify or the block explorer, so the bytes and the code are tied together by someone other than us.
  • Any upgrade path should be public, slow, and readable. If a contract can be replaced, the replacement should be verified before it goes live, not promised after.
  • “Funds are safe” should be a link, not a sentence. A prize pool is a balance on an address. Print the address.

The honest part: this blog has written a lot about other people’s contracts and has never printed our own contract addresses next to a verification match. At our scale it is the same gap, and it is the one I would point at first if I were reading this from the outside. Hold us to the list above.

What I am not claiming

  • Closed source is not proof of bad faith. Plenty of serious trading venues on and off chain run closed code. Velocity paid for a long audit, published the full 382-page report, and wrote an unusually candid admin keys page. Several of those choices are better than the industry norm.
  • Open source is not proof of safety. Coldcard’s firmware was public for years and its flaw still survived review. Publishing code makes checking possible. It does not make it happen.
  • I have not identified the bug. The bankruptcy burst is the most anomalous thing on chain in the hours before the pause, and I have measured it. I have not established that it is what Velocity paused for, or that anyone took money they were not entitled to. Bankruptcy resolution moving money to liquidators is the protocol working as designed. Whether it worked as intended is the question only the source can answer.
  • The sample is a sample. 200 of 17,524 insurance fund transactions, drawn at random. The vault balances at either end of the window are exact. The transaction mix is an estimate, and the dollar total uses this morning’s prices.
  • The npm interface is Velocity’s own description of its program, not proof of its contents. It is the best public evidence of what changed, and it is consistent with the on-chain state layout, which decodes cleanly against it. It still names functions. It does not show their logic.

Three questions worth asking any protocol that just paused

  1. Which commit is running? Not “the audited code”. A hash, and a verified build that ties it to the program on chain. If no such build exists, the audit describes a codebase, not the deployment.
  2. Where can I read the fix before it ships? A one-hour timelock is only a safeguard if the hour is long enough to read something. Ask whether the diff will be public before the upgrade executes or after.
  3. What did you promise to publish, and has the condition been met? Velocity’s was met on 3 September. Asking is free, and the answer tells you more than a deposits-are-safe post does.

Velocity did the hard part of incident response well this morning. It noticed fast, paused in one transaction through a multisig built for exactly that, and the deposit vault is intact. The pause I could verify in a few RPC calls. Everything about why it was needed, what the bankruptcy storm did inside the ledger, and what tomorrow’s upgrade will change lives in a program nobody outside has read. Velocity named the day it would let people read it. That day was 3 September. A fair system is one where the condition for checking is already met, which is the standard we try to build to and the one I am asking you to hold us to.

Data note: all on-chain figures come from public Solana mainnet RPC (api.mainnet-beta.solana.com), queried on 25 November 2026 between 07:30 and 09:30 UTC. Account layouts were decoded with the interface file in @velocity-exchange/sdk 0.27.0 from npm, and the State account’s size matched the decoded layout exactly. Program upgrade history comes from every transaction touching the ProgramData account HkRf36jvUB32dnHjHqpMnPcKJhUP2TUKJTH7RDTifJm7 (15 in total: one deploy, two program-metadata writes, one authority transfer and eleven upgrades). Multisig thresholds and timelocks come from the Squads v4 account data. Documentation history comes from the public velocity-exchange/velocity-docs repository. Verification status comes from verify.osec.io. USD values use CoinGecko spot prices at about 08:30 UTC: SOL $68.23, ETH $1,650.57, BTC $59,266, USDT $0.9989.

📷 Photo by Turquo Cabbit on Unsplash

Valentina Ní Críonna

Author Valentina Ní Críonna

More posts by Valentina Ní Críonna