removed incentives data, as it is hardcoded on client side

This commit is contained in:
sendra 2021-04-07 17:44:29 +02:00
parent b84a486d10
commit dc2943f2ec
2 changed files with 3 additions and 23 deletions

View File

@ -58,8 +58,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
returns (
AggregatedReserveData[] memory,
UserReserveData[] memory,
uint256,
IncentivesUserData memory
uint256
)
{
ILendingPool lendingPool = ILendingPool(provider.getLendingPool());
@ -194,18 +193,6 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
}
}
IncentivesUserData memory incentivesUserData;
if (user != address(0)) {
incentivesUserData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user);
incentivesUserData.rewardToken = incentivesController.REWARD_TOKEN();
incentivesUserData.rewardTokenPriceEth = oracle.getAssetPrice(incentivesUserData.rewardToken);
}
return (
reservesData,
userReservesData,
oracle.getAssetPrice(MOCK_USD_ADDRESS),
incentivesUserData
);
return (reservesData, userReservesData, oracle.getAssetPrice(MOCK_USD_ADDRESS));
}
}

View File

@ -54,12 +54,6 @@ interface IUiPoolDataProvider {
uint256 sTokenIncentivesIndex;
}
struct IncentivesUserData {
address rewardToken;
uint256 userUnclaimedRewards;
uint256 rewardTokenPriceEth;
}
struct UserReserveData {
address underlyingAsset;
uint256 scaledATokenBalance;
@ -80,7 +74,6 @@ interface IUiPoolDataProvider {
returns (
AggregatedReserveData[] memory,
UserReserveData[] memory,
uint256,
IncentivesUserData memory
uint256
);
}