Function prepareDepositIntoPool

    • Returns a transaction to deposit asset into given pool.

      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

      • Optionalnote: Uint8Array<ArrayBufferLike>

        optional note field to add

      Returns Transaction[]

      Transaction[] deposit asset group transaction