Function processNextTransferRecordImpl

  • Processes the next transfer record in the queue for a given asset and transfer type. If the associated token accounts for the underlying and stable assets do not exist, they will be created. The function throws an error if there are no transfer records in the queue.

    Throws

    Throws an error if there are no transfer records in the queue.

    Todo

    Add a rent checker for account creation cost.

    Parameters

    • this: SdxClient
    • asset: AssetType

      The type associated with the OptionVault.

    • transferType: TransferType

      The type of transfer to process (Deposit or Withdraw).

    Returns Promise<TransactionSignature>

    A promise that resolves to the transaction signature of the processed transfer.

Generated using TypeDoc