Function: curateMarketOption()
function curateMarketOption(
option,
registry,
utils,
totals,
creation,
now?): CuratedMarketOption;
Defined in: packages/overcast-core/src/curation/curate.ts:99
Curate a MarketOption, folding in the indexer-aggregated
OptionTotals (sourced from the option's exercise / redeem events) and
its OptionCreation facts (from the MarketOptionCreated event) since
the raw option carries neither, plus the lifecycle OptionState the
totals imply. now (unix seconds) is accepted so a caller curating a whole
page evaluates every option against one clock reading.
Parameters
| Parameter | Type |
|---|---|
option | MarketOption |
registry | AssetRegistry |
utils | OvercastUtils |
totals | OptionTotals |
creation | OptionCreation |
now? | number |