@somnia-chain/markets-sdk / index / outcomeId
Function: outcomeId()
outcomeId(
pool,nonce,idx):bigint
Defined in: ids.ts:40
The ERC-6909 outcome id for pool's market at nonce, outcome idx.
id = (uint160(pool) << 72) | (nonce << 8) | idx. Pool is a 0x-address;
nonce is the pool's marketNonce for the target market (1 on a fresh pool,
++ on each recycle); idx is 0 (YES) or 1 (NO).
Parameters
pool
string
nonce
number | bigint
idx
Returns
bigint