Contract 0xc98C7b13b2577BE006B4bF04418a115d43B1489e

 
Ad
Crypto.com
Txn Hash Method
Block
From
To
Value
0xc49cb180410b655860a0c55145893a2eed5009e8933a04d18e1d82c4d04697acInvest Cancel19934762016-08-01 18:59:181829 days 13 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether0.0007253220
0x441d6c3e2dd3f16bfb3f30178b02ba33f00dd8644a4079cf202737ade524aba3Owner Close Cont...19934752016-08-01 18:58:271829 days 13 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether0.0008651620
0xeafa42cb3683202edbd48b9c760798bbb52a3627e24fe14d545aa7e9aa9ca2efDraw19915082016-08-01 11:01:351829 days 21 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether0.008081320
0xfd6969c0c13e0f6a604fa8dbcc9631c018870e7fd5d0c818d27258127738d212Draw Prepare19914952016-08-01 10:58:321829 days 21 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether0.0008749420
0x7ca43a0be50af123b1152f93c6201082fc93849f83b29b818eb2ea70b8f44188Draw19447572016-07-24 16:12:451837 days 16 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether0.0080860420
0x3e1227eb84b9a9efa2a9454aaa5fe72dbd88e903144a7fa6843dc1ae5e9118f6Draw Prepare19447092016-07-24 16:01:371837 days 16 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether0.0008749420
0xad2fdb80882c520a796fd79e882e0ba0c679598b05754524ad86cc24f81d1a75Invest Add19032702016-07-17 18:57:191844 days 13 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  0xc98c7b13b2577be006b4bf04418a115d43b1489e50 Ether0.00367094995421.505272144
0x3eb0387c2054c62a796592036aa324718f6c8043d0441a729e3031f02a082c7bDraw19032502016-07-17 18:53:041844 days 13 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether0.00899180589421.505272144
0x5faf4989b9eb17c2233d74cf97e540c17b5db9797460ac0a2db72478ef4efb8cDraw Prepare19032182016-07-17 18:45:591844 days 14 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether0.0009407911421.505272144
0xa2363bb98e71885b3e39d65347c74507bd24e052984702cf1538f8bafd88bf100x6060604018899512016-07-15 14:11:101846 days 18 hrs ago0x3f2da093bb16eb064f8bfa9e30b929d15f8e1c4c IN  Contract Creation0 Ether0.0811632220
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x714fe830afcd79953ba7584cde23a09bdc824d32bf4135cef3738ba361e8a26d24405302016-10-14 19:49:421755 days 13 hrs ago 0xa00d52431f51223b6cff30aefb8d08007d6a1c74 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xca761e4534db9b7c10fbff429a3b2ec050095c819389fb7f88222a584071e36924405272016-10-14 19:49:161755 days 13 hrs ago 0x178c793b18a1e53b6402a7454b61b1046f8adf99 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x88b6693e0f338c153bc1d990ae44e4c3409b561ccf19ec62654c45cadd74a7fe24396002016-10-14 16:14:241755 days 16 hrs ago 0x87fb2458ef0d5be4a43acb2e728d1741812bf6eb 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xaef0d0de5e4dd14731b900f6f4c8b01449a54769ae965a5156275fd24680d02424395942016-10-14 16:13:531755 days 16 hrs ago 0xa76151762bd6b8eefc5d70f297bd8f3e8ca8d240 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x27470aa1d18588247386a3703b2f11a8ab4c4c4b4075a22069c291acea5901c824395922016-10-14 16:13:121755 days 16 hrs ago 0xb1ebfb6b7268e0ba004c1fe606815636057bb774 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xe095db44c9d29b7d14e22eebdd92321d8a8019ef87858b28239a7d073423819624391492016-10-14 14:29:041755 days 18 hrs ago 0x880b322587937e0e1fe37b868dc2339575bc0a79 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x6fc0bfe696f4bf300fbf691313e55dbe39240af88135b9fbf1fc1e5fefb8b5ba24390742016-10-14 14:07:271755 days 18 hrs ago 0x273346fa685408cfde4b5f1d620c8e5c265df84a 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xb6f2bc0794302d6e2ec6195a07f317a3a6d278e6306fd252c735ef59c3ecbbbe24389482016-10-14 13:30:491755 days 19 hrs ago 0x1c6b5a73c53eca8c90cf8b7066610f3e18065aad 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xa06018177dbdb52c1e95ee5b91ee2e2ea5472646566d8cff96ff440cf7612d4924389362016-10-14 13:27:501755 days 19 hrs ago 0xbe33f67647898a7342da8ac65765c6746040e0b8 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xd4ff20b8123e231d199333bb97ac3c08eb767157e93f2948ba5204211d2ef89124388632016-10-14 13:10:531755 days 19 hrs ago 0x889297dca98c10be6f7ad2ce98d8aace155d27b3 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x684acf4e91e28b54348460ed0e96e2685e075ec9ebc31fb279205ad815ffa9bc24387242016-10-14 12:32:191755 days 20 hrs ago 0x5e7aad31e35793ddee4996f84b39911a2b47ccf9 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x316ca7fda55f933e4c318bcc9bcabddf68e406eb91070d8638364a52b5cfa81624385172016-10-14 11:39:211755 days 21 hrs ago 0x713e473bcd07880ce4401512b91664951883cce7 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xefb932fce3c0580599c99aa4f34cc2dc711f2f3859a116ab8ded9624cd76bdf724385072016-10-14 11:35:481755 days 21 hrs ago 0xb8f9959c1f996236af2996413dd88308b6d9efc1 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x0326f57a16fb204d8da452589e69c8b6854dfc6125e9bedf3b2f486e5b1fcb4e24384652016-10-14 11:24:341755 days 21 hrs ago 0x690ac703e69138e37238a086d2eebcaeb2cf5abd 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x0414ccdbcddf309c2d86a6ad9850249190b2ad75c6823a8b59cca3d3d499b56b24384592016-10-14 11:22:491755 days 21 hrs ago 0xa69e954d4ca939bd22af794a8702c377876c53fa 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x261df5341e1aa09ebb63a9111733778dfe920dad29d82f4ac842a8b4e24041cd24384382016-10-14 11:18:021755 days 21 hrs ago 0x83859940431967251a48ee08014d52dfbfe6ce44 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x5cd7ff67f1004222aefe06ebc4d742e5bf8333f470a7334f25e7844bd06f7f3c24384352016-10-14 11:17:301755 days 21 hrs ago 0x1a8ec4f3b910b76f2b4e1f690aaeaa164e8d0ea2 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xd2a129377156f4ec5c719427c42f24b80468486091bc881bd48d43bdb2b6afcb24384332016-10-14 11:17:031755 days 21 hrs ago 0x77f70cc52fe611b70bafd2f2029ac39534189e2a 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x63f9f45958dfc581f3835e3e28c494ff0107669a8d2027c514c79ed8aa788ee524383882016-10-14 11:07:591755 days 21 hrs ago 0xc821aa24ad4080ab0dee22d03ad799efb0b297ed 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xfffc12100b50949dc499d060d0dbfc263ca1162973a1e4bad4d19cf0214b6d3a24383832016-10-14 11:06:361755 days 21 hrs ago 0x44a0932a883c40b73eeb0b14ad08b22d6fce0501 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xdf5d0fe33c1545af2ef70263b640764b3a79a2c8f21f8ca642eba10aaee5ec7724383322016-10-14 10:55:591755 days 21 hrs ago 0xdab76543bf59cc8a7a05bb7d3d5df7f66821e851 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0x92a2f324c003cf0488529bd8b4a4189b5a133520e2df820225ca92c70aeb1f6b24383212016-10-14 10:53:391755 days 21 hrs ago 0x1f6693bbc3a8c0f3d780912800787363523eb8e6 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xdfc118096e5c8c0c7a251dbc485d52fe1dcbf13cd8c39c95fcf9bae08f926eac24382872016-10-14 10:44:331755 days 22 hrs ago 0x7caaf6c22694766f66c6a1d9e859485eeb24f95e 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xe7fda5e8253156dad8788a2ab63cb59986916041a29987846a6a7d4b020037db24382762016-10-14 10:42:091755 days 22 hrs ago 0xf5fabdc5dc8631c7bed06ea7b9b92963464b3a1f 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
0xf4cda6f03d34d206f1a3986515879b913594f2c3e944dd8c0a5db582d5e2830124382642016-10-14 10:39:131755 days 22 hrs ago 0x08151f5ae597fc9f0fe838cbb04ec6a0bbb1c66a 0xc98c7b13b2577be006b4bf04418a115d43b1489e0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WeeklyLotteryB

