@somnia-chain/markets-sdk / index / UnsignedMarginDeposit
Interface: UnsignedMarginDeposit
Defined in: packages/sdk/src/perp/margin.ts:1406
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:1408
The deposit call itself.
approval?
optionalapproval?:UnsignedCall
Defined in: packages/sdk/src/perp/margin.ts:1410
The ERC-20 approval the bank needs first; absent when autoApprove: false.