DEV Community

PandaSecurity
PandaSecurity

Posted on Originally published at panda-security.xyz

VelocityDEX Insurance Fund Bug Drains $12.3K

Originally published at VelocityDEX Insurance Fund Bug Drains $12.3K

On 25 November 2026, Velocity (@VelocityDEX), a Solana perpetual futures exchange rebuilt from Drift Protocol, halted trading after identifying a bug. At 03:31:45 UTC the project posted that no transactions were being processed and that user deposits were safe. At 13:01:10 UTC on 26 November it said trading had resumed, that no user funds were lost, and that no losses were passed on to depositors or traders. The official root-cause statement was a gap in the insurance fund guardrails, which allowed the fund to be drawn on outside its intended parameters. New account creation and new deposits remain disabled.

Two independent on-chain write-ups, both published before the official resume post, describe a sharp draw on the USDT insurance fund in the hour before the pause. Researcher banban (@banbannard) reported that the fund fell from about $183.7k at 02:30 UTC to about $171.4k by 03:13 UTC, a loss of about $12.3k over 43 minutes. A 25 November analysis by Valentina Ní Críonna on satosh.ie, based on Solana RPC reads, put the same vault at 183,712.30 USDT at the start of its window and 171,413.17 immediately before the pause — a decline of 12,299.13 USDT, or about $12,285 at a one-to-one peg. That analysis also reported smaller draws on the SOL, wETH and wBTC insurance-fund vaults, bringing its total estimate to about $14,300. Velocity has not published an official loss figure.

This is a defensive account of a public incident, not a reconstruction of how to repeat it. The deployed program is not open source. We independently derived the program's main PDAs and confirmed current vault ownership and balances. We could not re-query the 25 November historical token balances from a public non-archive RPC, so the drawdown figures below are attributed to those two contemporaneous analyses, which agree on the USDT vault to the nearest dollar.

What Happened

Velocity is a perpetual futures venue on Solana. Official documentation identifies the deployed program as vELoC1audYbSYVRXn1vPaV8Axoa9oU6BYmNGZZBDZ1P. We derived the global State account from the seed velocity_state. The address is 2etx5NvPNxeMZ7EfHE6GjJfW2imRYEUANehNS1WB4CVW, which matches the account satosh.ie used, and the account is owned by that program.

Velocity's docs describe a separate, 100% staker-owned insurance fund for each spot market used as collateral. When liquidation cannot cover a position, the remaining shortfall is bad debt, and the fund is supposed to absorb it — within configured limits — before any residual is socialized onto other traders. Perpetuals are quoted and settled in the quote asset, so perp bad debt draws on the USDT fund on mainnet.

We derived the USDT insurance-fund vault as the PDA with seeds insurance_fund_vault and market index 0: 39jQjaMjWez2YNhjvhS3YWqjVD3bogGf1pFfce49fTU1. It is a USDT token account (mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB) whose owner is the velocity_signer PDA FchXiT9JgMDis6CFLjz9uG5mQYkmDtHqiWtBPEYUabaK. The main USDT deposit vault, derived as spot_market_vault with market index 0, is G9NKtiafHiCTArgVouXx6XS7Jb3DqigrT6S6BgSDLrvz, the same mint and signer.

According to satosh.ie, the exchange was paused on-chain at 03:20:16 UTC on 25 November 2026 in slot 473,593,416, with exchange_status moving from 0 to 255 through a two-of-five pause-admin Squads multisig. The official pause post followed eleven minutes later. We have not independently retrieved that pause transaction from a public RPC.

What On-Chain Sources Reported

