Home > @primitivefi/rmm-sdk > SwapOptions
Swap arguments.
Signature:
export interface SwapOptions extends DefaultOptions, NativeOptions
Extends: DefaultOptions, NativeOptions
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. |