Skip to content

shows undefined while getting UserBorrowData from Aave v2 #4788

Discussion options

You must be logged in to vote

@decentralized-86 Make sure to name the exported variables correctly;

const { totalCollateralETH, totalDebtETH, availableBorrowsETH } =
        await lendingPool.getUserAccountData(account)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by decentralized-86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants