Lesson 10: 'Too many values to unpack (expected 5) #756
-
Hey there, Normally pretty good at solving these issues myself whether it's a syntax error or finding a quick solution online. However, this one has got me stumped. I'm testing the get_borrable_data def at 9:29:00 in the training video. Everytime I run the script I keep getting the following error. Any ideas? Here's my current code too from the aave_borrow.py script:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Ah - I solved it! Turns out after reading through the official Aave LendingPool docs they've added an extra return value in their getUserAccountData() function. I simply had to add ltv as another parameter (not shown in the video tutorial) and everything worked perfectly.
Hope this helps any others who get stuck! |
Beta Was this translation helpful? Give feedback.
Ah - I solved it! Turns out after reading through the official Aave LendingPool docs they've added an extra return value in their getUserAccountData() function. I simply had to add ltv as another parameter (not shown in the video tutorial) and everything worked perfectly.