mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
removed incentives data, as it is hardcoded on client side
This commit is contained in:
parent
b84a486d10
commit
dc2943f2ec
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user