Reference

Security & risks

Who can move money, what is unaudited, and how keys are handled.

Warning

The contracts are unaudited and market making can lose money. Nothing on this site is investment advice or a promise of returns.

Who can move money

ActorCan move funds?
The API and the appNo. The app's claim button only triggers the permissionless FeeSplitter.claim() from the visitor's own wallet
The engine in paper modeNo. No keys, simulated fills
The engine in live modeYes: HyperCore orders through the API wallet; Treasury swaps through execute, within the on-chain limits; FeeSplitter.claim()
The Treasury admin (an ordinary wallet today)Yes: can withdraw anything
The guardianNo. Pause only
AnyoneCan call FeeSplitter.claim() and PrizePool.finalize(); the split and the payouts are fixed by the contracts
Moving capital between Elysium and HyperCoreOnly the Safe. The engine only suggests

Known risks today

  • Single-key admin. The Treasury's DEFAULT_ADMIN_ROLE is one ordinary wallet. It can withdraw any asset, change the allow-list and the limits, approve spenders and unpause. Moving it to a Safe is step 1 of going live.
  • Allow-list checks the function, not the arguments. Without the swap adapter, a stolen keeper key could redirect a router swap. With the adapter, output always goes to the Treasury, but a stolen key could still trade allow-listed tokens at a bad price (slippage, MEV), up to the Treasury's HYPE limits and the adapter's maxSellPerCall.
  • NAV reports are self-declared. NavReporter stores what the engine reports; values are not verified on chain (and the engine does not post them yet).
  • Hyperliquid API wallet. It signs orders for the protocol's account and is documented as able to trade but not withdraw. Check Hyperliquid's current rules before relying on that.
  • Market risk. Strategies can lose money. Risk controls limit losses; they do not prevent them.

Keys

  • Paper mode needs no keys.
  • Live secrets (OPERATOR_KEY, HL_AGENT_KEY) go in the host's secret store. .env, .env.local, engine/.env and contracts/.env are git-ignored; only the .env.example files are committed.
  • Contracts are deployed with a throwaway deployer key; ownership goes straight to the Safe in the constructors, so the deployer keeps no rights. A mainnet deploy requires CONFIRM_MAINNET_DEPLOY=yes.

The API

Read-only except the two admin calls, which only write flags and an event. It holds no keys and sends no transactions. Admin calls are disabled unless ADMIN_TOKEN (24+ characters) is set; the token is compared in constant time. There is no rate limiting beyond edge caching, and CORS is open (*) because every read is public.

Pausing in an emergency

LeverWhoEffect
POST /api/v1/admin/killholder of ADMIN_TOKENEvery strategy stands down within ~3 s
Treasury.pause()guardian or adminNo more execute from the keeper
adapter.setToken(token, false, 0)SafeNo more trading that token
Treasury.setAllowedCall(adapter, selector, false)SafeRemoves buy or sell from the allow-list
PrizePool.veto()guardian or adminCancels a pending round; its pot stays in the pool