Created
July 10, 2020 11:02
-
-
Save alexroan/8d1acb1ecf32623703052472821090a1 to your computer and use it in GitHub Desktop.
aave_get_atoken.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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