mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Added tokens, fix getter
This commit is contained in:
parent
ac63cfaf05
commit
3f46697d24
|
@ -58,15 +58,20 @@ task('print-config', 'Inits the DRE, to have access to all the plugins')
|
|||
'isActive',
|
||||
'isFrozen',
|
||||
];
|
||||
const tokensFields = ['aToken', 'stableDebtToken', 'variableDebtToken'];
|
||||
for (const [symbol, address] of Object.entries(
|
||||
getParamPerNetwork(poolConfig.ReserveAssets, network)
|
||||
)) {
|
||||
console.log(`- ${symbol} asset config`);
|
||||
console.log(` - reserve address: ${address}`);
|
||||
|
||||
const reserveData = await protocolDataProvider.getReserveData(address);
|
||||
const reserveData = await protocolDataProvider.getReserveConfigurationData(address);
|
||||
const tokensAddresses = await protocolDataProvider.getReserveTokensAddresses(address);
|
||||
fields.forEach((field, index) => {
|
||||
console.log(` - ${field}:`, reserveData[index].toString());
|
||||
});
|
||||
tokensFields.forEach((field, index) => {
|
||||
console.log(` - ${field}:`, tokensAddresses[index]);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user