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

  1. Move the Treasury admin to a Safe. Grant DEFAULT_ADMIN_ROLE to the Safe, then renounce it from the current wallet (0xd4C6…CCC1). That role can withdraw anything.
  2. Deploy the Phase 2 contracts (contracts/, see Phase 2 contracts). The Safe then executes the transactions the script prints: allow-list the adapter's buy and sell on the Treasury, setToken(MOTION, true, maxSellPerCall) on the adapter, approveToken(MOTION, adapter, budget) on the Treasury.
  3. Set up the keeper. Grant the keeper wallet OPERATOR_ROLE on the Treasury and give it a little HYPE for the gas of claim().
  4. After MOTION launches: FeeSplitter.setPoolId(poolId), and set MOTION_TOKEN on both Render and Vercel.
  5. 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.
  6. Run paper mode with the real token for a while.
  7. Switch: EXECUTION_MODE=live and CONFIRM_LIVE=yes, with the keys in the host's secret store. Start small: a low MONTRA_MAX_TRADE_HYPE and 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

GapEffect
The engine never posts to NavReporterNo NAV is recorded on chain yet, even with the contract deployed
Positions are stored per market, not per market and strategyIf 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 listIts 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 windowThe on-chain limit can refuse a trade the engine allowed
Strategy P&L subtracts pool fees that are already inside swap pricesStrategy P&L may understate Montra trades; NAV is not affected