void ReceivedBet(CoinichiwaBet ReceivedBet) { delay = ReceivedBet.delay; LastBet = DateTime.Now; Bet tmp = new Bet(); tmp.Amount = (decimal)amount; tmp.date = DateTime.Now; tmp.Roll = (decimal)ReceivedBet.luckyNumber; tmp.Id = ReceivedBet.betid; tmp.Profit = (decimal)ReceivedBet.profit / 100000000m; tmp.high = High; tmp.Chance = (decimal)chance; tmp.nonce = ReceivedBet.seedIncrement; tmp.serverhash = ""; tmp.clientseed = ""; bool Win = (((bool)tmp.high ? (decimal)tmp.Roll > (decimal)maxRoll - (decimal)(tmp.Chance) : (decimal)tmp.Roll < (decimal)(tmp.Chance))); if (Win) { wins++; } else { losses++; } bets++; balance = ReceivedBet.balance / 100000000.0; profit += (double)tmp.Profit; wagered += (double)tmp.Amount; FinishedBet(tmp); }
void ReceivedBet(CoinichiwaBet ReceivedBet) { delay = ReceivedBet.delay; LastBet = DateTime.Now; Bet tmp = new Bet(); tmp.Amount = (decimal)amount; tmp.date = DateTime.Now; tmp.Roll = (decimal)ReceivedBet.luckyNumber; tmp.Id = ReceivedBet.betid; tmp.Profit = (decimal)ReceivedBet.profit / 100000000m; tmp.high = High; tmp.Chance = (decimal)chance; tmp.nonce = ReceivedBet.seedIncrement; tmp.serverhash = ""; tmp.clientseed = ""; bool Win = (((bool)tmp.high ? (decimal)tmp.Roll > (decimal)maxRoll - (decimal)(tmp.Chance) : (decimal)tmp.Roll < (decimal)(tmp.Chance))); if (Win) wins++; else losses++; bets++; balance = ReceivedBet.balance/100000000.0; profit += (double)tmp.Profit; wagered += (double)tmp.Amount; FinishedBet(tmp); }