Skip to content

Instantly share code, notes, and snippets.

@alexroan
Created July 10, 2020 11:02
Show Gist options
  • Save alexroan/8d1acb1ecf32623703052472821090a1 to your computer and use it in GitHub Desktop.
Save alexroan/8d1acb1ecf32623703052472821090a1 to your computer and use it in GitHub Desktop.
aave_get_atoken.js
const reserveData = await lendingPool.methods.getReserveData("0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE").call()
.catch((e) => {
throw Error(`Error getting aave reserve data: ${e.message}`)
});
const aTokenAddress = reserveData.aTokenAddress;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment