Function prepareSwitchBorrowTypeInLoan
- prepareSwitchBorrowTypeInLoan(
loanAppId: number,
poolManagerAppId: number,
userAddr: string,
escrowAddr: string,
pool: Pool,
maxStableRate: number | bigint,
params: SuggestedParams,
): 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
Transaction[] switch borrow type transaction
- loanAppId: number
Returns a transaction to switch borrow type of a loan borrow.