{s}omniamarkets

@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / fillKind

Function: fillKind()

fillKind(takerSide, makerSide): BinaryFillKind

Defined in: store.ts:264

Classify a binary fill from its two sides: opposite trades on ONE outcome are direct (DIRECT_YES/DIRECT_NO); two buys mint a YES+NO pair from collateral, two sells burn one back. Mirror of the indexer's fillKind (BinaryPool._isPair matrix — keep in lockstep).

Parameters

takerSide

BinarySide

The taker's BinarySide.

makerSide

BinarySide

The maker's BinarySide.

Returns

BinaryFillKind