Function depositToVaultImpl

  • Inititates a deposit to 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.

    • underlyingAmount: BN

      The amount of the underlying asset to deposit.

    • stableAmount: BN

      The amount of the stable asset to deposit.

    Returns Promise<TransactionSignature>

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

Generated using TypeDoc