Function prepareSwitchBorrowTypeInLoan

  • Returns a transaction to switch borrow type of a loan borrow.

    Returns

    Transaction[] switch borrow type transaction

    Parameters

    • loanAppId: number

      loan application to switch borrow type 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 switch borrow type of

    • maxStableRate: number | bigint

      maximum stable rate of the borrow, if zero then interpreted as switching a stable rate borrow to a variable rate borrow

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    Returns Transaction

Generated using TypeDoc