mirror of
https://github.com/logos-co/staking.git
synced 2025-01-10 18:56:00 +00:00
fix(StakeManager): use a correct MP formula
This commit is contained in:
parent
c356954302
commit
2a762d6a41
@ -424,15 +424,15 @@ contract StakeManager is Ownable {
|
|||||||
return _increasedMP; //just return tested value
|
return _increasedMP; //just return tested value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @notice Calculates increased multiplier points for given balance and time
|
* @notice Calculates increased multiplier points for given balance and time
|
||||||
* @param _balance balance of account
|
* @param _balance balance of account
|
||||||
* @param _deltaTime time difference
|
* @param _deltaTime time difference
|
||||||
* @return _increasedMP increased multiplier points
|
* @return _increasedMP increased multiplier points
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function _getIncreasedMP(uint256 _balance, uint256 _deltaTime) private pure returns (uint256 _increasedMP) {
|
function _getIncreasedMP(uint256 _balance, uint256 _deltaTime) private pure returns (uint256 _increasedMP) {
|
||||||
return _balance * ((MP_APY / YEAR) * _deltaTime);
|
return _balance * ((_deltaTime / YEAR) * MP_APY);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user