MorpheusPerpetual Prediction Markets
Docs

Confidence & close-only

How the vault widens its quote in volatile moments and stops new risk before scheduled events, while exits always work.

A market maker on an order book cancels its quotes when news breaks. The vault can't cancel anything, so it does the same through two protocol rules.

Confidence widens the spread

Every oracle print carries a confidence half-width conf next to the price (at most 10¢). Orders in that print's batch fill at max(half_spread, conf) from the price. While conf is above max_conf (2¢ in this app):

  • open orders are rejected with PriceUncertain (escrow refunded);
  • margin withdrawals are rejected too, so nobody pulls margin out at a doubtful price;
  • closes still fill, at the wider spread.

Margin withdrawals are also always checked against equity at the exit price rather than mid, so a wide spread can't be withdrawn as margin.

Close-only before scheduled events

Before an event with a known time (an election night, a data release), the guardian can set close_only_after. From that time on, new opens are refused when placed and rejected when processed (TradingClosed). Closes, margin top-ups, liquidations and LP flow continue. The cutoff can only be moved earlier, never later or removed, so it can't be used to reopen trading just before the event.

Exits always work

A close order fills while the market is paused, after the close-only time, at any confidence and outside the 2¢–98¢ band. The only things that stop it are a stale oracle (then you may cancel the order instead) and resolution (then you settle).