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.
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;
diffPowerscatches drift in CI.issuer-drill
Runs those powers against Kamino's live lending binaries in LiteSVM.
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.
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.
Running a market
Failure it came fromOperators' oracles and limits are hard to check from outside.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.
Building the engine
Failure it came from—rdk
Perp DEX building blocks in Rust (order book, oracle, funding, margin, settlement), one crate each.
princeps-solana
Compliance-gated Solana blocks (KYC hook, vault, DvP, repo).
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.