Function prepareDepositIntoPool
- prepareDepositIntoPool(
pool: Pool,
poolManagerAppId: number,
userAddr: string,
receiverAddr: string,
assetAmount: number | bigint,
params: SuggestedParams,
note?: Uint8Array<ArrayBufferLike>,
): 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<ArrayBufferLike>optional note field to add
Returns Transaction[]
Transaction[] deposit asset group transaction
- pool: Pool
Returns a transaction to deposit asset into given pool.