Compiler Version
v0.3.5-2016-07-01-48238c9

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2016-07-15
*/

/*
	WeeklyLotteryB
	Coded by: iFA
	http://wlb.ethereumlottery.net
	ver: 1.0
*/

contract WLBdrawsDBInterface {
	function newDraw(uint date, uint8[3] numbers, uint hit3Count, uint hit3Value, uint hit2Count, uint hit2Value);
	function getDraw(uint id) constant returns (uint date, uint8[3] numbers, uint hit3Count, uint hit3Value, uint hit2Count, uint hit2Value);
}

contract WeeklyLotteryB {
	/* structures */
	struct games_s {
		uint ticketsCount;
		mapping(bytes32 => uint) hit3Hash;
		mapping(bytes32 => uint) hit2Hash;
		uint startTimestamp;
		uint endTimestamp;
		bytes3 winningNumbersBytes;
		uint prepareBlock;
		bool drawDone;
		uint prizePot;
		uint paidPot;
		uint hit3Count;
		uint hit3Value;
		uint hit2Count;
		uint hit2Value;
	}
	struct playerGames_s {
		bytes3[] numbersBytes;
		mapping(bytes32 => uint) hit3Hash;
		mapping(bytes32 => uint) hit2Hash;
		bool checked;
	}
	struct players_s {
		mapping(uint => playerGames_s) games;
	}
	struct investors_s {
		address owner;
		uint value;
		uint balance;
		bool live;
		bool valid;
		uint begins;
	}
	struct draws_s {
		uint date;
		uint gameID;
		bytes3 numbersBytes;
		uint hit3Count;
		uint hit3Value;
		uint hit2Count;
		uint hit2Value;
	}
	/* config */
	uint public constant ticketPrice = 100 finney; // 0.1 ether
	uint private constant drawMaxNumber = 50;
	uint private constant drawBlockDelay = 5;
	uint private constant prizeDismissDelay = 5;
	uint private constant contractDismissDelay = 5 weeks;
	uint private constant investUnit = 1 ether;
	uint private constant investMinimum = 10 ether;
	uint private constant investUserLimit = 200;
	uint private constant investMinDuration = 5; // 5 draw!
	uint private constant investIdleTime = 1 days;
	uint private constant forOwner = 2; //%
	uint private constant forInvestors = 40; //%
	uint private constant forHit2 = 30; //%
	/* variables */
	address private WLBdrawsDB;
	address private owner;
	uint private currentJackpot;
	uint private investmentsValue;
	uint private extraJackpot;
	uint private ticketCounter;
	uint private currentGame;
	uint private ownerBalance;
	bool public contractEnabled = true;
	uint private contractDisabledTimeStamp;
	mapping(address => players_s) private players;
	games_s[] private games;
	investors_s[] private investors;
	/* events */
	event NewTicketEvent(address Player, uint8 Number1, uint8 Number2, uint8 Number3);
	event ContractDisabledEvent(uint DeadlineTime);
	event DrawPrepareEvent(uint BlockNumber);
	event DrawEvent(uint GameID, uint8 Number1, uint8 Number2, uint8 Number3, uint Hit3Count, uint Hit3Value, uint Hit2Count, uint Hit2Value);
	event InvestAddEvent(address Investor, uint Value);
	event InvestCancelEvent(address Investor, uint Value);
	/* constructor */
	function WeeklyLotteryB(address _WLBdrawsDB) {
		WLBdrawsDB = _WLBdrawsDB;
		owner = msg.sender;
		currentGame = 1;
		games.length = 2;
		games[1].startTimestamp = now;
		games[1].endTimestamp = calcNextDrawTime();
	}
	/* constant functions */
	function Visit() constant returns (string) { return "http://wlb.ethereumlottery.net"; }
	function Draws(uint id) constant returns (uint date, uint8[3] Numbers, uint hit3Count, uint hit3Value, uint hit2Count, uint hit2Value) {
		return WLBdrawsDBInterface( WLBdrawsDB ).getDraw(id);
	}
	function CurrentGame() constant returns (uint GameID, uint Jackpot, uint Start, uint End, uint Tickets) {
		return (currentGame, currentJackpot, games[currentGame].startTimestamp, games[currentGame].endTimestamp, games[currentGame].ticketsCount);
	}
	function PlayerTickets(address Player, uint GameID, uint TicketID) constant returns (uint8[3] numbers, bool Checked) {
		return ( getNumbersFromBytes( players[Player].games[GameID].numbersBytes[TicketID] ), players[Player].games[GameID].checked);
	}
	function Investors(address Address) constant returns(uint Investment, uint Balance, bool Live) {
		var (found, InvestorID) = getInvestorByAddress(Address);
		if (found == false || ! investors[InvestorID].valid) {
			return (0, 0, false);
		}
		return (investors[InvestorID].value, investors[InvestorID].balance, investors[InvestorID].live);
	}
	/* callback function */
	function () {
		var Numbers = getNumbersFromHash(sha3(block.coinbase, now, ticketCounter));
		BuyTicket(Numbers[0],Numbers[1],Numbers[2]);
	}
	/* external functions for players */
	function BuyTicket(uint8 Number1, uint8 Number2, uint8 Number3) noContract OnlyEnabled {
		var Numbers = [Number1 , Number2 , Number3];
		if ( ! checkNumbers( Numbers )) { throw; }
		Numbers = sortNumbers(Numbers);
		if (msg.value < ticketPrice) { throw; }
		if (msg.value-ticketPrice > 0) { if ( ! msg.sender.send( msg.value-ticketPrice )) { throw; } }
		if (currentJackpot == 0) { throw; }
		if (games[currentGame].endTimestamp < now) { throw; }
		ticketCounter++;
		games[currentGame].ticketsCount++;
		bytes32 hash0 = sha3( Numbers[0], Numbers[1], Numbers[2] );
		bytes32 hash1 = sha3( Numbers[0], Numbers[1]);
		bytes32 hash2 = sha3( Numbers[0], Numbers[2]);
		bytes32 hash3 = sha3( Numbers[1], Numbers[2]);
		games[currentGame].hit3Hash[hash0]++;
		games[currentGame].hit2Hash[hash1]++;
		games[currentGame].hit2Hash[hash2]++;
		games[currentGame].hit2Hash[hash3]++;
		players[msg.sender].games[currentGame].numbersBytes.push ( getBytesFromNumbers(Numbers) );
		players[msg.sender].games[currentGame].hit3Hash[hash0]++;
		players[msg.sender].games[currentGame].hit2Hash[hash1]++;
		players[msg.sender].games[currentGame].hit2Hash[hash2]++;
		players[msg.sender].games[currentGame].hit2Hash[hash3]++;
		NewTicketEvent( msg.sender, Numbers[0], Numbers[1], Numbers[2] );
	}
	function CheckTickets() external noEther noContract {
		uint _value;
		uint gameID;
		uint gameLowID;
		uint8[3] memory numbers;
		bool ok;
		uint hit3Count;
		uint hit2Count;
		if (currentGame < prizeDismissDelay) {
			gameLowID = 1;
		} else {
			gameLowID = currentGame-prizeDismissDelay;
		}
		for ( gameID=currentGame ; gameID>=gameLowID ; gameID-- ) {
			if ( ! players[msg.sender].games[gameID].checked) {
				if (games[gameID].drawDone) {
					numbers = getNumbersFromBytes(games[gameID].winningNumbersBytes);
					hit3Count = players[msg.sender].games[gameID].hit3Hash[sha3( numbers[0], numbers[1], numbers[2] )];
					_value += hit3Count * games[gameID].hit3Value;
					hit2Count = players[msg.sender].games[gameID].hit2Hash[sha3( numbers[0], numbers[1] )];
					hit2Count += players[msg.sender].games[gameID].hit2Hash[sha3( numbers[0], numbers[2] )];
					hit2Count += players[msg.sender].games[gameID].hit2Hash[sha3( numbers[1], numbers[2] )];
					hit2Count -= hit3Count*3;
					_value += hit2Count * games[gameID].hit2Value;
					players[msg.sender].games[gameID].checked = true;
					ok = true;
				} else if ( ! contractEnabled && gameID == currentGame) {
					_value += players[msg.sender].games[gameID].numbersBytes.length * ticketPrice;
					players[msg.sender].games[gameID].checked = true;
					ok = true;
				}
			}
		}
		if ( ! ok) { throw; }
		if (_value > 0) { if ( ! msg.sender.send(_value)) { throw; } }
	}
	/* external functions for investors */
	function InvestAdd() external OnlyEnabled noContract {
		uint value_ = msg.value;
		if (value_ < investUnit) { throw; }
		if (value_ % investUnit > 0) { 
			if ( ! msg.sender.send( value_ % investUnit )) { throw; } 
			value_ = value_ - (value_ % investUnit);
		}
		if (value_ < investMinimum) { throw; }
		var (found, InvestorID) = getInvestorByAddress(msg.sender);
		if (found == false) {
			if (investors.length == investUserLimit) { throw; }
			InvestorID = investors.length;
			investors.length++;
		}
		if (investors[InvestorID].valid && investors[InvestorID].live) {
			investors[InvestorID].value += value_;
		} else {
			investors[InvestorID].value = value_;
		}
		investors[InvestorID].begins = currentGame;
		investors[InvestorID].valid = true;
		investors[InvestorID].live = true;
		investors[InvestorID].owner = msg.sender;
		investmentsValue += value_;
		setJackpot();
		InvestAddEvent(msg.sender, value_);
	}
	function InvestWithdraw() external noEther {
		var (found, InvestorID) = getInvestorByAddress(msg.sender);
		if (found == false) { throw; }
		if ( ! investors[InvestorID].valid) { throw; }
		uint _balance = investors[InvestorID].balance;
		if (_balance == 0) { throw; }
		investors[InvestorID].balance = 0;
		if ( ! msg.sender.send( _balance )) { throw; }
	}
	function InvestCancel() external noEther {
		var (found, InvestorID) = getInvestorByAddress(msg.sender);
		if (found == false) { throw; }
		if ( ! investors[InvestorID].valid) { throw; }
		if (contractEnabled) {
			if (investors[InvestorID].begins+investMinDuration > now) { throw; }
			if (games[currentGame].startTimestamp+investIdleTime > now) { throw; }
		}
		uint balance_;
		if (investors[InvestorID].live) {
			investmentsValue -= investors[InvestorID].value;
			balance_ = investors[InvestorID].value;
			setJackpot();
			InvestCancelEvent(msg.sender, investors[InvestorID].value);
		}
		if (investors[InvestorID].balance > 0) {
			balance_ += investors[InvestorID].balance;
		}
		delete investors[InvestorID];
		if ( ! msg.sender.send( balance_ )) { throw; }
	}
	/* draw functions for everyone*/
	function DrawPrepare() noContract OnlyEnabled noEther {
		if (games[currentGame].endTimestamp > now || games[currentGame].prepareBlock != 0) { throw; }
		games[currentGame].prepareBlock = block.number+drawBlockDelay;
		DrawPrepareEvent(games[currentGame].prepareBlock);
	}
	function Draw() noContract OnlyEnabled noEther {
		if (games[currentGame].prepareBlock == 0 || games[currentGame].prepareBlock > block.number) { throw; }
		bytes32 _hash;
		uint hit3Value;
		uint hit3Count;
		uint hit2Value;
		uint hit2Count;
		uint a;
		for ( a = 1 ; a <= drawBlockDelay ; a++ ) {
			_hash = sha3(_hash, block.blockhash(games[currentGame].prepareBlock - drawBlockDelay+a));
		}
		var numbers = getNumbersFromHash(_hash);
		games[currentGame].winningNumbersBytes = getBytesFromNumbers( numbers );
		hit3Count += games[currentGame].hit3Hash[ sha3( numbers[0], numbers[1],numbers[2] ) ];
		hit2Count += games[currentGame].hit2Hash[ sha3( numbers[0], numbers[1]) ];
		hit2Count += games[currentGame].hit2Hash[ sha3( numbers[0], numbers[2]) ];
		hit2Count += games[currentGame].hit2Hash[ sha3( numbers[1], numbers[2]) ];
		hit2Count -= hit3Count*3;
		uint totalPot = games[currentGame].ticketsCount*ticketPrice;
		hit2Value = ( totalPot * forHit2 / 100 );
		games[currentGame].prizePot = hit2Value;
		hit2Value = hit2Value / hit2Count;
		totalPot -= hit2Value;
		uint _ownerBalance = totalPot * forHit2 / 100;
		totalPot -= _ownerBalance;
		ownerBalance += _ownerBalance;
		uint _addInvestorsValue = totalPot * forInvestors / 100;
		addInvestorsValue(_addInvestorsValue);
		totalPot -= _addInvestorsValue;
		if (hit3Count > 0) {
			games[currentGame].prizePot += currentJackpot;
			for ( a=0 ; a < investors.length ; a++ ) {
				delete investors[a].live;
			}
			hit3Value = currentJackpot / hit3Count;
			extraJackpot = 0;
			investmentsValue = 0;
		}
		extraJackpot += totalPot;
		setJackpot();
		DrawEvent(currentGame, numbers[0], numbers[1], numbers[2], hit3Count, hit3Value, hit2Count, hit2Value);
		WLBdrawsDBInterface( WLBdrawsDB ).newDraw( now, numbers, hit3Count, hit3Value, hit2Count, hit2Value);
		games[currentGame].hit3Count = hit3Count;
		games[currentGame].hit3Value = hit3Value;
		games[currentGame].hit2Count = hit2Count;
		games[currentGame].hit2Value = hit2Value;
		games[currentGame].drawDone = true;
		newGame();
	}
	/* owner functions */
	function OwnerGetFee() external OnlyOwner {
		if (ownerBalance == 0) { throw; }
		if (owner.send(ownerBalance) == false) { throw; }
		ownerBalance = 0;
	}
	function OwnerCloseContract() external OnlyOwner noEther {
		if ( ! contractEnabled) {
			if (contractDisabledTimeStamp+contractDismissDelay < now) {
				suicide(owner);
			}
		} else {
			contractEnabled = false;
			contractDisabledTimeStamp = now;
			ContractDisabledEvent(contractDisabledTimeStamp+contractDismissDelay);
			ownerBalance += extraJackpot;
			extraJackpot = 0;
		}
	}
	/* private functions */
	function addInvestorsValue(uint value) private {
		bool done;
		uint a;
		for ( a=0 ; a < investors.length ; a++ ) {
			if (investors[a].live && investors[a].valid) {
				investors[a].balance += value * investors[a].value / investmentsValue;
				done = true;
			}
		}
		if ( ! done) {
			ownerBalance += value;
		}
	}
	function newGame() private {
		currentGame++;
		uint gamesID = games.length;
		games.length++;
		games[gamesID].startTimestamp = now;
		games[gamesID].endTimestamp = calcNextDrawTime();
		if (games.length > prizeDismissDelay) {
			ownerBalance += games[currentGame-prizeDismissDelay].prizePot;
			delete games[currentGame-prizeDismissDelay];
		}
	}
	function getNumbersFromHash(bytes32 hash) private returns (uint8[3] numbers) {
		bool ok = true;
		uint8 num = 0;
		uint hashpos = 0;
		uint8 a;
		uint8 b;
		for (a = 0 ; a < numbers.length ; a++) {
			while (true) {
				ok = true;
				if (hashpos == 32) {
					hashpos = 0;
					hash = sha3(hash);
				}
				num = getPart( hash, hashpos );
				num = num % uint8(drawMaxNumber) + 1;
				hashpos += 1;
				for (b = 0 ; b < numbers.length ; b++) {
					if (numbers[b] == num) {
						ok = false;
						break; 
					}
				}
				if (ok == true) {
					numbers[a] = num;
					break;
				}
			}
		}
		numbers = sortNumbers( numbers );
	}
	function getPart(bytes32 a, uint i) private returns (uint8) { return uint8(byte(bytes32(uint(a) * 2 ** (8 * i)))); }
	function setJackpot() private {
		currentJackpot = investmentsValue + extraJackpot;
	}
	function getInvestorByAddress(address Address) private returns (bool found, uint id) {
		for ( id=0 ; id < investors.length ; id++ ) {
			if (investors[id].owner == Address) {
				return (true, id);
			}
		}
		return (false, 0);
	}
	function checkNumbers(uint8[3] Numbers) private returns (bool) {
		for ( uint a = 0 ; a < Numbers.length ; a++ ) {
			if (Numbers[a] > drawMaxNumber || Numbers[a] == 0) { return; }
			for ( uint b = 0 ; a < Numbers.length ; a++ ) {
				if (a != b && Numbers[a] == Numbers[b]) { return; }
			}
		}
		return true;
	}
	function calcNextDrawTime() private returns (uint ret) {
		ret = 1468152000;
		while (ret < now) {
			ret += 1 weeks;
		}
	}
	function sortNumbers(uint8[3] numbers) private returns(uint8[3] sNumbers) {
		sNumbers = numbers;
		for (uint8 i=0; i<numbers.length; i++) {
			for (uint8 j=i+1; j<numbers.length; j++) {
				if (sNumbers[i] > sNumbers[j]) {
					uint8 t = sNumbers[i];
					sNumbers[i] = sNumbers[j];
					sNumbers[j] = t;
				}
			}
		}
	}
	function getNumbersFromBytes(bytes3 Bytes) private returns (uint8[3] Numbers){
		Numbers[0] = uint8(Bytes);
		Numbers[1] = uint8(uint24(Bytes) /256);
		Numbers[2] = uint8(uint24(Bytes) /256/256);
	}
	function getBytesFromNumbers(uint8[3] Numbers) private returns (bytes3 Bytes) {
		return bytes3(uint(Numbers[0])+uint(Numbers[1])*256+uint(Numbers[2])*256*256);
	}
	/* modifiers */
	modifier noContract() {if (tx.origin != msg.sender) { throw; } _ }
	modifier noEther() { if (msg.value > 0) { throw; } _ }
	modifier OnlyOwner() { if (owner != msg.sender) { throw; } _ }
	modifier OnlyEnabled() { if ( ! contractEnabled) { throw; } _ }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"ticketPrice","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"DrawPrepare","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"Visit","outputs":[{"name":"","type":"string"}],"type":"function"},{"constant":true,"inputs":[{"name":"Player","type":"address"},{"name":"GameID","type":"uint256"},{"name":"TicketID","type":"uint256"}],"name":"PlayerTickets","outputs":[{"name":"numbers","type":"uint8[3]"},{"name":"Checked","type":"bool"}],"type":"function"},{"constant":false,"inputs":[],"name":"InvestWithdraw","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"InvestCancel","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"CheckTickets","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"contractEnabled","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"Number1","type":"uint8"},{"name":"Number2","type":"uint8"},{"name":"Number3","type":"uint8"}],"name":"BuyTicket","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"OwnerCloseContract","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"InvestAdd","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"CurrentGame","outputs":[{"name":"GameID","type":"uint256"},{"name":"Jackpot","type":"uint256"},{"name":"Start","type":"uint256"},{"name":"End","type":"uint256"},{"name":"Tickets","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"Draw","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"id","type":"uint256"}],"name":"Draws","outputs":[{"name":"date","type":"uint256"},{"name":"Numbers","type":"uint8[3]"},{"name":"hit3Count","type":"uint256"},{"name":"hit3Value","type":"uint256"},{"name":"hit2Count","type":"uint256"},{"name":"hit2Value","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"Address","type":"address"}],"name":"Investors","outputs":[{"name":"Investment","type":"uint256"},{"name":"Balance","type":"uint256"},{"name":"Live","type":"bool"}],"type":"function"},{"constant":false,"inputs":[],"name":"OwnerGetFee","outputs":[],"type":"function"},{"inputs":[{"name":"_WLBdrawsDB","type":"address"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"Player","type":"address"},{"indexed":false,"name":"Number1","type":"uint8"},{"indexed":false,"name":"Number2","type":"uint8"},{"indexed":false,"name":"Number3","type":"uint8"}],"name":"NewTicketEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"DeadlineTime","type":"uint256"}],"name":"ContractDisabledEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"BlockNumber","type":"uint256"}],"name":"DrawPrepareEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"GameID","type":"uint256"},{"indexed":false,"name":"Number1","type":"uint8"},{"indexed":false,"name":"Number2","type":"uint8"},{"indexed":false,"name":"Number3","type":"uint8"},{"indexed":false,"name":"Hit3Count","type":"uint256"},{"indexed":false,"name":"Hit3Value","type":"uint256"},{"indexed":false,"name":"Hit2Count","type":"uint256"},{"indexed":false,"name":"Hit2Value","type":"uint256"}],"name":"DrawEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"Investor","type":"address"},{"indexed":false,"name":"Value","type":"uint256"}],"name":"InvestAddEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"Investor","type":"address"},{"indexed":false,"name":"Value","type":"uint256"}],"name":"InvestCancelEvent","type":"event"}]

