Skip to content

Commit

Permalink
chore: fix linting issue in rewardmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanelly95 committed Jul 4, 2022
1 parent e0c9e4a commit 8c94e8b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contracts/Core/RewardManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ contract RewardManager is Initializable, Constants, RewardManagerParams, IReward
uint256 delegatorShare = blockReward - ((blockReward * stakerSRZR) / totalSupply);
uint8 commissionApplicable = staker.commission < maxCommission ? staker.commission : maxCommission;
uint256 stakerReward = (delegatorShare * commissionApplicable) / 100;
stakeManager.setStakerStake(epoch, stakerId, StakeChanged.BlockReward, staker.stake, staker.stake + (blockReward - stakerReward));
stakeManager.setStakerStake(
epoch,
stakerId,
StakeChanged.BlockReward,
staker.stake,
staker.stake + (blockReward - stakerReward)
);
stakeManager.setStakerStakerReward(
epoch,
stakerId,
Expand Down

0 comments on commit 8c94e8b

Please sign in to comment.