fix: Change the order of return variables of incentives getAssetData

This commit is contained in:
David Racero 2021-04-22 10:17:45 +02:00
parent 9df1502f22
commit 7ffb0e573f

View File

@ -132,21 +132,21 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
// incentives // incentives
( (
reserveData.aTokenIncentivesIndex,
reserveData.aEmissionPerSecond, reserveData.aEmissionPerSecond,
reserveData.aIncentivesLastUpdateTimestamp, reserveData.aIncentivesLastUpdateTimestamp
reserveData.aTokenIncentivesIndex
) = incentivesController.getAssetData(reserveData.aTokenAddress); ) = incentivesController.getAssetData(reserveData.aTokenAddress);
( (
reserveData.sTokenIncentivesIndex,
reserveData.sEmissionPerSecond, reserveData.sEmissionPerSecond,
reserveData.sIncentivesLastUpdateTimestamp, reserveData.sIncentivesLastUpdateTimestamp
reserveData.sTokenIncentivesIndex
) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress); ) = incentivesController.getAssetData(reserveData.stableDebtTokenAddress);
( (
reserveData.vTokenIncentivesIndex,
reserveData.vEmissionPerSecond, reserveData.vEmissionPerSecond,
reserveData.vIncentivesLastUpdateTimestamp, reserveData.vIncentivesLastUpdateTimestamp
reserveData.vTokenIncentivesIndex
) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress); ) = incentivesController.getAssetData(reserveData.variableDebtTokenAddress);
if (user != address(0)) { if (user != address(0)) {