Is dYdX Safe in 2026? A Security Analysis

TL;DR verdict

dYdX is a relatively low-risk perpetuals platform, with no smart-contract exploit and no loss of user funds since launching in 2017. It is not entirely incident-free, though: in November 2023 a targeted market-manipulation attack against the v3 YFI market drained roughly $9M (about 40%) from the v3 insurance fund, though user balances were protected. Two reputable firms — Informal Systems and Bware Labs — have audited the v4 code. While the migration to a standalone Cosmos appchain (v4) introduced new infrastructure dependencies, the on-chain settlement logic and economic security model remain battle-tested.

Audit history

The dYdX v4 codebase has been reviewed by Informal Systems (Cosmos SDK specialists) and Bware Labs. No public audit reports detail findings counts, but both firms are widely employed across the Cosmos ecosystem. Earlier StarkEx-era versions were subject to additional reviews; however, those contracts are no longer in scope following the v4 migration. The dYdX DAO coordinates ongoing security budget allocations via governance.

Incidents and exploits

dYdX has never experienced a smart-contract exploit or a loss of user funds through a security breach, across both its StarkEx (v1–v3) and Cosmos (v4) iterations. There was one notable incident: in November 2023, an attacker built leveraged long positions on dYdX v3 and then aggressively bought YFI (and SUSHI) in spot markets, spiking YFI open interest from ~$0.8M to ~$67M before the price collapsed. The resulting liquidations left the protocol short, and roughly $9M — about 40% of the v3 insurance fund — was consumed to cover the losses (about $13.5M remained). dYdX's founder characterized it as a targeted market-manipulation attack. No user funds were lost, but the episode shows perpetual venues remain exposed to oracle/market-manipulation attacks even without a code vulnerability.

Smart contract risks

dYdX v4 runs on a Cosmos SDK chain secured by a Tendermint validator set. The order book is matched off-chain by validators, then settled on-chain; this architecture relies on validator honesty for correct execution. Smart contracts govern collateral management, liquidations, and fee distribution. All code is open source, and protocol upgrades require governance approval by DYDX stakers. While no single point of failure exists in the settlement logic, a majority validator collusion could censor or reorder transactions—though any fraud would be provable on-chain.

Operational and counterparty risks

The dYdX DAO manages treasury and protocol parameters through token-weighted voting. The founding team remains publicly known, and exchanges such as Binance and Coinbase list the DYDX token, adding implicit legitimacy pressure. Regulatory risk is moderate: as a derivatives platform with permissionless access, it may face scrutiny in jurisdictions with strict securities laws. The protocol does not maintain a traditional insurance fund; user funds are safeguarded by over-collateralization and automated liquidations. Key external dependencies include the Cosmos SDK (maintained by Interchain Foundation) and the IBC relay infrastructure for cross-chain deposits.

How to use it more safely

Verdict

dYdX earns a safety score of 7.5/10, reflecting its decade-long operational history, absence of any smart-contract exploit or user-fund loss, and professional audit coverage — tempered by the November 2023 market-manipulation attack that drained ~$9M from the v3 insurance fund. The off-chain order matching model introduces a unique trust assumption, but economic incentives and on-chain verifiability make sustained malfeasance detectable and expensive. For traders comfortable with the validator model, dYdX remains one of the stronger security profiles in the decentralized derivatives sector.

DeFi Intel publishes editorial research, not financial advice. Smart contract risk is never zero. Do your own research and consider position sizing accordingly.

Frequently asked questions

Has dYdX ever been hacked?

No smart-contract exploit and no loss of user funds. But in November 2023 a targeted attack manipulated the YFI/SUSHI markets on dYdX v3, draining roughly $9M (about 40%) from the v3 insurance fund. User balances were unaffected.

Who audits dYdX?

The v4 codebase has been audited by Informal Systems and Bware Labs. Both are respected firms with deep Cosmos SDK expertise.

What are the main risks of using dYdX?

The primary risk is validator collusion in the off-chain order matching layer. Additionally, smart contract bugs, governance attacks, and regulatory action are generic DeFi risks.

Is dYdX's code open source?

Yes, all dYdX chain code and frontend repositories are publicly available and verifiable.

Sources