We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6978ed commit 191e5b4Copy full SHA for 191e5b4
contracts/misc/UiPoolDataProvider.sol
@@ -204,7 +204,9 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
204
IncentivesControllerData memory incentivesControllerData;
205
206
if (address(0) != address(incentivesController)) {
207
- incentivesControllerData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user);
+ if (user != address(0)) {
208
+ incentivesControllerData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user);
209
+ }
210
incentivesControllerData.emissionEndTimestamp = incentivesController.DISTRIBUTION_END();
211
}
212
0 commit comments