Skip to content
Parts

Parts for people who run onchain markets

Small parts for people who build and run onchain markets. Most came out of a failure we measured or reproduced, and each can be used on its own.

  1. Before listing an asset

    Failure it came fromA Token-2022 issuer's permanent delegate moving 1 raw unit out of a lending reserve's vault halts the reserve for everyone (reported upstream as Kamino-Finance/klend#95).

    issuer-powers

    Read what a mint's issuer can do to holders (delegate, freeze, pause, hook…) and grade it before a venue lists it; diffPowers catches drift in CI.

    issuer-drill

    Runs those powers against Kamino's live lending binaries in LiteSVM.

  2. Launching a market

    Failure it came fromA new HIP-3 listing starts with a thin book that invites pushes and bad updates.

    Day One Fabrknt Labs

    A counterparty pool the market's deployer runs while the book is thin. Unaudited, testnet only; source to be published.

  3. Reading prices

    Failure it came fromPapertrade (2026-10-10): a $131K book push took $1.41M ($1.28M net); in the replay, settling at the oracle cut the take only 15%.

    HL Price Guard

    Solidity checks, a jump latch and per-minute caps for HyperEVM contracts that read Hyperliquid prices.

  4. Running a market

    Failure it came fromOperators' oracles and limits are hard to check from outside.

    HIP-3 Ops

    Self-hosted operations for a HIP-3 market.

    HIP-3 Record

    What operators did, from public data.

  5. Changing program code

    Failure it came fromAn account check that was written down and a later change removes fails no test.

    solinv

    Flags a pull request that drops an account check (Anchor fails, native/Pinocchio warns), as a two-line GitHub Action.

  6. Building the engine

    Failure it came from—

    rdk

    Perp DEX building blocks in Rust (order book, oracle, funding, margin, settlement), one crate each.

    openhl-solana

    The same parts for Solana programs, no_std.

    princeps-solana

    Compliance-gated Solana blocks (KYC hook, vault, DvP, repo).

    veil

    Privacy parts (box encryption, Shamir, sealed orders).

  7. Worked examples on HyperEVM

    Failure it came from—

    hyperevm-lend, hyperevm-perp, hyperevm-amm

    Small markets on HyperEVM that read HyperCore prices (the amm and perp also trade on HyperCore through CoreWriter), with testnet measurements. Not audited.

Learn how they are built