Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getReservesHumanized not working with v2 #535

Open
hackvick opened this issue Apr 26, 2023 · 0 comments
Open

getReservesHumanized not working with v2 #535

hackvick opened this issue Apr 26, 2023 · 0 comments

Comments

@hackvick
Copy link

hackvick commented Apr 26, 2023

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
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant