Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.44 KB

rmm-sdk.swapoptions.md

File metadata and controls

26 lines (18 loc) · 1.44 KB

Home > @primitivefi/rmm-sdk > SwapOptions

SwapOptions interface

Swap arguments.

Signature:

export interface SwapOptions extends DefaultOptions, NativeOptions 

Extends: DefaultOptions, NativeOptions

Properties

Property Type Description
deltaIn Wei Amount of tokens to swap in.
deltaOut Wei Amount of tokens requested out, sent to DefaultOptions.recipient.
fromMargin boolean True if input token amount is debited from msg.sender margin account.
riskyForStable boolean True if swapping risky tokens to stable tokens.
toMargin boolean True if output token amount is kept within the contract. The DefaultOptions.recipient margin account is credited.
toRecipient? boolean (Optional) True if output token amount is sent to DefaultOptions.recipient.