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

    Returns Transaction[]

Generated using TypeDoc