-
Hi Guys, Working through chapter 13 and keep running into this error: It must have something to do with my borrowDai() function, but I can't spot any errors. Can anyone help? Here is a link to my github: https://github.com/sthurley/hardhat-defi-fcc Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
Nlferu
Nov 2, 2023
Replies: 1 comment 1 reply
-
Hello @sthurley Please be informed that Aave got updated. Please see below. async function borrowAsset(assetAddress, lendingPool, amountToBorrow, account) {
/** @dev ILendingPool: function borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf) external; */
/** Stable Interest Rate: 1 Variable Interest Rate: 2 (New Aave -> variable) */
const borrowTx = await lendingPool.borrow(assetAddress, amountToBorrow, 2, 0, account)
await borrowTx.wait(1)
} Please also see this: link |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sthurley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @sthurley
Please be informed that Aave got updated. Please see below.
Please also see this: link