{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: SweepExpiredAtLevelParams

Defined in: trade.ts:201

Permissionless keeper drain: walk ONE price level from the best order on a side, cleaning up to maxCount expired orders. The complement of CancelExpiredOrdersParams when you have a price level rather than a list of ids (e.g. draining a locked market's book so its pool can be released). Each cleaned order's escrow returns to its owner.

Properties

pool

pool: `0x${string}`

Defined in: trade.ts:203

BinaryPool (or SpotPool) address to sweep.


isBid

isBid: boolean

Defined in: trade.ts:205

True to sweep the bid side, false the ask side.


price

price: bigint

Defined in: trade.ts:207

The exact price level to sweep (raw pool price units).


maxCount

maxCount: bigint

Defined in: trade.ts:209

Max number of expired orders to clean in this call.


gas?

optional gas?: bigint

Defined in: trade.ts:210