Function prepareDepositIntoPool

  • Returns a transaction to deposit asset into given pool.

    Returns

    Transaction[] deposit asset group transaction

    Parameters

    • pool: Pool

      pool application to deposit into

    • poolManagerAppId: number

      pool manager application

    • userAddr: string

      account address for the user

    • receiverAddr: string

      account address to receive the deposit (typically the user's deposit escrow or loan escrow)

    • assetAmount: number | bigint

      the asset amount to deposit

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    • Optional note: Uint8Array

      optional note field to add

    Returns Transaction[]

Generated using TypeDoc