@somnia-chain/markets-sdk


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

Interface: ClaimPerpVoucherParams

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

Inputs to Trader.claimPerpVoucher — claim the one-time credit voucher as the signer.

Supply ONE of distributor, marginBank or pool. distributor is used as given. Otherwise the SDK reads getCreditGranter() off the bank, because the bank decides which distributor it accepts credit from. pool resolves the bank first.

A bank holding no credit granter throws NotConfiguredError: the voucher programme is off on that deployment.

Properties

distributor?

optional distributor?: `0x${string}`

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

The VoucherDistributor. Skips resolution entirely.


marginBank?

optional marginBank?: `0x${string}`

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

MarginBank address — its getCreditGranter() is read (never cached).


pool?

optional pool?: `0x${string}`

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

A PerpPool — its marginBank() is read (and cached), then the distributor.


gas?

optional gas?: bigint

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

Gas ceiling for this tx.

Default

TraderConfig.gas (10,000,000)