Post
Topic
Board Archival
Re: [ANN] [ILT] Intellect | X11 | 3650% Annually
by
lasybear
on 06/03/2015, 07:47:11 UTC
I'm no expert, but looks like the problem is here:

https://github.com/intellect-project/intellect/blob/master/src/main.cpp#L1000

Code:
int64_t nSubsidy = nCoinAge * nRewardCoinYear / 365 / COIN;

It divides by COIN(/ COIN) and doesn't multiply (* COIN), putting the block subsidy in non satoshi format. nSubsidy is in satoshis.

If this is the case(99% sure it is), I suggest everyone simply stop running their wallets until a fork because your coin age will persist, and you will have "gained" block subsidy upon staking post-fork. Opposed to now at least.

Did you check this?
https://github.com/intellect-project/intellect/blob/master/src/main.h#L41:
Code:
static const int64_t MAX_MINT_PROOF_OF_STAKE = 36.50 * COIN; // 3650% annual interest
https://github.com/intellect-project/intellect/blob/master/src/main.cpp#L998:
Code:
    int64_t nRewardCoinYear;
    nRewardCoinYear = MAX_MINT_PROOF_OF_STAKE;
    int64_t nSubsidy = nCoinAge * nRewardCoinYear / 365 / COIN;

So,
nSubsidy == nCoinAge * (36.50 * COIN) / 365 / COIN == nCoinAge * 36.50 / 365

I think, *COIN and /COIN used for correct float-int conversion.