Lesson 13: Is using lendingPoolAddressesProvider necessary? #2646
-
We're using Aave's const lendingPoolAddressesProvider = await ethers.getContractAt(
"ILendingPoolAddressesProvider",
"0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5"
);
const lendingPoolAddress =
await lendingPoolAddressesProvider.getLendingPool();
// ** Both are identical
console.log(`Lending pool address: ${lendingPoolAddress}`);
console.log(
`Lending pool address on Aave (raw): 0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9`
); Am I missing something or is it unnecessary to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@SimasG : Yes, It is necessary because from Which we need in depositing, borrowing and also repaying. and we are doing it programmatically! |
Beta Was this translation helpful? Give feedback.
-
@SimasG Yes, we can hardcode it but we are doing it programmatically, the same way we use etherscan for verification. |
Beta Was this translation helpful? Give feedback.
@SimasG Yes, we can hardcode it but we are doing it programmatically, the same way we use etherscan for verification.