Banban's thread is the most specific public description of the activity pattern. The researcher wrote that one wallet, abbreviated 36ux…khpr, had funded 203 of 300 wallets two days before the pause, and that 150 fixed pairs then ran one loop more than 11,000 times. In each pair, wallet A only ever liquidated wallet B. After a liquidation left B still short, the insurance fund paid the gap, A withdrew, and part of the proceeds went back to B for another round. Banban put the take at about $1 per round and the fund path at $183.7k to $171.4k, with the main vault still holding about $2.02 million. A follow-up post attributed the broken step to liquidation accounting that left B's account in debt after A had already been paid from B's deposit. We are summarizing that public account, not publishing a procedure.

The satosh.ie analysis did not name a funding wallet or a pair count. It reported 17,524 successful transactions against the USDT insurance-fund vault between 02:01 UTC and the pause, against a normal rate of a few per hour. In a random sample of 200, every transaction was resolving a bankruptcy: 191 reduced the fund, and none added to it. The median payout was 0.72 USDT, from 75 signing wallets. The main USDT deposit vault, in that write-up, went from 2,020,507.50 at 02:30 UTC to 2,021,363.35 after the pause — a slight rise, not a drain.

Satosh.ie was explicit, before Velocity's resume post, that a burst of bankruptcy resolutions is not by itself proof of the bug the team paused for. An insurance fund exists to pay shortfalls. The later official statement is consistent with the fund being the account that moved. It is not a confirmation of any researcher's loop description.

Independently, as of 26 November 2026 at 23:17 UTC, we read the live USDT deposit vault at 2,016,268.475594 USDT, still about $2.02 million, consistent with the official statement that user deposits were not taken. The live USDT insurance-fund vault held 13,601.684381 USDT, below the post-incident 171,413.17 USDT reported on 25 November. We have not attributed that later decline to a second exploit: after trading resumed, ordinary fund flows and staker withdrawals are both possible, and we did not reconstruct the post-resume history.

Official Bug Description and What Cannot Be Checked

Velocity's 26 November post is the only official technical statement so far: a gap in insurance-fund guardrails allowed the fund to be drawn on outside its intended parameters, and a fix was reviewed and deployed. The project has not published a post-mortem with a loss figure, a patched predicate, or a list of affected markets.

That limit matters because the program is still closed. Velocity's admin-keys documentation, which we fetched on 26 November 2026, still says the program "is not open source yet" and "will be published once the post-fork audit report is final." We can derive vault addresses and read balances. We cannot inspect the guardrail that was supposed to stop this draw.

The pause itself looks like a useful control. Official docs say the pause key has no timelock, can only add pauses, and cannot unpause. User-deposit vaults remaining intact is consistent with that design; the loss sat on the insurance fund, whose stakers are also users.

A liquidation engine that can leave bad debt, and a fund that pays it, is a known safety boundary. In the MORE Markets incident, a liquidation path cleared collateral without clearing the matching debt. Here the public reports describe the opposite shape: debt was recognized, and the fund paid it under looser conditions than the guardrails were supposed to allow.

Loss Figures

Public numbers measure slightly different windows and vaults, and they are consistent once that is taken into account:

Framing Figure Source
USDT insurance fund before the draw ~$183.7k at 02:30 UTC; 183,712.30 USDT at the start of the satosh.ie window banban; satosh.ie RPC reads
USDT insurance fund after the draw ~$171.4k by 03:13 UTC; 171,413.17 USDT immediately before the pause banban; satosh.ie RPC reads
USDT decline about $12.3k / 12,299.13 USDT banban; satosh.ie
Additional SOL, wETH and wBTC insurance-fund draws about $812, $820 and $406, for a four-vault total of about $14,300 satosh.ie only; not independently re-read by us
Main USDT deposit vault around the pause 2,020,507.50 at 02:30 UTC to 2,021,363.35 after the pause satosh.ie
Main USDT deposit vault at our check 2,016,268.475594 USDT at 23:17 UTC on 26 November 2026 our RPC read of the derived vault
Official loss figure none published Velocity (25–26 November posts)

