aave-utilities icon indicating copy to clipboard operation
aave-utilities copied to clipboard

getReservesHumanized not working with v2

Open hackvick opened this issue 2 years ago • 0 comments
trafficstars

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
});

hackvick avatar Apr 26 '23 12:04 hackvick