Skip to content

Commit

Permalink
Correct PendingSushi passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearwood committed Apr 15, 2021
1 parent 94800cf commit c0bdabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/MasterChefV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ contract MasterChefV2 is BoringOwnable, BoringBatchable {

IRewarder _rewarder = rewarder[pid];
if (address(_rewarder) != address(0)) {
_rewarder.onSushiReward(pid, msg.sender, to, 0, user.amount);
_rewarder.onSushiReward(pid, msg.sender, to, _pendingSushi, user.amount);
}
}

Expand Down

0 comments on commit c0bdabe

Please sign in to comment.