From 59ed7391728b54877526db9b15979b0ace53e036 Mon Sep 17 00:00:00 2001 From: sendra Date: Tue, 5 Oct 2021 10:11:15 +0200 Subject: [PATCH] added underlying symbol --- contracts/misc/UiPoolDataProvider.sol | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/misc/UiPoolDataProvider.sol b/contracts/misc/UiPoolDataProvider.sol index 051ab266..8c01f81c 100644 --- a/contracts/misc/UiPoolDataProvider.sol +++ b/contracts/misc/UiPoolDataProvider.sol @@ -109,7 +109,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider { // reserve configuration // we're getting this info from the aToken, because some of assets can be not compliant with ETC20Detailed - reserveData.symbol = IERC20Detailed(reserveData.aTokenAddress).symbol(); + reserveData.symbol = IERC20Detailed(reserveData.underlyingAsset).symbol(); reserveData.name = ''; ( @@ -142,13 +142,13 @@ contract UiPoolDataProvider is IUiPoolDataProvider { reserveData.aEmissionPerSecond, reserveData.aIncentivesLastUpdateTimestamp ) = incentivesController.getAssetData(reserveData.aTokenAddress); - + ( reserveData.sTokenIncentivesIndex, reserveData.sEmissionPerSecond, reserveData.sIncentivesLastUpdateTimestamp ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); - + ( reserveData.vTokenIncentivesIndex, reserveData.vEmissionPerSecond, @@ -283,7 +283,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider { // reserve configuration // we're getting this info from the aToken, because some of assets can be not compliant with ETC20Detailed - reserveData.symbol = IERC20Detailed(reserveData.aTokenAddress).symbol(); + reserveData.symbol = IERC20Detailed(reserveData.underlyingAsset).symbol(); reserveData.name = ''; ( @@ -315,14 +315,14 @@ contract UiPoolDataProvider is IUiPoolDataProvider { reserveData.aTokenIncentivesIndex, reserveData.aEmissionPerSecond, reserveData.aIncentivesLastUpdateTimestamp - ) = incentivesController.getAssetData(reserveData.aTokenAddress); - + ) = incentivesController.getAssetData(reserveData.aTokenAddress); + ( reserveData.sTokenIncentivesIndex, reserveData.sEmissionPerSecond, reserveData.sIncentivesLastUpdateTimestamp ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); - + ( reserveData.vTokenIncentivesIndex, reserveData.vEmissionPerSecond,