Function retrieveLiquidatableLoans
- retrieveLiquidatableLoans(
indexerClient: IndexerClient,
loanAppId: number,
poolManagerInfo: PoolManagerInfo,
loanInfo: LoanInfo,
oraclePrices: OraclePrices,
nextToken?: string,
): Promise<{ loans: UserLoanInfo[]; nextToken?: string }> 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
Optional
nextToken: stringtoken for retrieving next escrows
Returns Promise<{ loans: UserLoanInfo[]; nextToken?: string }>
Promise<{ loans: UserLoanInfo[], nextToken?: string}> object containing liquidatable loans and next token
- indexerClient: IndexerClient
Returns all loans that are liquidatable.