Hyperliquid Smart Contract Design and Security Overview
Most chains run everything as smart contracts. Hyperliquid doesn't. Its exchange engine is built into the protocol, and ordinary contracts run beside it. That split is the heart of Hyperliquid smart contract design, and it changes what "secure" means for users and builders.
Quick answer: Hyperliquid is a layer-one chain with two execution layers. HyperCore runs order books and margin natively, while Hyperliquid HyperEVM runs every Hyperliquid smart contract that developers deploy, using EVM-compatible code. A system contract called CoreWriter lets contracts send actions to HyperCore, but those actions are not atomic with the EVM transaction.
The docs say Hyperliquid's state has two parts under one consensus layer, HyperBFT, a variant of HotStuff. Readers can start with the HyperCore overview.
HyperCore: onchain perpetual and spot order books, plus margin and matching state
HyperEVM: a general-purpose environment for each Hyperliquid smart contract, using HYPE for gas
Bridge: the route for moving USDC in and out
Status labels used below:
Live: described in official documentation
Verify: if documentation or research differs, check before relying on it
Reported: stated by secondary sources
Builders who want to see what already runs on HyperEVM can browse the Hyperliquid DeFi ecosystem.
Nobody deploys HyperCore. It is a protocol code, unlike a typical Hyperliquid smart contract. Orders, cancels, trades, and liquidations are protocol functions.
Security researchers say this means bugs in third-party HyperEVM contracts shouldn't directly break the matching engine, though funds inside those apps can still be lost.
Developers who trade or build bots usually reach HyperCore through its API, and this Hyperliquid API guide covers setup and endpoints.
A Hyperliquid smart contract has two lanes into HyperCore, described in the system contract documentation:
Reading: precompile addresses return HyperCore data, such as positions, balances, and oracle prices, matching state when the EVM block is built
Writing: the CoreWriter contract emits an action that HyperCore processes later
Order actions and vault transfers sent through CoreWriter are delayed onchain for a few seconds. The docs have also labeled CoreWriter testnet only in one version, so builders should verify current availability.
Many newcomers miss this part of Hyperliquid smart contract design. An EVM transaction can finish while its HyperCore-action is still waiting in a queue. The action can then fail.
The interaction timings page gives one case: the account must already exist on HyperCore, or the action is rejected.
QuillAudits describes a vault that accepts a deposit, then sends a hedge order that fails silently. Its suggested pattern keeps deposits pending until a later read confirms success.
Layer | Who writes the code? | Main risk |
HyperBFT | Protocol team | Validator concentration, downtime |
HyperCore | Protocol team | Oracle and liquidity shocks |
HyperEVM | Any developer | Contract bugs, failed cross-layer actions |
Bridge | Protocol team | Signer and contract risk |
The bridge documentation describes these controls:
Deposits are credited once more than 2/3 of staking power signs
Withdrawals need 2/3 of stake-weighted signatures
A dispute period lets the bridge be locked after a suspicious withdrawal
Unlocking requires cold wallet signatures from 2/3 of the validator set
Withdrawals also carry a small USDC gas fee, and the Hyperliquid fee structure explains trading costs more broadly. Strong controls still rest on the validator set. If a supermajority acts badly, the design has limits.
The audits page says Zellic audited the bridge contract, and the bridge docs add that the staking logic was covered too.
That is not an audit of HyperCore, HyperEVM, any third-party Hyperliquid smart contract, or other third-party apps. An audit shows what reviewers checked at one point in time, not that code is free of bugs.
Claim | Source | Limitation |
About 200,000 orders per second | Official docs | A documented figure, not a promise |
2/3 stake-weighted bridge signing | Bridge docs | Depends on validator behavior |
Bridge audited by Zellic | Audits page | Scope is the bridge only |
Bridge freezes and downtime seen | QuillAudits | Incident dates not specified |
Oracle errors and liquidity shocks can trigger liquidations
Failed or delayed CoreWriter actions can leave the contract state out of sync
Unaudited HyperEVM apps and any unreviewed Hyperliquid smart contracts can be exploited
Downtime can block withdrawals
Before using an app or any Hyperliquid smart contract, readers should confirm the contract address from the official site, read the audit scope, and start small.
A small test doesn't remove risk. Traders new to leverage can also review these common Hyperliquid trading mistakes.
Good Hyperliquid smart contract design separates a fast native exchange from a flexible contract layer.
That helps contain app bugs, but it also gives every Hyperliquid smart contract builder a new job: handling delayed, non-atomic cross-layer actions.
For a wider view of the platform, there's this Hyperliquid review for 2026. For deeper technical reading, the QuillAudits analysis and the official docs are good places to continue.
Disclaimer: This article provides general educational information about Hyperliquid. It isn't financial, investment, legal, or tax advice and doesn't recommend buying, selling, trading, or holding any asset. Derivatives and crypto transactions carry high risk and losses are possible. Readers should verify important claims and review audits.