Function userLoanInfo
- userLoanInfo(
localState: LoanLocalState,
poolManagerInfo: PoolManagerInfo,
loanInfo: LoanInfo,
oraclePrices: OraclePrices,
): UserLoanInfo Parameters
- localState: LoanLocalState
local state of escrow account
- 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
Returns UserLoanInfo
Promise
user loans info - localState: LoanLocalState
Derives user loan info from escrow account. Use for advanced use cases where optimising number of network request.