Skip to content

Commit 191e5b4

Browse files
committed
case for when there is no user
1 parent a6978ed commit 191e5b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contracts/misc/UiPoolDataProvider.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
204204
IncentivesControllerData memory incentivesControllerData;
205205

206206
if (address(0) != address(incentivesController)) {
207-
incentivesControllerData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user);
207+
if (user != address(0)) {
208+
incentivesControllerData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user);
209+
}
208210
incentivesControllerData.emissionEndTimestamp = incentivesController.DISTRIBUTION_END();
209211
}
210212

0 commit comments

Comments
 (0)