Function prepareAddCollateralToLoan

    • Returns a transaction to add a collateral to a loan escrow.

      Parameters

      • loanAppId: number

        loan application to add collateral in

      • poolManagerAppId: number

        pool manager application

      • userAddr: string

        account address for the user

      • escrowAddr: string

        account address for the loan escrow

      • pool: Pool

        pool to add f asset of

      • params: SuggestedParams

        suggested params for the transactions with the fees overwritten

      Returns Transaction

      Transaction add collateral to loan escrow transaction