Function withdrawFromVaultImpl

  • Initiates a withdrawal from the OptionVault. Underlying, stable, and LP token associated token accounts will be created if they do not exist.

    Todo

    Add a rent checker for account creation cost.

    Parameters

    • this: SdxClient
    • asset: AssetType

      The type associated with the OptionVault.

    • lpAmount: BN

      The amount of LP tokens to withdraw.

    Returns Promise<TransactionSignature>

    A promise that resolves to the transaction signature of the withdrawal operation.

Generated using TypeDoc