Skip to content

Conservative status fallback when the indexer hasn't enriched standardsInfo yet.

derivePredictionMarketStatusFallback(deadlineMs): PredictionMarketStatus

Defined in: packages/bitbadgesjs-sdk/src/core/prediction-markets.ts:813

Conservative status fallback when the indexer hasn't enriched standardsInfo yet.

Pre-deadline the market is genuinely active (trading open) — safe to assert. Past-deadline it could be closed OR resolved-yes/no/push; the fallback CANNOT tell which without the indexer, so it returns unknown rather than the misleading closed. Returning closed here let bb prediction-markets status show a resolved market as closed, which a user could act on with redeem --state ... against the wrong actual outcome.

Parameters

deadlineMs

bigint

Returns

PredictionMarketStatus

Edit this page on GitHub