mirror of https://github.com/logos-co/staking.git
fix(StakeManager): change order of call of mintBonusMP to fix intended behavior.
This commit is contained in:
parent
dcc4f7c1a0
commit
a271720ae6
|
@ -205,9 +205,9 @@ contract StakeManager is Ownable {
|
||||||
account.lockUntil = block.timestamp + _secondsToLock;
|
account.lockUntil = block.timestamp + _secondsToLock;
|
||||||
account.epoch = currentEpoch; //starts in current epoch
|
account.epoch = currentEpoch; //starts in current epoch
|
||||||
account.rewardAddress = StakeVault(msg.sender).owner();
|
account.rewardAddress = StakeVault(msg.sender).owner();
|
||||||
|
_mintBonusMP(account, _secondsToLock, _amount); //TODO: remove this function competely
|
||||||
account.balance = _amount;
|
account.balance = _amount;
|
||||||
account.mpLimitEpoch = mpLimitEpoch;
|
account.mpLimitEpoch = mpLimitEpoch;
|
||||||
_mintBonusMP(account, _secondsToLock, _amount);
|
|
||||||
|
|
||||||
//update global storage
|
//update global storage
|
||||||
totalSupplyBalance += _amount;
|
totalSupplyBalance += _amount;
|
||||||
|
|
Loading…
Reference in New Issue