Skip to content

Commit

Permalink
fix(StakeManager): change order of call of mintBonusMP to fix intende…
Browse files Browse the repository at this point in the history
…d behavior.
  • Loading branch information
3esmit authored and 0x-r4bbit committed Sep 12, 2024
1 parent 0c58dfe commit 3e5361f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/StakeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ contract StakeManager is Ownable {
account.lockUntil = block.timestamp + _secondsToLock;
account.epoch = currentEpoch; //starts in current epoch
account.rewardAddress = StakeVault(msg.sender).owner();
_mintBonusMP(account, _secondsToLock, _amount); //TODO: remove this function competely
account.balance = _amount;
account.mpLimitEpoch = mpLimitEpoch;
_mintBonusMP(account, _secondsToLock, _amount);

//update global storage
totalSupplyBalance += _amount;
Expand Down

0 comments on commit 3e5361f

Please sign in to comment.