added unclaimed user rewards

This commit is contained in:
sendra 2021-04-08 13:55:01 +02:00
parent e01de3e374
commit 717bb133e1
2 changed files with 8 additions and 1 deletions

View File

@ -58,6 +58,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
returns (
AggregatedReserveData[] memory,
UserReserveData[] memory,
uint256,
uint256
)
{
@ -193,6 +194,11 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
}
}
return (reservesData, userReservesData, oracle.getAssetPrice(MOCK_USD_ADDRESS));
return (
reservesData,
userReservesData,
oracle.getAssetPrice(MOCK_USD_ADDRESS),
incentivesController.getUserUnclaimedRewards(user)
);
}
}

View File

@ -74,6 +74,7 @@ interface IUiPoolDataProvider {
returns (
AggregatedReserveData[] memory,
UserReserveData[] memory,
uint256,
uint256
);
}