contract icon indicating copy to clipboard operation
contract copied to clipboard

Stated Intent via Telegram of Larger/Longer Interaction is Multiplicative

Open kbahr opened this issue 6 years ago • 2 comments

https://github.com/BitcoinHEX/contract/blob/c703f85549ea72001fb99fc49f71c67dd73fe17d/contracts/StakeableToken.sol#L318

The math works for additive bonuses on the input, but Richard has mentioned explicitly that the intent was for the bonuses to multiply, e.g. 75M for 1821 days => 75M * (1 + (1820-1)/1820) * (1 + 75M/1500M) = 157.5M vs 75M for 1821 days => 75M + (182075M + 1500M(1821-1))/(1820*1500M) = 153.75M

kbahr avatar Apr 14 '19 12:04 kbahr

157.5 M is correct, after all in ( ) are answered then the two sides are * then * again by 75M. IM not sure what input means so I could be wrong.

jimmybenjamin avatar Apr 18 '19 09:04 jimmybenjamin

What I mean is that the contract currently does the second thing, the wrong thing.

On Thu, Apr 18, 2019 at 2:15 AM senorjimmy [email protected] wrote:

157.5 M is correct, after all in ( ) are answered then the two sides are * then * again by 75M. IM not sure what input means so I could be wrong.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BitcoinHEX/contract/issues/19#issuecomment-484421001, or mute the thread https://github.com/notifications/unsubscribe-auth/AA5WUFQBBFWDOIXZVUMZTZDPRA3ZPANCNFSM4HF2LKAA .

kbahr avatar Apr 18 '19 11:04 kbahr