@somnia-chain/markets-sdk / index / quoteCreateMarketValue
Function: quoteCreateMarketValue()
quoteCreateMarketValue(
def,hub,client):Promise<bigint>
Defined in: oracleHub.ts:237
THE §8e user-side create-value rule:
quoteCreateMarketValue(def) = getSchedulingCost(def) + resolveReserve().
This is the exact native value to attach to
BinaryMarketsModule.scheduleAndCreateMarket (schedule + bind in one tx):
the marginal scheduling cost PLUS the resolution reserve, which is ATTACHED to
the create and LOCKED per-market at onBind (earmark-at-creation — there is NO
standing prepaid pre-fund anymore). For createMarket against an
ALREADY-scheduled question the scheduling cost is 0, so the value is just the
reserve. Quote fresh per create — the scheduling cost is marginal (drops to 0
once the question exists). Excess is refunded in-tx.
Parameters
def
hub
`0x${string}`
client
Returns
Promise<bigint>