feat: new getter

This commit is contained in:
sendra 2021-10-04 19:11:19 +02:00
parent de1ab95318
commit de2e710ecb

View File

@ -138,25 +138,25 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
// incentives // incentives
if (address(0) != address(incentivesController)) { if (address(0) != address(incentivesController)) {
( (
reserveData.aEmissionPerSecond,
reserveData.aTokenIncentivesIndex reserveData.aTokenIncentivesIndex
reserveData.aEmissionPerSecond,
reserveData.aIncentivesLastUpdateTimestamp, reserveData.aIncentivesLastUpdateTimestamp,
// ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix
) = incentivesController.assets(reserveData.aTokenAddress); // ) = incentivesController.assets(reserveData.aTokenAddress);
( (
reserveData.sTokenIncentivesIndex,
reserveData.sEmissionPerSecond, reserveData.sEmissionPerSecond,
reserveData.sTokenIncentivesIndex
reserveData.sIncentivesLastUpdateTimestamp, reserveData.sIncentivesLastUpdateTimestamp,
// ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix
) = incentivesController.assets(reserveData.stableDebtTokenAddress); // ) = incentivesController.assets(reserveData.stableDebtTokenAddress);
( (
reserveData.vTokenIncentivesIndex,
reserveData.vEmissionPerSecond, reserveData.vEmissionPerSecond,
reserveData.vTokenIncentivesIndex
reserveData.vIncentivesLastUpdateTimestamp, reserveData.vIncentivesLastUpdateTimestamp,
// ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix
) = incentivesController.assets(reserveData.variableDebtTokenAddress); // ) = incentivesController.assets(reserveData.variableDebtTokenAddress);
} }
} }
@ -315,25 +315,25 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
// incentives // incentives
if (address(0) != address(incentivesController)) { if (address(0) != address(incentivesController)) {
( (
reserveData.aEmissionPerSecond,
reserveData.aTokenIncentivesIndex, reserveData.aTokenIncentivesIndex,
reserveData.aEmissionPerSecond,
reserveData.aIncentivesLastUpdateTimestamp reserveData.aIncentivesLastUpdateTimestamp
// ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix ) = incentivesController.getAssetData(reserveData.aTokenAddress); TODO: temp fix
) = incentivesController.assets(reserveData.aTokenAddress); // ) = incentivesController.assets(reserveData.aTokenAddress);
( (
reserveData.sEmissionPerSecond,
reserveData.sTokenIncentivesIndex, reserveData.sTokenIncentivesIndex,
reserveData.sEmissionPerSecond,
reserveData.sIncentivesLastUpdateTimestamp reserveData.sIncentivesLastUpdateTimestamp
// ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); TODO: temp fix
) = incentivesController.assets(reserveData.stableDebtTokenAddress); // ) = incentivesController.assets(reserveData.stableDebtTokenAddress);
( (
reserveData.vEmissionPerSecond,
reserveData.vTokenIncentivesIndex, reserveData.vTokenIncentivesIndex,
reserveData.vEmissionPerSecond,
reserveData.vIncentivesLastUpdateTimestamp reserveData.vIncentivesLastUpdateTimestamp
// ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); TODO: temp fix
) = incentivesController.assets(reserveData.variableDebtTokenAddress); // ) = incentivesController.assets(reserveData.variableDebtTokenAddress);
} }
if (user != address(0)) { if (user != address(0)) {