Skip to content

v2.6.0

Latest

Choose a tag to compare

@Phinetwork Phinetwork released this 09 Jan 01:42
17b579c

Verahai v2.6.0 — Market Status: “Canceled” Can No Longer Be Overridden by Resolution

What changed

  • Updated deriveMarketStatus in src/SigilMarkets/utils/marketTiming.ts to preserve explicit canceled status even when a resolution object exists.
  • The function now captures status earlier and short-circuits when status === "canceled" so cancellation can’t be reclassified downstream.

Why this matters

Previously, if a market had a resolution object, deriveMarketStatus could return a resolution-based status (voided / resolved) even when the market was explicitly marked canceled.
That caused:

  • UI components to show the wrong state
  • Messaging to lose cancellation-specific copy / flows
  • Confusion between “canceled by authority” vs “resolved by outcome” vs “voided by policy”

Verahai’s UX depends on canceled being distinct, so it must remain intact.

Behavior (after v2.6.0)

  • ✅ If a market is explicitly canceled, it stays canceled no matter what other objects exist.

  • ✅ For non-canceled markets, resolution override behavior is unchanged:

    • resolution can still map status to voided or resolved exactly as before.

No semantic changes elsewhere

  • isResolvedLikeStatus is unchanged and continues to treat canceled as resolved-like where that behavior is relied on (e.g., disabling trading, final-state UI groupings, etc.).

Summary

v2.6.0 fixes a subtle but critical classification bug: cancellation is now authoritative and won’t be overwritten by resolution-derived statuses, while all existing resolution mapping behavior for non-canceled markets remains the same.

What's Changed

Full Changelog: v2.5.0...v2.6.0