Function retrieveUserLoansInfo
- retrieveUserLoansInfo(
indexerClient: IndexerClient,
loanAppId: number,
poolManagerAppId: number,
oracle: Oracle,
userAddr: string,
additionalInterests?: Partial<Record<number, AssetAdditionalInterest>>,
): Promise<UserLoanInfo[]> Parameters
- indexerClient: IndexerClient
Algorand indexer client to query
- loanAppId: number
loan application to query about
- poolManagerAppId: number
pool manager application to query about
- oracle: Oracle
oracle to query
- userAddr: string
account address for the user
Optional
additionalInterests: Partial<Record<number, AssetAdditionalInterest>>optional additional interest to consider in loan net rate/yield
Returns Promise<UserLoanInfo[]>
Promise<UserLoanInfo[]> user loans infos
- indexerClient: IndexerClient
Returns information regarding the loan escrows of a given user.