Operations
Going live
Everything that must be true before the engine trades the protocol's real money.
Danger
Live mode trades real money. The contracts are unaudited and market making can lose money. Do not switch from this page alone: read engine/README.md and contracts/README.md too.
Checklist
- Move the Treasury admin to a Safe. Grant
DEFAULT_ADMIN_ROLEto the Safe, then renounce it from the current wallet (0xd4C6…CCC1). That role can withdraw anything. - Deploy the Phase 2 contracts (
contracts/, see Phase 2 contracts). The Safe then executes the transactions the script prints: allow-list the adapter'sbuyandsellon the Treasury,setToken(MOTION, true, maxSellPerCall)on the adapter,approveToken(MOTION, adapter, budget)on the Treasury. - Set up the keeper. Grant the keeper wallet
OPERATOR_ROLEon the Treasury and give it a little HYPE for the gas ofclaim(). - After MOTION launches:
FeeSplitter.setPoolId(poolId), and setMOTION_TOKENon both Render and Vercel. - Set up the HyperCore account. Create it (hold its keys like the Safe's), fund it through the bridge (Elysium canonical bridge → HyperEVM → HyperCore, about 24 hours), and approve an API wallet for the engine (
HL_AGENT_KEY). Check Hyperliquid's current rules on what an agent wallet may do before relying on it. - Run paper mode with the real token for a while.
- Switch:
EXECUTION_MODE=liveandCONFIRM_LIVE=yes, with the keys in the host's secret store. Start small: a lowMONTRA_MAX_TRADE_HYPEand modest allocations.
What the engine checks
It refuses to start in live mode without CONFIRM_LIVE=yes, OPERATOR_KEY, HL_ACCOUNT and HL_AGENT_KEY, and the Montra venue refuses to start without SWAP_ADAPTER_ADDRESS. On start it cancels any of its own orders left on the HyperCore account.
Known gaps to close
| Gap | Effect |
|---|---|
The engine never posts to NavReporter | No NAV is recorded on chain yet, even with the contract deployed |
| Positions are stored per market, not per market and strategy | If two strategies trade the same market (montra-mm and arb on MOTION-HYPE), P&L can be attributed to the wrong one |
The arbitrage's HyperCore leg books to a market (MOTION-USDC) that is not in the market list | Its position is dropped on restart, and in live mode its fills are not recorded |
| The engine resets its daily spend at midnight UTC; the Treasury uses a rolling 24 h window | The on-chain limit can refuse a trade the engine allowed |
| Strategy P&L subtracts pool fees that are already inside swap prices | Strategy P&L may understate Montra trades; NAV is not affected |