Banban's 43-minute window (02:30 to 03:13 UTC) and satosh.ie's longer window (02:01 UTC through the 03:20:16 UTC pause) describe the same USDT move to within a dollar. Crypto Briefing later reported the same rounded path; those figures match banban's thread and should not be counted as a third independent measurement.

Aftermath and Scope

Trading resumed on 26 November for existing users, including opening new positions. New accounts and new deposits stay disabled. At the time of writing, Velocity had not published a detailed incident report or a timeline for publishing the program source.

This incident is not the April 2026 Drift exploit. Crypto Briefing, banban and satosh.ie all note that Velocity is the rebranded continuation of Drift Protocol, which suffered a separate, much larger loss of about $295 million in April. The figures in this article are the November insurance-fund draw only.

If you held a position, staked in an insurance fund, or still have funds on the venue, follow updates only from Velocity's own channels and treat unsolicited "refund" messages as phishing. "User deposits are safe" refers to the deposit vaults, not to insurance-fund stakers.

Lessons for Builders and Auditors

Treat insurance-fund guardrails as a first-class invariant. If a liquidation can create a shortfall that the fund must pay, testers need cases where the shortfall is small, repeatable and created by correlated accounts. A fund that pays only "real" bankruptcies can still be drained if the bankruptcy condition can be manufactured cheaply.

Do not equate "user deposits are safe" with "no user lost money." On a 100% staker-owned fund, the people who supplied the backstop are users. Official communications should separate deposit-vault balances from insurance-fund balances, and auditors should check both.

A working pause key is necessary and not sufficient. The documented pause design appears to have stopped further flow within minutes of the burst. It does not replace tests that would have rejected the loop before it ran for three-quarters of an hour.

Closed-source upgrades shrink what outside reviewers can verify. Address derivation, vault balances and official posts are still checkable. The patched predicate is not.

Build paired-account and self-liquidation scenarios into the review, not only honest liquidations of third-party accounts. Permissionless liquidation is a feature; combined with a loosely capped insurance payout, it is also a funding path. Our smart contract security checklist is a practical place to park review items for bankruptcy waterfalls and fund caps.

Key Addresses and Figures

Item Value
Chain Solana
Program vELoC1audYbSYVRXn1vPaV8Axoa9oU6BYmNGZZBDZ1P
State PDA (seed velocity_state) 2etx5NvPNxeMZ7EfHE6GjJfW2imRYEUANehNS1WB4CVW
Program signer PDA (seed velocity_signer) FchXiT9JgMDis6CFLjz9uG5mQYkmDtHqiWtBPEYUabaK
USDT mint Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
USDT insurance-fund vault (market index 0) 39jQjaMjWez2YNhjvhS3YWqjVD3bogGf1pFfce49fTU1
USDT deposit vault (market index 0) G9NKtiafHiCTArgVouXx6XS7Jb3DqigrT6S6BgSDLrvz
Official pause post 25 November 2026, 03:31:45 UTC
Official resume post 26 November 2026, 13:01:10 UTC
Reported on-chain pause (satosh.ie) 25 November 2026, 03:20:16 UTC, slot 473,593,416
Reported USDT insurance-fund decline 12,299.13 USDT (~$12,285)
Funding wallet cited by banban abbreviated only as 36ux…khpr; full address not independently confirmed here
Official loss figure none published

Sources

Closing Thoughts

Velocity did not lose this USDT because a deposit vault was broken open. It lost it, according to the project, because insurance-fund guardrails did not keep bankruptcy payouts inside their intended limits, and according to two independent on-chain write-ups because those payouts ran at a high rate for roughly three-quarters of an hour before a pause landed. The deposit vaults still holding about $2.02 million is good news for depositors and is not the whole story for insurance-fund stakers. If you are shipping a perpetual venue or any system with permissionless liquidation and a shared backstop, talk to our team or check our audit pricing to have liquidation accounting, bankruptcy waterfalls and fund caps reviewed before a burst of "successful" resolutions is the first production test of those checks.

Top comments (0)