Open 0x-r4bbit opened 6 days ago
Just to help clear-up this formula, removing the $SCALE_{FACTOR}$:
$$
MP_{bonus} = A_{balance} + \left(A_{balance} \times \left(\frac{t_{locked} \times M_{MAX}}{t_{MAX}}\right)\right)
$$
I found this simplification:
$$
MP_{bonus} = A_{balance} \times \left(1 + \frac{t_{locked} \times M_{MAX}}{t_{MAX}} \right)
$$
However, I need to check if this simplification is doable in solidity.
This was raised by @3esmit in https://github.com/vacp2p/staking-reward-streamer/pull/48#issuecomment-2409912237.
Goal of this issue to analyze the impact of these two versions and making the changes if necessary. There's also a chance we can stick with what we have, but right now it seems unclear.