@somnia-chain/markets-sdk


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

Interface: CancelExpiredOrdersParams

Defined in: packages/sdk/src/trade.ts:261

Permissionless keeper drain: clean an explicit list of EXPIRED resting orders on a pool, returning each order's locked escrow to its owner. Best-effort — non-expired or stale ids are silently skipped on-chain (no revert).

Properties

pool

pool: `0x${string}`

Defined in: packages/sdk/src/trade.ts:263

BinaryPool (or SpotPool) address whose expired orders to clean.


orderIds

orderIds: (string | bigint)[]

Defined in: packages/sdk/src/trade.ts:265

uint128 OrderIds to attempt to clean (decimal strings or bigints).


gas?

optional gas?: bigint

Defined in: packages/sdk/src/trade.ts:267

Gas ceiling for this tx.

Default Value

TraderConfig.gas (10,000,000)