aave / aave-utilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getReservesHumanized not working with v2

hackvick opened this issue · comments

Question

getReservesHumanized function from UiPoolDataProvider is not working with v2
const poolDataProviderContract = new UiPoolDataProvider({
uiPoolDataProviderAddress:

    "0xcCb7a1B6B5D72c4AA633B114537cD20612fDccbB", // aave 2 goerli
  provider,
  chainId: ChainId.goerli,
});

console.log(poolDataProviderContract, "poolDataProviderContract");

const reserves = await poolDataProviderContract.getReservesHumanized({
  lendingPoolAddressProvider:
    "0x5E52dEc931FFb32f609681B8438A51c675cc232d", //aave v2 goerli
});