Function retrieveLiquidatableLoans

  • Returns all loans that are liquidatable.

    Returns

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

    Parameters

    • indexerClient: default

      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

    • Optional nextToken: string

      token for retrieving next escrows

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

Generated using TypeDoc