Little Error in Lesson 10? #648
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hello @guiri93 nice punctuation, what do you think about this @PatrickAlphaC ? |
Beta Was this translation helpful? Give feedback.
-
Yes, I see the point. However when I run repay with my parameters, in the end the function get_borrowable_data(lending_pool, account) returns something like "You have 1.78...E-9 worth of ETH borrowed." This small number is explainable by the interests we paid. get_borrowable_data(lending_pool, account) gives something like "You have 0.078375000000000003 worth of ETH borrowed." After repaying the function gives "You have 0.078342892303195526 worth of ETH borrowed." So we actually only repaid 0.00003... worth of ETH. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am having the same problem. I think @guiri93 is right about having to repay |
Beta Was this translation helpful? Give feedback.
Hi,
I am having the same problem. I think @guiri93 is right about having to repay
amount_to_borrow
. If I'm not mistaken right now we are repaying 0.1 (AMOUNT
) DAI but we borrowed 95% of 0.1 ETH worth in DAI