Skip to content

Commit

Permalink
Updates rewardAmount in finished doPayout.
Browse files Browse the repository at this point in the history
  • Loading branch information
shipunyc committed Aug 4, 2021
1 parent 3063b46 commit 924e87f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/Staking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ contract Staking is IStaking, Ownable, WeekManaged, NonReentrancy, BaseRelayReci

if (payoutInfo[assetIndex_][payoutId].finished) {
// In case someone paid for the difference.
user.rewardDebt = user.amount.mul(poolInfo.accRewardPerShare).div(UNIT_PER_SHARE);
return;
}

Expand Down

0 comments on commit 924e87f

Please sign in to comment.