@somnia-chain/markets-sdk


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

Interface: UnsignedMarginDeposit

Defined in: packages/sdk/src/perp/margin.ts:1360

A MarginBank deposit expanded into the unsigned calls it actually takes.

Two or one: the bank pulls the collateral, so it needs an ERC-20 allowance first — unless autoApprove: false says the caller manages that themselves.

Properties

deposit

deposit: UnsignedCall

Defined in: packages/sdk/src/perp/margin.ts:1362

The deposit call itself.


approval?

optional approval?: UnsignedCall

Defined in: packages/sdk/src/perp/margin.ts:1364

The ERC-20 approval the bank needs first; absent when autoApprove: false.