Dev log

The app: order builder, orders and the solver board
The order builder covers the five kinds of order: limit, stop, TWAP, basket and a condition on a HyperCore value. It shows the live v4 route the reference solver would take and what the receiver gets at the limit, net of the fee, before you sign.
Orders lists every order of a wallet with its fills, and cancels either off chain with one signature or on chain with invalidate. Solvers shows the board, the bonds and the exact calls to register and run one.
Builders gets a one-file SDK at /sdk/elyra.js, a keyless MCP server at /mcp, the public API and a skill.md for agents.

HyperCore condition feed with a challenge window
ElyraFeed carries the mid and the hourly funding of HYPE, BTC, ETH and SOL from Hyperliquid's info API to Elysium. The keeper posts on a 480 s heartbeat or on a 0.3 % move, checked every 10 s.
Each post waits 60 s in a challenge window where a guardian on a separate key can dispute it. A value older than 600 s is never used to open an order.
ElyraPoolOracle gives conditions on any Elysium v4 pool: a TWAP over the window the order chooses (up to an hour), with tick moves truncated per second.

Batch auctions every four seconds and the reference solver
The auction service collects signed orders, opens a batch every four seconds, scores every solution by the total surplus it gives traders and signs an Award for the winner. Only that solver can settle that exact solution, before its deadline.
The reference solver crosses opposite orders first, then routes the rest through Elysium's Uniswap v4 pools with the V4Quoter and the Universal Router, or directly on the PoolManager through the settlement's unlock callback.

Settlement contract, vault relayer and solver registry
ElyraSettlement checks every order in a batch: signature, cancellation, validity window, TWAP part, condition, remaining amount and the limit net of the fee. It pulls the sell amounts through ElyraVaultRelayer, runs the solver's interactions, pays every receiver and keeps nothing.
Users approve only the relayer, and only the settlement can call it, so no interaction can reach an allowance. The fee is 0.10 % of the bought amount with a hard cap of 0.30 % in code: 80 % to the solver that settled, 20 % to the protocol.
ElyraSolverRegistry holds solver bonds in HYPE. A won auction left unsettled is a strike; three strikes within 24 hours slash 10 % of the bond and eject the solver, in code.