From de2e710ecb079d563617e0451f127ab85c4d4256 Mon Sep 17 00:00:00 2001 From: sendra Date: Mon, 4 Oct 2021 19:11:19 +0200 Subject: [PATCH] feat: new getter --- contracts/misc/UiPoolDataProvider.sol | 36 +++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/contracts/misc/UiPoolDataProvider.sol b/contracts/misc/UiPoolDataProvider.sol index f52d8ff5..0a0071b6 100644 --- a/contracts/misc/UiPoolDataProvider.sol +++ b/contracts/misc/UiPoolDataProvider.sol @@ -138,25 +138,25 @@ contract UiPoolDataProvider is IUiPoolDataProvider { // incentives if (address(0) != address(incentivesController)) { ( - reserveData.aEmissionPerSecond, reserveData.aTokenIncentivesIndex + reserveData.aEmissionPerSecond, reserveData.aIncentivesLastUpdateTimestamp, - // ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix - ) = incentivesController.assets(reserveData.aTokenAddress); + ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix + // ) = incentivesController.assets(reserveData.aTokenAddress); ( + reserveData.sTokenIncentivesIndex, reserveData.sEmissionPerSecond, - reserveData.sTokenIncentivesIndex reserveData.sIncentivesLastUpdateTimestamp, - // ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix - ) = incentivesController.assets(reserveData.stableDebtTokenAddress); + ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix + // ) = incentivesController.assets(reserveData.stableDebtTokenAddress); ( + reserveData.vTokenIncentivesIndex, reserveData.vEmissionPerSecond, - reserveData.vTokenIncentivesIndex reserveData.vIncentivesLastUpdateTimestamp, - // ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix - ) = incentivesController.assets(reserveData.variableDebtTokenAddress); + ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix + // ) = incentivesController.assets(reserveData.variableDebtTokenAddress); } } @@ -315,25 +315,25 @@ contract UiPoolDataProvider is IUiPoolDataProvider { // incentives if (address(0) != address(incentivesController)) { ( - reserveData.aEmissionPerSecond, reserveData.aTokenIncentivesIndex, + reserveData.aEmissionPerSecond, reserveData.aIncentivesLastUpdateTimestamp - // ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix - ) = incentivesController.assets(reserveData.aTokenAddress); + ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix + // ) = incentivesController.assets(reserveData.aTokenAddress); ( - reserveData.sEmissionPerSecond, reserveData.sTokenIncentivesIndex, + reserveData.sEmissionPerSecond, reserveData.sIncentivesLastUpdateTimestamp - // ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix - ) = incentivesController.assets(reserveData.stableDebtTokenAddress); + ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix + // ) = incentivesController.assets(reserveData.stableDebtTokenAddress); ( - reserveData.vEmissionPerSecond, reserveData.vTokenIncentivesIndex, + reserveData.vEmissionPerSecond, reserveData.vIncentivesLastUpdateTimestamp - // ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix - ) = incentivesController.assets(reserveData.variableDebtTokenAddress); + ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix + // ) = incentivesController.assets(reserveData.variableDebtTokenAddress); } if (user != address(0)) {