Security & risks
An honest list of what can go wrong.
Not audited
The Misthos contracts have not been audited. They are a tested reference implementation and are not deployed.
Known risks
- Precompile dependency. Misthos reads books through Elysium's HyperCore precompile. If it is late, changes, returns wrong data or stops, checks are wrong or impossible.
- Randomness limits. Check slots come from Elysium block hashes. Elysium has a single sequencer that produces those hashes, so in theory it could see slots first or influence them. Checks must be submitted within a few blocks of their slot, which gives a market maker a very short window to repair a book before someone submits the failing check. This is unpredictable enough to stop quoting at known times; it is not cryptographic randomness.
- Liveness. Nobody is forced to submit checks. Unsubmitted passing slots simply aren't paid; unsubmitted failing slots don't count against the market maker. The incentives push each side to submit the checks that favor it.
- Smart-contract risk. Bugs can lose funds. Tests reduce this risk; they do not remove it.
- Swap risk. The buyback swaps on Uniswap v4. Thin liquidity means a worse price;
minOutprotects each call but can make it fail. - Market risk. A healthy book doesn't make a token go up. $MSTH and every token with a Purse can lose value.
No admin keys over funds
No address can drain a Purse or seize a Bond. Purse HYPE moves only to the creator (unreserved funds) or the winning market maker (for passing checks). Bonds move only back to the market maker, or to the Purse and the dead address on a slash.