Safety

Security & audits

Audit status, roles and trust assumptions, the threat model, known limitations and test coverage of the contracts (from contracts/SECURITY.md).

Last updated 3 min readv1.0

#Audit status

ItemStatus
Independent audit of src/ (scheduler, factory, Pulse vault, index, StrategyBase, DynamicFeeAMM, BinaryMarket, libraries, utils)Not yet completed
Public audit reportNone published
Bug bountyNone announced
Unit, lifecycle, fuzz and invariant tests (Foundry)Done: 89 tests passing
Mainnet deployment2026-12-01 (addresses on Deployment status); first dawn 2026-12-03 12:00 UTC
Owner and guardianBoth the deployer account at deployment; the timelock and multisig described below are the intended end state
Out of scope: mocks/, test/, script/, and the off-chain app and API.

#Roles and trust assumptions

RolePowersCannot
Owner (intended: timelock ≥ 48 h behind a multisig, two-step ownership)Templates and bounds; codehash allow-list; fee config for new strategies; economic config via one-period timelock; guardian; emergency-sunset; resolve pm-binary; Pulse budget capMove user funds; change live strategies' fee split; change dawn timing; mint LP shares
Guardian (intended: fast multisig)Pause proposals, votes, bids, swaps, deposits and buys; flag a pending proposal (slashes its bond to the PulseVault)Block exits; touch bids or LP funds
Strategy ownerMutate within bounds; agents; sunset; claim creator shareExceed bounds; withdraw LP funds
AgentAllowed selectors, ≤ 120 calls/hAnything else

#Threat model

ThreatMitigation
Reentrancy on HYPE transfersnonReentrant on every value-moving function, checks-effects-interactions, pull payments; tested with a re-entering receiver
Settle DoS / unbounded loops32 proposals per dawn (hard max 256), winners ≤ N, bidders never iterated; a failing deployment marks the winner Lost instead of reverting
Spam proposalsExact bond, per-proposer and per-dawn caps, on-chain bounds, guardian flag with slashing
Malicious template codeImplementations must match an allow-listed runtime codehash at registration and every deployment; EIP-1167 clones
Parameter abuse after launchMutations only via the factory, only allow-listed selectors, values re-checked against bounds
Runaway agentPer-agent selector allow-list and token-bucket rate limit; instant revoke
Pool draining via virtual liquiditySales never pay out more than the real quote reserve; MINIMUM_LIQUIDITY locked; k non-decreasing (fuzzed)
Single-swap price manipulationrangePct per-swap circuit breaker
Pulse over-emission or farmingEmission clamped to the budget; vault solvency invariant; escrow and lock addresses excluded from eligible supply
Admin key compromiseTimelocked owner, one-period config delay, two-step ownership

#Known limitations

  • No oracle. A pool opens at the author's initQuotePerHype; if it is off-market, arbitrageurs take value from the seed LPs immediately. Check the price before bidding.
  • Single-sided seed. Seed LPs start with HYPE plus a virtual quote reserve; impermanent loss applies as the price moves.
  • Votes are Sybil-cheap (one per address); their 1 HYPE weight is small relative to bids by design.
  • Unclaimed bidder LP earns no Pulse until settleBid is called (anyone can call it).
  • pm-binary resolution is trusted (factory owner); no sell-back; the LP fee share minted as complete sets nudges the price slightly towards 50%.
  • Live strategies keep their fee split; global config changes affect new strategies only.
  • Treasury push. A treasury that rejects HYPE blocks flushFees (creator claims and swaps are unaffected).
  • Fee-on-transfer or rebasing quote tokens are unsupported. Rounding dust stays in the escrow and vault. Metrics in OrbitIndex are self-reported and informational.
  • opt-vault, fee-curve and agent-rebal are interfaces only and not registered.
  • Elysium specifics (Orbit sequencer, 100 ms blocks, timestamp granularity, Cancun opcodes) have had little production exposure yet.

#Testing

  • Unit and integration tests for every contract, a full-dawn lifecycle test, access control, and edge cases: ties, empty dawns, cancelled bids, slashing, failed deployments, pause, reentrancy.
  • Fuzz (512 runs): AMM k monotonicity and solvency, no-profit round trips, liquidity round trips, Pulse emission bounds and monotonicity, expNeg monotonicity, market collateralisation.
  • Invariants (64 × 64): pool solvency, k never drops on a swap, vault solvency, minimum liquidity, fee bounds, scheduler solvency, bid accounting and winner bounds across random dawns.
  • Gas snapshot checked in CI (forge snapshot --check). See the gas table.

#App security

Signed httpOnly session cookies, origin checks on state-changing requests, hashed agent keys with per-key rate limits, a strict Content-Security-Policy, and no third-party calls from the browser.

Something unclear or wrong on this page? Report it.Updated Dec 1, 2026 · v1.0