could anybody here be able to offer assistance on how pos is calculated? i have been searching through a few pos coins codes to see if i can find where the bulk of pos working is as i wish to try a few edits to it.
im really looking for the bit where it takes your balance available for pos and multiplys it by your pos reward
any and all help apreciated.
POS is calculated in two areas, in the main.h file listing the main switch for POS percent
static const int64_t MAX_MINT_PROOF_OF_STAKE = 10 * CENT; // 10% per year
In the main.cpp file around line 1000 and should look something like this
int64_t GetProofOfStakeReward(int64_t nCoinAge, unsigned int nBits, unsigned int nTime, int64_t nFees)