Skip to content

Commit

Permalink
fix(StakeManager): use a correct MP formula
Browse files Browse the repository at this point in the history
  • Loading branch information
3esmit committed Feb 22, 2024
1 parent a2831a8 commit 1280eb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/StakeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,8 @@ contract StakeManager is Ownable {
* @param _deltaTime time difference
* @return _increasedMP increased multiplier points
*/

function _getIncreasedMP(uint256 _balance, uint256 _deltaTime) private pure returns (uint256 _increasedMP) {
return _balance * ((MP_APY / YEAR) * _deltaTime);
return _balance * ((_deltaTime / YEAR) * MP_APY);
}

/**
Expand Down

0 comments on commit 1280eb1

Please sign in to comment.