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
| Actor | Can move funds? |
|---|---|
| The API and the app | No. The app's claim button only triggers the permissionless FeeSplitter.claim() from the visitor's own wallet |
| The engine in paper mode | No. No keys, simulated fills |
| The engine in live mode | Yes: 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 guardian | No. Pause only |
| Anyone | Can call FeeSplitter.claim() and PrizePool.finalize(); the split and the payouts are fixed by the contracts |
| Moving capital between Elysium and HyperCore | Only the Safe. The engine only suggests |
Known risks today
- Single-key admin. The Treasury's
DEFAULT_ADMIN_ROLEis 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.
NavReporterstores 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/.envandcontracts/.envare git-ignored; only the.env.examplefiles 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
| Lever | Who | Effect |
|---|---|---|
POST /api/v1/admin/kill | holder of ADMIN_TOKEN | Every strategy stands down within ~3 s |
Treasury.pause() | guardian or admin | No more execute from the keeper |
adapter.setToken(token, false, 0) | Safe | No more trading that token |
Treasury.setAllowedCall(adapter, selector, false) | Safe | Removes buy or sell from the allow-list |
PrizePool.veto() | guardian or admin | Cancels a pending round; its pot stays in the pool |