The engine

The engine loop
Four steps run in a loop:
- Quote: bid and ask around mid on HyperCore, placed through ElysiumCoreWriter.
- Fill: a trader hits the bid or the ask; the engine buys low or sells high.
- Capture: a completed round trip realizes the spread as profit in HYPE.
- Burn: above 5 HYPE, the spread buys SPRUE and those tokens are destroyed. Then the loop starts again.
The loop never touches the engine's inventory: only realized spread leaves it, and only to be burned.
Engine rules
The engine follows five fixed rules. In the design, they are enforced by the contract, not by a person. The engine is not live.
| Rule | Launch value | What it does |
|---|---|---|
| Quote width | 0.30% total spread around mid | Bid at mid minus 0.15%, ask at mid plus 0.15% |
| Refresh | Every block where mid moves more than 0.05% | Quotes follow the market without spamming orders |
| Inventory skew | Up to 50% wider on the heavy side | If the engine holds too much SPRUE it sells more eagerly, and the reverse for HYPE |
| Volatility pause | Quotes pulled if mid moves more than 3% in 60 seconds | Protects the treasury from being run over in a fast move |
| Burn trigger | Realized spread above 5 HYPE | Market buys SPRUE with the realized spread and burns it |
Only realized spread is burned. The inventory the engine needs to keep quoting (its SPRUE and HYPE balances) is never burned, so the engine can keep running.
Realized spread is counted per round trip: when the engine buys at its bid and later sells at its ask, the difference is profit. Unrealized gains on inventory are not counted.