Function prepareRebalanceDownLoan

    • Returns a transaction to rebalance up borrow in a loan escrow.

      Parameters

      • loanAppId: number

        loan application to rebalance down borrow in

      • poolManagerAppId: number

        pool manager application

      • rebalancerAddr: string

        account address for the rebalancer

      • escrowAddr: string

        account address for the loan escrow

      • pool: Pool

        pool to rebalance

      • params: SuggestedParams

        suggested params for the transactions with the fees overwritten

      Returns Transaction

      Transaction rebalance down transaction