case for when there is no user

This commit is contained in:
sendra 2021-06-08 15:27:57 +02:00
parent a6978ed6ba
commit 191e5b4319

View File

@ -204,7 +204,9 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
IncentivesControllerData memory incentivesControllerData;
if (address(0) != address(incentivesController)) {
incentivesControllerData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user);
if (user != address(0)) {
incentivesControllerData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user);
}
incentivesControllerData.emissionEndTimestamp = incentivesController.DISTRIBUTION_END();
}