- Remove accounting of burned coins as part of pindex->nMoneySupply
(This can be added later as a separate variable).
- Update formula to calculate payouts and masternode and dev fees to not suffer from floating point inaccuracy
Move bet params to chainparams and clean up the code
**Notable changes**
Beting begins on block 240000 and 20998 for testnet.
Better overview of all params in one place, will be moved to separate class in near future
Betting works pre and past zerocoin v2
- harcoded betting params moved to chainparams
- new variables in chainparams.cpp
- Works with dirty bugfix: reward pays too much
- Main net zerocoin v2 block is set
- Testnet zerocoin v2 start block is set
- New checkpoints
- Sync works with protocol 70918 up to the last same block
New betting params (from main)
- /** Bet related parameters **/
- nBetStartHeight = 240000;
- strOracleWalletAddr = "WdoAnFfB59B2ka69vcxhsQokwufuKzV7Ty"; // Oracle payout address
- nBetBlocksIndexTimespan = 20160;
- strDevPayoutAddr = "Wm5om9hBJTyKqv5FkMSfZ2FDMeGp12fkTe"; // Dev payout address
- strOMNOPayoutAddr = "WRBs8QD22urVNeGGYeAMP765ncxtUA1Rv2"; // OMNO Payout address
- nOMNOReward = 94 * 100 * 0.024; // profitAcc / 94 * 100 * 0.024 (nMNBetReward = totalAmountBet * 0.024)
- nDevReward = 94 * 100 * 0.006; // profitAcc / 94 * 100 * 0.006
- nOddsDivisor = 10000; // Odds divisor
- nBetXPercent = 6; // 6 percent
- nTraverseBlocksAmount = 129600; // Traverse block amount a event scan to match a result and all the bets on a result.
- nBetBlockPayoutAmount = 1440; // Set the number of blocks we want to look back for results already bpaid out.
- strBetResultTypeID = "3"; // result type ID
- strBetEventID = "2"; // event type ID
- nMinBetPayoutRange = 50; // Only payout bets that are between 50 - 10000 WRG inclusive.
- nMaxBetPayoutRange = 10000; // Only payout bets that are between 50 - 10000 WRG inclusive.
- nBetPlaceTimeoutBlocks = 1200; // If bet was placed less than 1200 blocks (20 mins) before event start or after event start discard it.
- Updated betting part according to the changes, mainly cleaned up
-