Skip to content
Request a review
Selected markets from the xyz and km HIP-3 dexes
Hyperliquid public API ·
HL Price Guard

HL Price Guard: read Hyperliquid prices from HyperEVM, and refuse the bad ones

A Solidity library for any HyperEVM app that relies on HyperCore prices. It returns the oracle price. When other views of the market disagree with it by more than the bounds you set, it refuses the price.

HyperEVMSolidity libraryNot auditedOpen source · Apache-2.0
HYPERCORE · PRECOMPILES Oracle Mark Best bid / ask OUTSIDE HYPERLIQUID Pyth on HyperEVM independent reference HL Price Guard deviation checks · jump latch exposure cap per time window refused if views disagree Your HyperEVM app

HL Price Guard

What it does

01

Price read

Reads the oracle, mark and best bid/ask through the precompiles. It handles both index encodings they use (checked on mainnet).

02

Deviation checks

If the book or the mark is too far from the oracle, it rejects the oracle.

03

Independent reference

Checks against a price from outside Hyperliquid (Pyth on HyperEVM).

04

Jump latch

A jump between two reads trips it, and it stays tripped until the app re-arms it. Re-arm only after checking the price some other way.

05

Exposure cap

Caps how much can settle in a time window. The rolling window holds for any stretch of time you pick.

Request an Operator Readiness Review

For teams opening a HIP-3 market, or already running one.

Where it stops

It reads and checks prices, and caps exposure. That's all. Pools, liquidation and the UI belong to the apps that use it.

Versions are tagged. Pin a tag, and move to a new one on purpose.

Evidence

We rebuilt two incidents from public data. In one, a wallet moved ETH's mid on Hyperliquid and settled 500x positions against it (2026-10-10). In the other, a deployer's oracle fell 15.6% in one update (xyz:SKHX, 2026-07-27). In the first, the oracle moved with the push, so a bounds check wouldn't have caught it. In our replay, an exposure cap of $3.3M per minute cuts the take to an estimated $55K, below the $130,873 the push cost. (That assumes the incident's average edge, and pushes that cost what Papertrade's did. It's an estimate, not a bound.)

The SK Hynix replay in HIP-3 Record

Where it stands

  • Tested with forge. The precompiles are mocked at their real addresses, with mainnet values.
  • It hasn't been audited.
  • The source is public under Apache-2.0: github.com/fabrknt/hl-price-guard. Pin a tagged version.

Used in

Our own projects pin it by tag, just as an outside app would.

  • Day One · a launch pool for new HIP-3 listings. It uses the price checks, the jump latch and the rolling cap.
  • hyperevm-lend · a lending market. Borrowing and withdrawals go through the guarded read.
  • hyperevm-perp · a perp pool that settles through the guarded read.

Operator Readiness Review

For teams opening a HIP-3 market, or already running one. We check your setup against what has gone wrong for HIP-3 operators in the public record, and say what we could not check.