60606040526001600860006101000a81548160ff02191690830217905550604051602080613c10833981016040528080519060200190919050505b80600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555060016006600050819055506002600b6000508181548183558181151161017f57600e0281600e02836000526020600020918201910161017e91906100cf565b8082111561017a5760006000820160005060009055600382016000506000905560048201600050600090556005820160006101000a81549062ffffff021916905560068201600050600090556007820160006101000a81549060ff021916905560088201600050600090556009820160005060009055600a820160005060009055600b820160005060009055600c820160005060009055600d82016000506000905550600e016100cf565b5090565b5b5050505042600b600050600181548110156100025790600052602060002090600e020160005b50600301600050819055506101b86101f4565b600b600050600181548110156100025790600052602060002090600e020160005b50600401600050819055505b506139f58061021b6000396000f35b600063578238c0905080505b428110156102175762093a80810190508050610200565b5b9056606060405236156100e2576000357c0100000000000000000000000000000000000000000000000000000000900480631209b1f6146101ac57806318433bb7146101cf578063226685ee146101de57806324fb563f146102595780632afb21bc146102bb578063391f2e96146102ca5780633c959aca146102d957806341b3a0d9146102e857806346f7a8831461030d5780635473815714610337578063adfe6b8014610346578063b8aca90b14610355578063d4e7827214610394578063e436bdf3146103a3578063e8930efd1461040d578063e9b9356914610449576100e2565b6101aa5b6060604051908101604052806003905b60008152602001906001900390816100f6579050506101634142600560005054604051808473ffffffffffffffffffffffffffffffffffffffff166c0100000000000000000000000002815260140183815260200182815260200193505050506040518091039020610458565b90506101a68160006003811015610002579090602002015182600160038110156100025790906020020151836002600381101561000257909060200201516105ba565b5b50565b005b6101b96004805050610f00565b6040518082815260200191505060405180910390f35b6101dc6004805050610f0c565b005b6101eb600480505061107a565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f16801561024b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61028160048080359060200190919080359060200190919080359060200190919050506110d2565b60405180836003602002808383829060006004602084601f0104600f02600301f15090500182151581526020019250505060405180910390f35b6102c86004805050611206565b005b6102d7600480505061131e565b005b6102e6600480505061166e565b005b6102f56004805050611e6c565b60405180821515815260200191505060405180910390f35b61033560048080359060200190919080359060200190919080359060200190919050506105ba565b005b6103446004805050611e7f565b005b6103536004805050611fdb565b005b6103626004805050612414565b604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390f35b6103a160048050506124c7565b005b6103b96004808035906020019091905050612e97565b60405180878152602001866003602002808383829060006004602084601f0104600f02600301f150905001858152602001848152602001838152602001828152602001965050505050505060405180910390f35b6104236004808035906020019091905050612f94565b604051808481526020018381526020018215158152602001935050505060405180910390f35b610456600480505061309f565b005b6060604051908101604052806003905b600081526020019060019003908161046857905050600060006000600060006001945060009350600092506000915081505b855060038260ff1610156105a2575b6001156105945760019450845060208314156104e4576000925082508660405180826000191681526020019150506040518091039020965086505b6104ee8784613186565b935083506001603260ff168560ff1606019350835060018301925082506000905080505b855060038160ff16101561055b578360ff16868260ff166003811015610002579090602002015160ff16141561054d5760009450845061055b565b5b8080600101915050610512565b60011515851515141561058f5783868360ff166003811015610002579090602002019060ff16908181526020015050610594565b6104a9565b5b818060010192505061049a565b6105ab866131c8565b955085505b5050505050919050565b6060604051908101604052806003905b60008152602001906001900390816105ca5790505060006000600060003373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614151561062157610002565b600860009054906101000a900460ff16151561063c57610002565b6060604051908101604052808960ff1681526020018860ff1681526020018760ff16815260200150945061066f856132eb565b151561067a57610002565b610683856131c8565b9450845067016345785d8a000034101561069c57610002565b600067016345785d8a0000340311156106f7573373ffffffffffffffffffffffffffffffffffffffff16600067016345785d8a00003403604051809050600060405180830381858888f1935050505015156106f657610002565b5b6000600260005054141561070a57610002565b42600b60005060066000505481548110156100025790600052602060002090600e020160005b5060040160005054101561074357610002565b6005600081815054809291906001019190505550600b60005060066000505481548110156100025790600052602060002090600e020160005b50600001600081815054809291906001019190505550846000600381101561000257909060200201518560016003811015610002579090602002015186600260038110156100025790906020020151604051808460ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f01000000000000000000000000000000000000000000000000000000000000000281526001019350505050604051809103902093508460006003811015610002579090602002015185600160038110156100025790906020020151604051808360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f010000000000000000000000000000000000000000000000000000000000000002815260010192505050604051809103902092508460006003811015610002579090602002015185600260038110156100025790906020020151604051808360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f010000000000000000000000000000000000000000000000000000000000000002815260010192505050604051809103902091508460016003811015610002579090602002015185600260038110156100025790906020020151604051808360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f01000000000000000000000000000000000000000000000000000000000000000281526001019250505060405180910390209050600b60005060066000505481548110156100025790600052602060002090600e020160005b50600101600050600085600019168152602001908152602001600020600081815054809291906001019190505550600b60005060066000505481548110156100025790600052602060002090600e020160005b50600201600050600084600019168152602001908152602001600020600081815054809291906001019190505550600b60005060066000505481548110156100025790600052602060002090600e020160005b50600201600050600083600019168152602001908152602001600020600081815054809291906001019190505550600b60005060066000505481548110156100025790600052602060002090600e020160005b50600201600050600082600019168152602001908152602001600020600081815054809291906001019190505550600a60005060003373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600060066000505481526020019081526020016000206000506000016000508054806001018281815481835581811511610c0457600901600a900481600901600a90048360005260206000209182019101610c039190610be5565b80821115610bff5760008181506000905550600101610be5565b5090565b5b505050919090600052602060002090600a91828204019190066003025b610c2a886133bf565b909190916101000a81548162ffffff02191690837d0100000000000000000000000000000000000000000000000000000000009004021790555050600a60005060003373ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060005060000160005060006006600050548152602001908152602001600020600050600101600050600085600019168152602001908152602001600020600081815054809291906001019190505550600a60005060003373ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060005060000160005060006006600050548152602001908152602001600020600050600201600050600084600019168152602001908152602001600020600081815054809291906001019190505550600a60005060003373ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060005060000160005060006006600050548152602001908152602001600020600050600201600050600083600019168152602001908152602001600020600081815054809291906001019190505550600a60005060003373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600060066000505481526020019081526020016000206000506002016000506000826000191681526020019081526020016000206000818150548092919060010191905055507fc46b644b8851d4aa1053eaa08926a0a82ee715b344b592ee1da4704c164d9cf933866000600381101561000257909060200201518760016003811015610002579090602002015188600260038110156100025790906020020151604051808573ffffffffffffffffffffffffffffffffffffffff1681526020018460ff1681526020018360ff1681526020018260ff16815260200194505050505060405180910390a15b5050505050505050565b67016345785d8a000081565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16141515610f4657610002565b600860009054906101000a900460ff161515610f6157610002565b6000341115610f6f57610002565b42600b60005060066000505481548110156100025790600052602060002090600e020160005b50600401600050541180610fd657506000600b60005060066000505481548110156100025790600052602060002090600e020160005b506006016000505414155b15610fe057610002565b60054301600b60005060066000505481548110156100025790600052602060002090600e020160005b50600601600050819055507f011a8eb7dde1e5744357c01f1f6906816bbc7f719a6c3667cda4b99a82c827e7600b60005060066000505481548110156100025790600052602060002090600e020160005b50600601600050546040518082815260200191505060405180910390a15b565b6020604051908101604052806000815260200150604060405190810160405280601e81526020017f687474703a2f2f776c622e657468657265756d6c6f74746572792e6e6574000081526020015090506110cf565b90565b6060604051908101604052806003905b60008152602001906001900390816110e257905050600061119b600a60005060008773ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060005060000160005060008681526020019081526020016000206000506000016000508481548110156100025790600052602060002090600a91828204019190066003025b9054906101000a90047d0100000000000000000000000000000000000000000000000000000000000261343d565b600a60005060008773ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600086815260200190815260200160002060005060030160009054906101000a900460ff16915091506111fe565b935093915050565b600060006000600034111561121a57610002565b61122333613546565b9250925060001515831515141561123957610002565b600c60005082815481101561000257906000526020600020906005020160005b5060030160019054906101000a900460ff16151561127657610002565b600c60005082815481101561000257906000526020600020906005020160005b5060020160005054905060008114156112ae57610002565b6000600c60005083815481101561000257906000526020600020906005020160005b50600201600050819055503373ffffffffffffffffffffffffffffffffffffffff16600082604051809050600060405180830381858888f19350505050151561131857610002565b5b505050565b600060006000600034111561133257610002565b61133b33613546565b9250925060001515831515141561135157610002565b600c60005082815481101561000257906000526020600020906005020160005b5060030160019054906101000a900460ff16151561138e57610002565b600860009054906101000a900460ff161561141957426005600c60005084815481101561000257906000526020600020906005020160005b50600401600050540111156113da57610002565b4262015180600b60005060066000505481548110156100025790600052602060002090600e020160005b506003016000505401111561141857610002565b5b600c60005082815481101561000257906000526020600020906005020160005b5060030160009054906101000a900460ff161561153a57600c60005082815481101561000257906000526020600020906005020160005b50600101600050546003600082828250540392505081905550600c60005082815481101561000257906000526020600020906005020160005b5060010160005054905080506114bd613608565b7f01bb67a8f8221b445b5306d5aca1ad5079720035d1b3c902c2b87429fc212c9b33600c60005084815481101561000257906000526020600020906005020160005b5060010160005054604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15b6000600c60005083815481101561000257906000526020600020906005020160005b5060020160005054111561159957600c60005082815481101561000257906000526020600020906005020160005b50600201600050548101905080505b600c60005082815481101561000257906000526020600020906005020160005b6000820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000506000905560028201600050600090556003820160006101000a81549060ff02191690556003820160016101000a81549060ff0219169055600482016000506000905550503373ffffffffffffffffffffffffffffffffffffffff16600082604051809050600060405180830381858888f19350505050151561166857610002565b5b505050565b6000600060006060604051908101604052806003905b60008152602001906001900390816116845790505060006000600060003411156116ad57610002565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161415156116e757610002565b600560066000505410156117005760019450845061170e565b600560066000505403945084505b600660005054955085505b8486101515611e0f57600a60005060003373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600087815260200190815260200160002060005060030160009054906101000a900460ff161515611e0057600b6000508681548110156100025790600052602060002090600e020160005b5060070160009054906101000a900460ff1615611d0b57611810600b6000508781548110156100025790600052602060002090600e020160005b5060050160009054906101000a90047d0100000000000000000000000000000000000000000000000000000000000261343d565b93508350600a60005060003373ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060005060000160005060008781526020019081526020016000206000506001016000506000856000600381101561000257909060200201518660016003811015610002579090602002015187600260038110156100025790906020020151604051808460ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f0100000000000000000000000000000000000000000000000000000000000000028152600101935050505060405180910390206000191681526020019081526020016000206000505491508150600b6000508681548110156100025790600052602060002090600e020160005b50600b01600050548202870196508650600a60005060003373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600087815260200190815260200160002060005060020160005060008560006003811015610002579090602002015186600160038110156100025790906020020151604051808360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f01000000000000000000000000000000000000000000000000000000000000000281526001019250505060405180910390206000191681526020019081526020016000206000505490508050600a60005060003373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600087815260200190815260200160002060005060020160005060008560006003811015610002579090602002015186600260038110156100025790906020020151604051808360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f010000000000000000000000000000000000000000000000000000000000000002815260010192505050604051809103902060001916815260200190815260200160002060005054810190508050600a60005060003373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600087815260200190815260200160002060005060020160005060008560016003811015610002579090602002015186600260038110156100025790906020020151604051808360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f01000000000000000000000000000000000000000000000000000000000000000281526001019250505060405180910390206000191681526020019081526020016000206000505481019050805060038202810390508050600b6000508681548110156100025790600052602060002090600e020160005b50600d016000505481028701965086506001600a60005060003373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600088815260200190815260200160002060005060030160006101000a81548160ff02191690830217905550600192508250611dff565b600860009054906101000a900460ff16158015611d2c575060066000505486145b15611dfe5767016345785d8a0000600a60005060003373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600088815260200190815260200160002060005060000160005080549050028701965086506001600a60005060003373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050600001600050600088815260200190815260200160002060005060030160006101000a81548160ff021916908302179055506001925082505b5b5b5b858060019003965050611719565b821515611e1b57610002565b6000871115611e62573373ffffffffffffffffffffffffffffffffffffffff16600088604051809050600060405180830381858888f193505050501515611e6157610002565b5b5b50505050505050565b600860009054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611edb57610002565b6000341115611ee957610002565b600860009054906101000a900460ff161515611f515742622e2480600960005054011015611f4c57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b611fd8565b6000600860006101000a81548160ff02191690830217905550426009600050819055507fb65bce8ba6c7ce7f1d6b3503fb95c71e18b17ef2083731478087321c50e5c2a2622e2480600960005054016040518082815260200191505060405180910390a1600460005054600760008282825054019250508190555060006004600050819055505b5b565b600060006000600860009054906101000a900460ff161515611ffc57610002565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614151561203657610002565b349250670de0b6b3a764000083101561204e57610002565b6000670de0b6b3a7640000840611156120ba573373ffffffffffffffffffffffffffffffffffffffff166000670de0b6b3a76400008506604051809050600060405180830381858888f1935050505015156120a857610002565b670de0b6b3a764000083068303925082505b678ac7230489e800008310156120cf57610002565b6120d833613546565b915091506000151582151514156121d45760c8600c6000508054905014156120ff57610002565b600c6000508054905090508050600c600050805480919060010190908154818355818115116121cf576005028160050283600052602060002091820191016121ce9190612147565b808211156121ca5760006000820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000506000905560028201600050600090556003820160006101000a81549060ff02191690556003820160016101000a81549060ff0219169055600482016000506000905550600501612147565b5090565b5b505050505b600c60005081815481101561000257906000526020600020906005020160005b5060030160019054906101000a900460ff1680156122405750600c60005081815481101561000257906000526020600020906005020160005b5060030160009054906101000a900460ff165b1561227e5782600c60005082815481101561000257906000526020600020906005020160005b506001016000828282505401925050819055506122ab565b82600c60005082815481101561000257906000526020600020906005020160005b50600101600050819055505b600660005054600c60005082815481101561000257906000526020600020906005020160005b50600401600050819055506001600c60005082815481101561000257906000526020600020906005020160005b5060030160016101000a81548160ff021916908302179055506001600c60005082815481101561000257906000526020600020906005020160005b5060030160006101000a81548160ff0219169083021790555033600c60005082815481101561000257906000526020600020906005020160005b5060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055508260036000828282505401925050819055506123b9613608565b7ffcf84962cb596c74c8918fc8c24471474edeed6794690483d0ab04849d5c12133384604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15b505050565b60006000600060006000600660005054600260005054600b60005060066000505481548110156100025790600052602060002090600e020160005b5060030160005054600b60005060066000505481548110156100025790600052602060002090600e020160005b5060040160005054600b60005060066000505481548110156100025790600052602060002090600e020160005b5060000160005054945094509450945094506124c0565b9091929394565b6000600060006000600060006060604051908101604052806003905b60008152602001906001900390816124e3579050506000600060003373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614151561253857610002565b600860009054906101000a900460ff16151561255357610002565b600034111561256157610002565b6000600b60005060066000505481548110156100025790600052602060002090600e020160005b506006016000505414806125c7575043600b60005060066000505481548110156100025790600052602060002090600e020160005b5060060160005054115b156125d157610002565b6001945084505b60058511151561264c5789856005600b60005060066000505481548110156100025790600052602060002090600e020160005b5060060160005054030140604051808360001916815260200182600019168152602001925050506040518091039020995089505b84806001019550506125d8565b6126558a610458565b9350612660846133bf565b600b60005060066000505481548110156100025790600052602060002090600e020160005b5060050160006101000a81548162ffffff02191690837d01000000000000000000000000000000000000000000000000000000000090040217905550600b60005060066000505481548110156100025790600052602060002090600e020160005b506001016000506000856000600381101561000257909060200201518660016003811015610002579090602002015187600260038110156100025790906020020151604051808460ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f01000000000000000000000000000000000000000000000000000000000000000281526001019350505050604051809103902060001916815260200190815260200160002060005054880197508750600b60005060066000505481548110156100025790600052602060002090600e020160005b5060020160005060008560006003811015610002579090602002015186600160038110156100025790906020020151604051808360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f010000000000000000000000000000000000000000000000000000000000000002815260010192505050604051809103902060001916815260200190815260200160002060005054860195508550600b60005060066000505481548110156100025790600052602060002090600e020160005b5060020160005060008560006003811015610002579090602002015186600260038110156100025790906020020151604051808360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f010000000000000000000000000000000000000000000000000000000000000002815260010192505050604051809103902060001916815260200190815260200160002060005054860195508550600b60005060066000505481548110156100025790600052602060002090600e020160005b5060020160005060008560016003811015610002579090602002015186600260038110156100025790906020020151604051808360ff167f01000000000000000000000000000000000000000000000000000000000000000281526001018260ff167f0100000000000000000000000000000000000000000000000000000000000000028152600101925050506040518091039020600019168152602001908152602001600020600050548601955085506003880286039550855067016345785d8a0000600b60005060066000505481548110156100025790600052602060002090600e020160005b50600001600050540292506064601e8402049650865086600b60005060066000505481548110156100025790600052602060002090600e020160005b506008016000508190555085870496508650868303925082506064601e840204915081830392508250816007600082828250540192505081905550606460288402049050612b1981613621565b808303925082506000881115612be357600260005054600b60005060066000505481548110156100025790600052602060002090600e020160005b506008016000828282505401925050819055506000945084505b600c60005080549050851015612bc057600c60005085815481101561000257906000526020600020906005020160005b5060030160006101000a81549060ff02191690555b8480600101955050612b6e565b876002600050540498508850600060046000508190555060006003600050819055505b826004600082828250540192505081905550612bfd613608565b7f6d0f131a69dc3bce77a8551718ef847c1e7ed5b844ca2a4492912bbb79107e1f6006600050548560006003811015610002579090602002015186600160038110156100025790906020020151876002600381101561000257909060200201518c8e8c8e604051808981526020018860ff1681526020018760ff1681526020018660ff1681526020018581526020018481526020018381526020018281526020019850505050505050505060405180910390a1600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c853c03d42868b8d8b8d604051877c010000000000000000000000000000000000000000000000000000000002815260040180878152602001866003602002808383829060006004602084601f0104600f02600301f15090500185815260200184815260200183815260200182815260200196505050505050506000604051808303816000876161da5a03f1156100025750505087600b60005060066000505481548110156100025790600052602060002090600e020160005b50600a016000508190555088600b60005060066000505481548110156100025790600052602060002090600e020160005b50600b016000508190555085600b60005060066000505481548110156100025790600052602060002090600e020160005b50600c016000508190555086600b60005060066000505481548110156100025790600052602060002090600e020160005b50600d01600050819055506001600b60005060066000505481548110156100025790600052602060002090600e020160005b5060070160006101000a81548160ff02191690830217905550612e8a613746565b5b50505050505050505050565b60006060604051908101604052806003905b6000815260200190600190039081612ea9579050506000600060006000600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663be6307c888604051827c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050610100604051808303816000876161da5a03f1156100025750505060405180519060200180606001805190602001805190602001805190602001805190602001604052955095509550955095509550612f8b565b91939550919395565b60006000600060006000612fa786613546565b91509150600015158215151480612fed5750600c60005081815481101561000257906000526020600020906005020160005b5060030160019054906101000a900460ff16155b1561300957600060006000829250819150945094509450613096565b600c60005081815481101561000257906000526020600020906005020160005b5060010160005054600c60005082815481101561000257906000526020600020906005020160005b5060020160005054600c60005083815481101561000257906000526020600020906005020160005b5060030160009054906101000a900460ff16945094509450613096565b50509193909250565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156130fb57610002565b6000600760005054141561310e57610002565b60001515600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166000600760005054604051809050600060405180830381858888f193505050501515141561317857610002565b60006007600050819055505b565b60008160080260020a8360019004026001027f0100000000000000000000000000000000000000000000000000000000000000900490506131c2565b92915050565b6060604051908101604052806003905b60008152602001906001900390816131d8579050506000600060008493508350600092505b845060038360ff1610156132e2576001830191505b845060038260ff1610156132d457838260ff166003811015610002579090602002015160ff16848460ff166003811015610002579090602002015160ff1611156132c657838360ff16600381101561000257909060200201519050838260ff1660038110156100025790906020020151848460ff166003811015610002579090602002019060ff1690818152602001505080848360ff166003811015610002579090602002019060ff169081815260200150505b5b8180600101925050613212565b5b82806001019350506131fd565b5b505050919050565b600060006000600091505b835060038210156133af57603284836003811015610002579090602002015160ff1611806133385750600084836003811015610002579090602002015160ff16145b15613342576133b8565b600090505b835060038210156133a157808214158015613389575083816003811015610002579090602002015160ff1684836003811015610002579090602002015160ff16145b15613393576133b8565b5b8180600101925050613347565b5b81806001019250506132f6565b600192506133b8565b5050919050565b60006101006101008360026003811015610002579090602002015160ff1602026101008360016003811015610002579090602002015160ff16028360006003811015610002579090602002015160ff1601017d010000000000000000000000000000000000000000000000000000000000029050613438565b919050565b6060604051908101604052806003905b600081526020019060019003908161344d57905050817d01000000000000000000000000000000000000000000000000000000000090048160006003811015610002579090602002019060ff16908181526020015050610100827d010000000000000000000000000000000000000000000000000000000000900462ffffff16048160016003811015610002579090602002019060ff16908181526020015050610100610100837d010000000000000000000000000000000000000000000000000000000000900462ffffff160462ffffff16048160026003811015610002579090602002019060ff169081815260200150505b919050565b600060006000905080505b600c600050805490508110156135f3578273ffffffffffffffffffffffffffffffffffffffff16600c60005082815481101561000257906000526020600020906005020160005b5060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156135e55760018191509150613603565b5b8080600101915050613551565b6000600080905091509150613603565b915091565b600460005054600360005054016002600050819055505b565b600060006000905080505b600c6000508054905081101561372657600c60005081815481101561000257906000526020600020906005020160005b5060030160009054906101000a900460ff1680156136a85750600c60005081815481101561000257906000526020600020906005020160005b5060030160019054906101000a900460ff165b1561371857600360005054600c60005082815481101561000257906000526020600020906005020160005b5060010160005054840204600c60005082815481101561000257906000526020600020906005020160005b506002016000828282505401925050819055506001915081505b5b808060010191505061362c565b811515613740578260076000828282505401925050819055505b5b505050565b60006006600081815054809291906001019190505550600b600050805490509050600b6000508054809190600101909081548183558181151161385257600e0281600e02836000526020600020918201910161385191906137a2565b8082111561384d5760006000820160005060009055600382016000506000905560048201600050600090556005820160006101000a81549062ffffff021916905560068201600050600090556007820160006101000a81549060ff021916905560088201600050600090556009820160005060009055600a820160005060009055600b820160005060009055600c820160005060009055600d82016000506000905550600e016137a2565b5090565b5b5050505042600b6000508281548110156100025790600052602060002090600e020160005b506003016000508190555061388a6139ce565b600b6000508281548110156100025790600052602060002090600e020160005b50600401600050819055506005600b6000508054905011156139ca57600b60005060056006600050540381548110156100025790600052602060002090600e020160005b50600801600050546007600082828250540192505081905550600b60005060056006600050540381548110156100025790600052602060002090600e020160005b6000820160005060009055600382016000506000905560048201600050600090556005820160006101000a81549062ffffff021916905560068201600050600090556007820160006101000a81549060ff021916905560088201600050600090556009820160005060009055600a820160005060009055600b820160005060009055600c820160005060009055600d82016000506000905550505b5b50565b600063578238c0905080505b428110156139f15762093a808101905080506139da565b5b9056

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000564Ab48Eb279b541A507E818084FF15eE2C25ffb

-----Decoded View---------------
Arg [0] : _WLBdrawsDB (address): 0x564ab48eb279b541a507e818084ff15ee2c25ffb

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000564Ab48Eb279b541A507E818084FF15eE2C25ffb


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.