fix: fixed overwriting of subtoken reward info

This commit is contained in:
sendra 2021-12-08 15:43:09 +01:00
parent b5c06fbd52
commit ad8e895d3b

View File

@ -332,7 +332,7 @@ contract UiIncentiveDataProviderV2 is IUiIncentiveDataProviderV3 {
IERC20Detailed(vRewardToken).decimals()
);
userReservesIncentivesData[i].aTokenIncentivesUserData = UserIncentiveData(
userReservesIncentivesData[i].vTokenIncentivesUserData = UserIncentiveData(
baseData.variableDebtTokenAddress,
address(vTokenIncentiveController),
vUserRewardsInformation
@ -361,7 +361,7 @@ contract UiIncentiveDataProviderV2 is IUiIncentiveDataProviderV3 {
IERC20Detailed(sRewardToken).decimals()
);
userReservesIncentivesData[i].aTokenIncentivesUserData = UserIncentiveData(
userReservesIncentivesData[i].sTokenIncentivesUserData = UserIncentiveData(
baseData.stableDebtTokenAddress,
address(sTokenIncentiveController),
sUserRewardsInformation