mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
change variable name to tokenincentivesUserIndex
This commit is contained in:
parent
7f90cf6da7
commit
5abac5eecd
|
@ -139,7 +139,7 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
|
||||||
IAToken(baseData.aTokenAddress).getIncentivesController();
|
IAToken(baseData.aTokenAddress).getIncentivesController();
|
||||||
|
|
||||||
IUiIncentiveDataProvider.UserIncentiveData memory aUserIncentiveData;
|
IUiIncentiveDataProvider.UserIncentiveData memory aUserIncentiveData;
|
||||||
aUserIncentiveData.tokenIncentivesUserData = aTokenIncentiveController.getUserAssetData(
|
aUserIncentiveData.tokenincentivesUserIndex = aTokenIncentiveController.getUserAssetData(
|
||||||
user,
|
user,
|
||||||
baseData.aTokenAddress
|
baseData.aTokenAddress
|
||||||
);
|
);
|
||||||
|
@ -154,7 +154,7 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
|
||||||
IAaveIncentivesController vTokenIncentiveController =
|
IAaveIncentivesController vTokenIncentiveController =
|
||||||
IVariableDebtToken(baseData.variableDebtTokenAddress).getIncentivesController();
|
IVariableDebtToken(baseData.variableDebtTokenAddress).getIncentivesController();
|
||||||
UserIncentiveData memory vUserIncentiveData;
|
UserIncentiveData memory vUserIncentiveData;
|
||||||
vUserIncentiveData.tokenIncentivesUserData = vTokenIncentiveController.getUserAssetData(
|
vUserIncentiveData.tokenincentivesUserIndex = vTokenIncentiveController.getUserAssetData(
|
||||||
user,
|
user,
|
||||||
baseData.variableDebtTokenAddress
|
baseData.variableDebtTokenAddress
|
||||||
);
|
);
|
||||||
|
@ -169,7 +169,7 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
|
||||||
IAaveIncentivesController sTokenIncentiveController =
|
IAaveIncentivesController sTokenIncentiveController =
|
||||||
IStableDebtToken(baseData.stableDebtTokenAddress).getIncentivesController();
|
IStableDebtToken(baseData.stableDebtTokenAddress).getIncentivesController();
|
||||||
UserIncentiveData memory sUserIncentiveData;
|
UserIncentiveData memory sUserIncentiveData;
|
||||||
sUserIncentiveData.tokenIncentivesUserData = sTokenIncentiveController.getUserAssetData(
|
sUserIncentiveData.tokenincentivesUserIndex = sTokenIncentiveController.getUserAssetData(
|
||||||
user,
|
user,
|
||||||
baseData.stableDebtTokenAddress
|
baseData.stableDebtTokenAddress
|
||||||
);
|
);
|
||||||
|
|
|
@ -29,7 +29,7 @@ interface IUiIncentiveDataProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct UserIncentiveData {
|
struct UserIncentiveData {
|
||||||
uint256 tokenIncentivesUserData;
|
uint256 tokenincentivesUserIndex;
|
||||||
uint256 userUnclaimedRewards;
|
uint256 userUnclaimedRewards;
|
||||||
address tokenAddress;
|
address tokenAddress;
|
||||||
address rewardTokenAddress;
|
address rewardTokenAddress;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user