Skip to content

Commit

Permalink
fix: use -=
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyonline committed May 16, 2024
1 parent 52f597f commit 87c88c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/staking/StakingRewardsMulti.sol
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ contract StakingRewardsMulti is ReentrancyGuard, Pausable {
require(_amount > 0, "Must be >0");

// remove amount from total supply and user balance
_totalSupply = _totalSupply - _amount;
_balances[msg.sender] = _balances[msg.sender] - _amount;
_totalSupply -= _amount;
_balances[msg.sender] -= _amount;

// send the requested amount, emit the event
stakingToken.safeTransfer(msg.sender, _amount);
Expand Down

0 comments on commit 87c88c7

Please sign in to comment.