Function retrieveLiquidatableLoans

    • Returns all loans that are liquidatable.

      Parameters

      • indexerClient: IndexerClient

        Algorand indexer client to query

      • loanAppId: number

        loan application to query about

      • poolManagerInfo: PoolManagerInfo

        pool manager info which is returned by retrievePoolManagerInfo function

      • loanInfo: LoanInfo

        loan info which is returned by retrieveLoanInfo function

      • oraclePrices: OraclePrices

        oracle prices which is returned by getOraclePrices function

      • OptionalnextToken: string

        token for retrieving next escrows

      Returns Promise<{ loans: UserLoanInfo[]; nextToken?: string }>

      Promise<{ loans: UserLoanInfo[], nextToken?: string}> object containing liquidatable loans and next token