Security & audits
Audit status, roles and trust assumptions, the threat model, known limitations and test coverage of the contracts (from contracts/SECURITY.md).
#Audit status
| Item | Status |
|---|---|
Independent audit of src/ (scheduler, factory, Pulse vault, index, StrategyBase, DynamicFeeAMM, BinaryMarket, libraries, utils) | Not yet completed |
| Public audit report | None published |
| Bug bounty | None announced |
| Unit, lifecycle, fuzz and invariant tests (Foundry) | Done: 89 tests passing |
| Mainnet deployment | 2026-12-01 (addresses on Deployment status); first dawn 2026-12-03 12:00 UTC |
| Owner and guardian | Both the deployer account at deployment; the timelock and multisig described below are the intended end state |
mocks/, test/, script/, and the off-chain app and API.#Roles and trust assumptions
| Role | Powers | Cannot |
|---|---|---|
| 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 cap | Move 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 owner | Mutate within bounds; agents; sunset; claim creator share | Exceed bounds; withdraw LP funds |
| Agent | Allowed selectors, ≤ 120 calls/h | Anything else |
#Threat model
| Threat | Mitigation |
|---|---|
| Reentrancy on HYPE transfers | nonReentrant on every value-moving function, checks-effects-interactions, pull payments; tested with a re-entering receiver |
| Settle DoS / unbounded loops | 32 proposals per dawn (hard max 256), winners ≤ N, bidders never iterated; a failing deployment marks the winner Lost instead of reverting |
| Spam proposals | Exact bond, per-proposer and per-dawn caps, on-chain bounds, guardian flag with slashing |
| Malicious template code | Implementations must match an allow-listed runtime codehash at registration and every deployment; EIP-1167 clones |
| Parameter abuse after launch | Mutations only via the factory, only allow-listed selectors, values re-checked against bounds |
| Runaway agent | Per-agent selector allow-list and token-bucket rate limit; instant revoke |
| Pool draining via virtual liquidity | Sales never pay out more than the real quote reserve; MINIMUM_LIQUIDITY locked; k non-decreasing (fuzzed) |
| Single-swap price manipulation | rangePct per-swap circuit breaker |
| Pulse over-emission or farming | Emission clamped to the budget; vault solvency invariant; escrow and lock addresses excluded from eligible supply |
| Admin key compromise | Timelocked 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
settleBidis called (anyone can call it). pm-binaryresolution 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
OrbitIndexare self-reported and informational. opt-vault,fee-curveandagent-rebalare 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
kmonotonicity and solvency, no-profit round trips, liquidity round trips, Pulse emission bounds and monotonicity,expNegmonotonicity, market collateralisation. - Invariants (64 × 64): pool solvency,
knever 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