logos-co / staking

SNT Staking contracts
Creative Commons Zero v1.0 Universal
0 stars 4 forks source link

refactor(StakeManager): initialMP -> bonusMP, currentMP -> totalMP #95

Closed 0x-r4bbit closed 4 months ago

0x-r4bbit commented 4 months ago

After discussing this offline, we've decided that the naming of these properties was misleading. This commit performs the following changes:

Rationale:

initialMP indicates that this is an immutable field which is not the case as in scenarios where accounts increase the lock() time, they'll also increase their bonus multiplier (initialMP).

currentMP was misleading in combination with initialMP. Really what it reflects is the total multiplier points of an account including its bonus multiplier points.

Checklist

Ensure you completed all of the steps below before submitting your pull request: