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();
|
||||
|
||||
IUiIncentiveDataProvider.UserIncentiveData memory aUserIncentiveData;
|
||||
aUserIncentiveData.tokenIncentivesUserData = aTokenIncentiveController.getUserAssetData(
|
||||
aUserIncentiveData.tokenincentivesUserIndex = aTokenIncentiveController.getUserAssetData(
|
||||
user,
|
||||
baseData.aTokenAddress
|
||||
);
|
||||
|
@ -154,7 +154,7 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
|
|||
IAaveIncentivesController vTokenIncentiveController =
|
||||
IVariableDebtToken(baseData.variableDebtTokenAddress).getIncentivesController();
|
||||
UserIncentiveData memory vUserIncentiveData;
|
||||
vUserIncentiveData.tokenIncentivesUserData = vTokenIncentiveController.getUserAssetData(
|
||||
vUserIncentiveData.tokenincentivesUserIndex = vTokenIncentiveController.getUserAssetData(
|
||||
user,
|
||||
baseData.variableDebtTokenAddress
|
||||
);
|
||||
|
@ -169,7 +169,7 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
|
|||
IAaveIncentivesController sTokenIncentiveController =
|
||||
IStableDebtToken(baseData.stableDebtTokenAddress).getIncentivesController();
|
||||
UserIncentiveData memory sUserIncentiveData;
|
||||
sUserIncentiveData.tokenIncentivesUserData = sTokenIncentiveController.getUserAssetData(
|
||||
sUserIncentiveData.tokenincentivesUserIndex = sTokenIncentiveController.getUserAssetData(
|
||||
user,
|
||||
baseData.stableDebtTokenAddress
|
||||
);
|
||||
|
|
|
@ -29,7 +29,7 @@ interface IUiIncentiveDataProvider {
|
|||
}
|
||||
|
||||
struct UserIncentiveData {
|
||||
uint256 tokenIncentivesUserData;
|
||||
uint256 tokenincentivesUserIndex;
|
||||
uint256 userUnclaimedRewards;
|
||||
address tokenAddress;
|
||||
address rewardTokenAddress;
|
||||
|
|
Loading…
Reference in New Issue
Block a user