Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wildmolasses committed Apr 10, 2024
1 parent bac9031 commit e7181c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/UniStaker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ contract UniStaker is INotifiableRewardReceiver, Multicall, EIP712, Nonces {

uint256 _reward = scaledUnclaimedRewardCheckpoint[_beneficiary] / SCALE_FACTOR;
if (_reward == 0) return;
// retain sub-wei dust that would be left due to the precision loss
scaledUnclaimedRewardCheckpoint[_beneficiary] =
scaledUnclaimedRewardCheckpoint[_beneficiary] - (_reward * SCALE_FACTOR);
emit RewardClaimed(_beneficiary, _reward);
Expand Down

0 comments on commit e7181c2

Please sign in to comment.