The ILendingPoolAddressProvider
does not contain the getLendingPool
function.
async function getLendingPool(account) {
const lendingPoolAddressProvider = await ethers.getContractAt(
"ILendingPoolAddressesProvider", // This is the interface
"0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5",
account,
)
const lendingPoolAddress = await lendingPoolAddressProvider.getLendingPool()
const lendingPool = await ethers.getContractAt(
"ILendingPoool",
lendingPoolAddress,
account,
)
return lendingPool
}