Latest 25 transactions from a total of 237 transactions

TxHash Age From To Value [TxFee]
0xfcabe1abdb8be8cd1969e21d0fe3b10e403e505671f3ac0fed0b737422bf2b0c20 days 10 hrs ago0xc35531014d78c8b024e0cb66476047f7a46be412  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0 Ether0.000565103
0x4c3d57c9f6644bf49c155237b062ab1bbe5941cd0c0bba963d170c311314699b20 days 13 hrs ago0xc35531014d78c8b024e0cb66476047f7a46be412  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0 Ether0.000920163
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a20 days 14 hrs ago0xc35531014d78c8b024e0cb66476047f7a46be412  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0 Ether0.006121833
0xbfcb71ad1407341e8beb5e80318627a5598fb47b2910133dabeb64e9ab44609220 days 15 hrs ago0x000042425e06b0b1e8e20a811c91d6864608324b  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0 Ether0.00324138
0x5aa89139339cf848f02a99a40eeef4e4f77a6cd7ef6dea1cf939f3a051ec752d20 days 15 hrs ago0xc35531014d78c8b024e0cb66476047f7a46be412  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0 Ether0.017815484
0x58ad292dc0d60ff917ff84793b3e096b32da8d0dbc918c876cda1b154570e46c20 days 15 hrs ago0x4746a4c7b31f4565af67b370fcc36fad57c6c0af  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0.1 Ether0.000279106
0xb2332109e818abc401f632b991915a9e166ca2075904def1bb3941211c28d3ef20 days 15 hrs ago0xc35531014d78c8b024e0cb66476047f7a46be412  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0 Ether0.001371901
0x145a3614e570a73a205a7766cfbea29bed5dc20d3a8f889225de6030a12309fb20 days 15 hrs ago0xc35531014d78c8b024e0cb66476047f7a46be412  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0 Ether0.000922418
0xf8a3228ea033795bea3ac3a4efa5c1b31c069ddf4deb37de700b9572792fb33721 days 20 mins ago0x41cc9e10ba9d2dc86cecf0991245c943bc9df695  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1 Ether0.00042
0x9330deed74d96ffe0025ef809ba266d11529263ce063e7da521cd9c87228565021 days 1 hr ago0x41cc9e10ba9d2dc86cecf0991245c943bc9df695  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1 Ether0.000063
0xf6d99e3e4cd9d78afba578294be12a608127305c404a5fbffb7ff05c3ebab1dd21 days 3 hrs ago0xe366359b9fbb21e6de3eb11f161f99bf56dbafb5  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1.00139 Ether0.003881183
0xecf2b2d058b92865312c8e9df94f879b27c5f128f613a9a3d32744f6bad2fcf921 days 4 hrs ago0x5c9fc1b0c30ec6f7a0af246aef5e05344db1deb3  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1.040430650749145 Ether0.004496183
0x15066be2d330a841e0cb551ef293350b209c853e6d0f120b23daec92941e303721 days 4 hrs ago0xc35531014d78c8b024e0cb66476047f7a46be412  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0 Ether0.00082246
0x1e48934fd4258f54f3f0713c4ff3f60d2b150de1814d9b2b4cf275cc1ab02b6221 days 4 hrs ago0x5a85d121ca0e59167e8018257b453fb3c9c417f5  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1.0018 Ether0.003881183
0x093d1546634051214fbe4119842c2627344f2a705101b98c622cdcd25b0fa1f822 days 10 hrs ago0xe879e8ed68621afd52aec85d3980e73e5a3cdfb3  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1 Ether0.009371637
0xc71674083f722626c042cf2a2c26e549728754e350edd9f3cf39bd2385a2504126 days 3 hrs ago0x78e732cfafe68198ca7e72042811b66ac960f8cc  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1.100150674 Ether0.0001274608
0xd435f5e00ac047d360f516e20867d5016bbcaab640671e3d0e678b7a7fecc13135 days 32 mins ago0x5b9098602a2d4eb3f913cb31988a4c5149504daa  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1 Ether0.003881183
0x419b3be8ac3b5f60403ab21aa12118f5918d6eaf9fc84ecb7bed98b93a03801d37 days 23 mins ago0xd7fbee15cf6002c0642be2b706d323c58b602676  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1 Ether0.003881183
0xdbab0b08e77c1c1f8fbcdf4464ccf9778f09a66770a01b8f3edd53d0cee2bb0940 days 9 hrs ago0x4746a4c7b31f4565af67b370fcc36fad57c6c0af  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1 Ether0.00079663
0x5fe8fbaede07f0a10c637d524c6c0bdddd4dc253a634209681796d387c26782143 days 13 mins ago0xb8fad16435a80c631e5f3ef4958f6a4ffa634b78  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1 Ether0.003881183
0xa77050478b0da55843ad1d5d7254bdcc92de6b2247696695ed705f253c792dda44 days 2 hrs ago0x5f3804b63820027f635217cc6b1041bcf31604e6  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f2.0005 Ether0.004785492
0x992d6f41cfa6885682d17e8d70deae9e09047ce87ac4ca0a935536021cb3703344 days 12 hrs ago0x91c30642fcdc68e9793492957bd48f2e7d4f3c45  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f2.0005 Ether0.005355492
0x0bdd96209adaf44e390a1b81deb5962a0017e8ee9c1698325a0c4e589bc712f744 days 12 hrs ago0xc35531014d78c8b024e0cb66476047f7a46be412  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f0 Ether0.00076228
0x099faea878fed4969146bc57cb563fbe0c2bc21233e674259c659e160216cdc145 days 17 hrs ago0x0ab8e9087ad86c6d25e2eba478ec4558dda043ff  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f1 Ether0.003881183
0x7693479c747cd9e1f00457377534b1cba1681f1cec80679a7647942142b748b945 days 22 hrs ago0x13ae877c19da78ed330a55e20a7a876a75934b9f  IN   0x357f07ac89ee6329a70ca837d6bfc16b0275015f10 Ether0.014291876
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0xfcabe1abdb8be8cd1969e21d0fe3b10e403e505671f3ac0fed0b737422bf2b0c699866920 days 10 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be41238.718972754058689599 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xe366359b9fbb21e6de3eb11f161f99bf56dbafb50.73875 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xf39ddde76afe71c5c339cfc6d574f7f8b27d0f800.73875 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0x4746a4c7b31f4565af67b370fcc36fad57c6c0af0.73875 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0x6eaf8df7e8f6ffbf3ab49fcbaaad7ab02e69afcb0.73875 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0x968a671366b0f0529efbe108e333de0225eeedc30.73875 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xb4fad3f1a6d189c0ac90df09725bacb5adeddf410.73875 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xe421bdb4c83c9a458afcab9e771312c711ddace50.73875 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0x77c748a372172c220461b8e57f1aec8cabde18080.73875 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xa7e5cc83406265d8b4b013152173993053fa27260.73875 Ether
0x269910ffcdb0427baf902c24865fd6d2e3a90965e240c8515a427e605c50742a699753920 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xf39ddde76afe71c5c339cfc6d574f7f8b27d0f800.73875 Ether
0xbfcb71ad1407341e8beb5e80318627a5598fb47b2910133dabeb64e9ab446092699745120 days 15 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0x765f63fd487c835fdce16a538b1ed04b23c6c60c73.875 Ether
0x5aa89139339cf848f02a99a40eeef4e4f77a6cd7ef6dea1cf939f3a051ec752d699744720 days 15 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.02036539023677285 Ether
0x15066be2d330a841e0cb551ef293350b209c853e6d0f120b23daec92941e3037699429121 days 4 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be4124.4 Ether
0x0bdd96209adaf44e390a1b81deb5962a0017e8ee9c1698325a0c4e589bc712f7685518044 days 12 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be4125.6 Ether
0x78d3900b23a6f7646f7cebd3795e77aba2e1f75b946087b69df69c4f6755506b684659445 days 22 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be4128.8 Ether
0x37a7b239e5d9a148b49fbd1e6902cdc0cf828e0e3fe774827ea0f96d648c6436660486885 days 16 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be4122 Ether
0x48e6bf0ac3450393cdb8c0931d4c0d768236978b4f139e8f65a0b82fb50cdee25974882190 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be4122 Ether
0x32ad1b3d0b37a2f4aa268ed6a34c40fd52e898e108f3dc0bc530b18afe46e8995534669267 days 4 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be4121.6 Ether
0x898694d0f182b911aa24e201cf3c9442a84397654e72f1294602cd4f5333446d5511224271 days 5 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be4126.4 Ether
0x9d420680bc75b716798d50c64a93de775be26d38f6bef54089d8f4289415d46a5418050287 days 3 hrs ago0x31a240648e2baf4f9f17225987f6f53fceb1699a0x357f07ac89ee6329a70ca837d6bfc16b0275015f0.000000007777777777 Ether
0xb68ce04e0d97921ac0fb1addf3fd5913382b50d84570f0fa850fbaa7198a0ef75308403305 days 9 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be4123.2 Ether
0xe951e6f6384ca22aa1b51bea6a9a262f70334f2e959b1428232139c13e6a054c5100721340 days 14 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be41212 Ether
0x1bb3c50c43c6d6e8e4b31e59922e09c1735d5697b620f98360b70eb498759db84897772375 days 7 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be41220.8 Ether
0x7344c9e28319784afd10bad4bcd275f1df44933fc975f412d0d00ceab93872b24835727386 days 15 hrs ago0x357f07ac89ee6329a70ca837d6bfc16b0275015f0xc35531014d78c8b024e0cb66476047f7a46be41211.2 Ether
[ Download CSV Export  ] 
Contract Self Destruct Called At TxHash 0xfcabe1abdb8be8cd1969e21d0fe3b10e403e505671f3ac0fed0b737422bf2b0c

Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: EthereumSweepstakes
Compiler Text: v0.4.18+commit.9cf6e910
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

// 1.	The Ethereum Sweepstake is NOT a company, it is a smart contract written using the Ethereum protocols, which runs on the Ethereum Blockchain. 
// 2.	Ethereum Sweepstakes is only available to users from countries where applicable law allows.
// 3.	You Must be at least 18 years of age to participate
// 4.	The Ethereum Sweepstake is a smart contract that enables contributors to acquire up to 4,000,000 SWEEP coins, at a price of 1 ETHER per 1 SWEEP token.  
// 5.	A minimum of 57% of all ETHERs received are kept on smart contract wallet and guaranteed to be transferred as prizes.
// 6.	The Ethereum Sweepstake is not affiliated to the Ethereum Foundation, and is only made possible by the Ethereum Bockchain and its smart contract application.  Ethereum is a trademark owned by the Ethereum Foundation. A total of five percent (5%) of the Ethereum Sweepstake sale will be donated to the Ethereum Foundation for the continued support and development of the Ethereum Blockchain.
// 7.	The Ethereum Sweepstake was invented by Hladun Rostyslav a citizen of the Ukraine, residing in the city of Lviv.  The Ethereum Sweepstake will pay the inventor and or to his nominee a total of five percent (5%) of the remaining Ethers.
// 8.	The Ethereum Sweepstake and its SWEEP token are a smart contract which is transacted on the Ethereum Blockchain and as such are subject to Private International Law.  The  jurisdiction of the transaction(s) including the promotions sent to and or received by the users, the purchases of SWEEP Tokens, drawing of the winners and the payment of the winnings are deemed to be in the jurisdiction of the country of Costa Rica and all users of the Ethereum Sweepstake agree to said legal jurisdiction regardless of conflicts of law including whether minimum contact can be established within another jurisdiction. 
// 9.	
// 10.	Upon selling the last SWEEP coin, a random selection running on the blockchain will be activated and the winners of the Ethereum Sweepstake will automatically be transferred the number of Ethers for the respective prizes.  Winning Ethers will only be sent to personal wallet address used to enter the Ethereum Sweepstakes and purchase the SWEEP coins.
// 11.	Ethereum sent from an exchange and or brokerage accounts will be void and will not receive any potential winnings. We will no be liable for any losses in entries or potential winnings as a result of Ethereum being transferred from a brokerage and or exchange wallet.
// 12.	Transactions to enter Ethereum Sweepstakes are managed and confirmed via the Ethereum blockchain. You understand that your Ethereum public address will be made publicly visible when you enter the Ethereum Sweepstake.
// 13.	If you decide to enter the Ethereum Sweepstake, we have no ability to reverse the transactions.  We also have no ability to payout any potential winnings to wallet address other than the wallet used to enter the Ethereum sweepstake. We will have no liability to you or to any third party for any claims or damages that may arise as a result of any transactions that you engage in via our website, or independently using our Smart Contract.
// 14.	Ethereum requires the payment of a transaction fee (a “Gas Fee”) for every transaction that occurs on the Ethereum network. The Gas Fee funds the network of computers that run the decentralized Ethereum network. This means that, even if you elect to interact directly via the Ethereum network, you will still need to pay a Gas Fee for each transaction that occurs via the Ethereum network.

// Disclaimer of Warranties
// YOU EXPRESSLY UNDERSTAND AND AGREE THAT YOUR ACCESS TO AND USE OF THE ETHEREUM SWEEPSTAKE  IS AT YOUR SOLE RISK, AND THAT THE ETHEREUM SWEEPSTAKE iS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED. TO THE FULLEST EXTENT PERMISSIBLE PURSUANT TO APPLICABLE LAW, WE, THE INVENTOR, THE OWNER, THE SERVICE PROVIDERS, OFFICERS, DIRECTORS, EMPLOYEES, LEGAL COUNSEL, OUR SUBSIDIARIES, AFFILIATES, AND LICENSORS MAKE NO EXPRESS WARRANTIES AND HEREBY DISCLAIM ALL IMPLIED WARRANTIES REGARDING THE ETHEREUM SWEEPSTAKE AND ANY PART OF IT (INCLUDING, WITHOUT LIMITATION, THE SITE, ANY SMART CONTRACT, OR ANY EXTERNAL WEBSITES), INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, CORRECTNESS, ACCURACY, OR RELIABILITY. WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, WE, THE INVENTOR, THE OWNER, THE SERVICE PROVIDERS, OFFICERS, DIRECTORS, EMPLOYEES, LEGAL COUNSEL,OUR SUBSIDIARIES, AFFILIATES, AND LICENSORS DO NOT REPRESENT OR WARRANT TO YOU THAT: (I) YOUR ACCESS TO OR USE OF THE APP, WEBSITE, AND OR SMART CONTRACT WILL MEET YOUR REQUIREMENTS, (II) YOUR ACCESS TO OR USE OF THE APP, WEBSITE, AND OR SMART CONTRACT WILL BE UNINTERRUPTED, TIMELY, SECURE OR FREE FROM ERROR, (III) USAGE DATA PROVIDED THROUGH THE APP, WEBSITE, AND OR SMART CONTRACT WILL BE ACCURATE, OR (III) THE APP OR ANY CONTENT, SERVICES, OR FEATURES MADE AVAILABLE ON OR THROUGH THE APP, WEBSITE AND OR SMART CONTRACT ARE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS.

// Limitation of Liability
// 1.	YOU UNDERSTAND AND AGREE THAT WE, THE INVENTOR, THE OWNER, THE SERVICE PROVIDERS, OFFICERS, DIRECTORS, EMPLOYEES, LEGAL COUNSEL, OUR SUBSIDIARIES, AFFILIATES, AND LICENSORS WILL NOT BE LIABLE TO YOU OR TO ANY THIRD PARTY FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR EXEMPLARY DAMAGES WHICH YOU MAY INCUR, HOWSOEVER CAUSED AND UNDER ANY THEORY OF LIABILITY, INCLUDING, WITHOUT LIMITATION, ANY LOSS OF PROFITS (WHETHER INCURRED DIRECTLY OR INDIRECTLY), LOSS OF GOODWILL OR BUSINESS REPUTATION, LOSS OF DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR ANY OTHER INTANGIBLE LOSS, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
// 2.	YOU ACKNOWLEDGE AND AGREE THAT WE HAVE MADE THE APP, WEBSITE AND OR SMART CONTRACT AVAILABLE TO YOU AND ENTERED INTO THESE TERMS IN RELIANCE UPON THE WARRANTY DISCLAIMERS AND LIMITATIONS OF LIABILITY SET FORTH HEREIN, WHICH REFLECT A REASONABLE AND FAIR ALLOCATION OF RISK BETWEEN THE PARTIES AND FORM AN ESSENTIAL BASIS OF THE BARGAIN BETWEEN US. WE WOULD NOT BE ABLE TO PROVIDE THE ETHEREUM SWEEPSTAKE TO YOU WITHOUT THESE LIMITATIONS.

// Indemnification

// 1.	You agree to hold harmless and indemnify THE ETHEREUM SWEEPSTAKE and its owner, inventor, subsidiaries, affiliates, officers, directors, agents, employees, advertisers, licensors, suppliers or partners from and against any claim, liability, loss, damage (actual and consequential) of any kind or nature, suit, judgment, litigation cost, and attorneys’ fees arising out of or in any way related to (i) your breach of these Terms, or (ii) your violation of applicable laws, rules or regulations in connection with your access to or use of the Ethereum Sweepstake.
// 2.	Taxation. The Users bears the sole responsibility to determine if the Ethereum Sweepstake winnings shall be a taxable event for the User. The Users bear full responsibility for timely and correct calculation and payment of all taxes due in accordance with the legislation applicable to the Users. The Service is not a tax agent of the User, as well as it does not advise the User on the order of calculation and/or the payment of taxes.

// Notification About Risks
// 1.	The User understands and accepts the risks in connection with transferring ETHERS to the Ethereum Sweepstake and creating a SWEEP Token as exemplary set forth above and hereinafter. In particular, but not limited, the User understands the inherent risks listed hereinafter:
// 2.	Risk of software weaknesses: The User understands and accepts that the Ethereum Sweepstake concept, the underlying software application and software platform (i.e. the Ethereum blockchain) is still in an early development stage and unproven, why there is no warranty that the process for creating Tokens will be uninterrupted or error-free and why there is an inherent risk that the software could contain weaknesses, vulnerabilities or bugs causing, inter alia, the complete loss of ETH and/or Tokens.
// 3.	Regulatory risk: The User understands and accepts that the blockchain technology allows new forms of interaction and that it is possible that certain jurisdictions will apply existing regulations on, or introduce new regulations addressing, blockchain technology based applications, which may be contrary to the current setup of the Ethereum Sweepstake and which may, inter alia, result in substantial modifications of the Ethereum Sweepstakes, including its termination and the loss of ETHERS/Tokens for the User.
// 4.	Risk of Loss of private key: Tokens can only be accessed with a wallet seed or combination of private key and password. The private key is encrypted with a password. The User understands and accepts that if his wallet file or password respectively his private key got lost or stolen, the obtained Tokens associated with the User's Wallet or password will be unrecoverable and will be permanently lost with the Risk of theft: The User understands and accepts that the Ethereum Sweepstake concept, the underlying software application and software platform (i.e. the Ethereum blockchain) may be exposed to attacks by hackers or other individuals that that could result in theft or loss of Sweep Tokens or ETHERS, impacting the ability to complete the Ethereum Sweepstake.
// 5.   Risk of Ethereum mining attacks: The User understands and accepts that, as with other cryptocurrencies, the blockchain used for the Ethereum Sweepstakes is susceptible to mining attacks, including but not limited to double-spend attacks, majority mining power attacks, “selfish-mining” attacks, and race condition attacks. Any successful attacks present a risk to the Ethereum Sweepstake, expected proper execution and sequencing of ETH/Token transactions, and expected proper execution and sequencing of contract computations.

pragma solidity ^0.4.18;

// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD



Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:



The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.



THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

// This api is currently targeted at 0.4.18, please import oraclizeAPI_pre0.4.sol or oraclizeAPI_0.4 where necessary
pragma solidity ^0.4.18;

contract OraclizeI {
    address public cbAddress;
    function query(uint _timestamp, string _datasource, string _arg) external payable returns (bytes32 _id);
    function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) external payable returns (bytes32 _id);
    function query2(uint _timestamp, string _datasource, string _arg1, string _arg2) public payable returns (bytes32 _id);
    function query2_withGasLimit(uint _timestamp, string _datasource, string _arg1, string _arg2, uint _gaslimit) external payable returns (bytes32 _id);
    function queryN(uint _timestamp, string _datasource, bytes _argN) public payable returns (bytes32 _id);
    function queryN_withGasLimit(uint _timestamp, string _datasource, bytes _argN, uint _gaslimit) external payable returns (bytes32 _id);
    function getPrice(string _datasource) public returns (uint _dsprice);
    function getPrice(string _datasource, uint gaslimit) public returns (uint _dsprice);
    function setProofType(byte _proofType) external;
    function setCustomGasPrice(uint _gasPrice) external;
    function randomDS_getSessionPubKeyHash() external constant returns(bytes32);
}
contract OraclizeAddrResolverI {
    function getAddress() public returns (address _addr);
}
contract usingOraclize {
    uint constant day = 60*60*24;
    uint constant week = 60*60*24*7;
    uint constant month = 60*60*24*30;
    byte constant proofType_NONE = 0x00;
    byte constant proofType_TLSNotary = 0x10;
    byte constant proofType_Android = 0x20;
    byte constant proofType_Ledger = 0x30;
    byte constant proofType_Native = 0xF0;
    byte constant proofStorage_IPFS = 0x01;
    uint8 constant networkID_auto = 0;
    uint8 constant networkID_mainnet = 1;
    uint8 constant networkID_testnet = 2;
    uint8 constant networkID_morden = 2;
    uint8 constant networkID_consensys = 161;

    OraclizeAddrResolverI OAR;

    OraclizeI oraclize;
    modifier oraclizeAPI {
        if((address(OAR)==0)||(getCodeSize(address(OAR))==0))
            oraclize_setNetwork(networkID_auto);

        if(address(oraclize) != OAR.getAddress())
            oraclize = OraclizeI(OAR.getAddress());

        _;
    }
    modifier coupon(string code){
        oraclize = OraclizeI(OAR.getAddress());
        _;
    }

    function oraclize_setNetwork(uint8 networkID) internal returns(bool){
      return oraclize_setNetwork();
      networkID; // silence the warning and remain backwards compatible
    }
    function oraclize_setNetwork() internal returns(bool){
        if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed)>0){ //mainnet
            OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
            oraclize_setNetworkName("eth_mainnet");
            return true;
        }
        if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1)>0){ //ropsten testnet
            OAR = OraclizeAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1);
            oraclize_setNetworkName("eth_ropsten3");
            return true;
        }
        if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e)>0){ //kovan testnet
            OAR = OraclizeAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e);
            oraclize_setNetworkName("eth_kovan");
            return true;
        }
        if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48)>0){ //rinkeby testnet
            OAR = OraclizeAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48);
            oraclize_setNetworkName("eth_rinkeby");
            return true;
        }
        if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
            OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
            return true;
        }
        if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF)>0){ //ether.camp ide
            OAR = OraclizeAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF);
            return true;
        }
        if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA)>0){ //browser-solidity
            OAR = OraclizeAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA);
            return true;
        }
        return false;
    }

    function __callback(bytes32 myid, string result) public {
        __callback(myid, result, new bytes(0));
    }
    function __callback(bytes32 myid, string result, bytes proof) public {
      return;
      myid; result; proof; // Silence compiler warnings
    }

    function oraclize_getPrice(string datasource) oraclizeAPI internal returns (uint){
        return oraclize.getPrice(datasource);
    }

    function oraclize_getPrice(string datasource, uint gaslimit) oraclizeAPI internal returns (uint){
        return oraclize.getPrice(datasource, gaslimit);
    }

    function oraclize_query(string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query.value(price)(0, datasource, arg);
    }
    function oraclize_query(uint timestamp, string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query.value(price)(timestamp, datasource, arg);
    }
    function oraclize_query(uint timestamp, string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query_withGasLimit.value(price)(timestamp, datasource, arg, gaslimit);
    }
    function oraclize_query(string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query_withGasLimit.value(price)(0, datasource, arg, gaslimit);
    }
    function oraclize_query(string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query2.value(price)(0, datasource, arg1, arg2);
    }
    function oraclize_query(uint timestamp, string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query2.value(price)(timestamp, datasource, arg1, arg2);
    }
    function oraclize_query(uint timestamp, string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query2_withGasLimit.value(price)(timestamp, datasource, arg1, arg2, gaslimit);
    }
    function oraclize_query(string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query2_withGasLimit.value(price)(0, datasource, arg1, arg2, gaslimit);
    }
    function oraclize_query(string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN.value(price)(0, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN.value(price)(timestamp, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN.value(price)(0, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN.value(price)(timestamp, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_cbAddress() oraclizeAPI internal returns (address){
        return oraclize.cbAddress();
    }
    function oraclize_setProof(byte proofP) oraclizeAPI internal {
        return oraclize.setProofType(proofP);
    }
    function oraclize_setCustomGasPrice(uint gasPrice) oraclizeAPI internal {
        return oraclize.setCustomGasPrice(gasPrice);
    }

    function oraclize_randomDS_getSessionPubKeyHash() oraclizeAPI internal returns (bytes32){
        return oraclize.randomDS_getSessionPubKeyHash();
    }

    function getCodeSize(address _addr) constant internal returns(uint _size) {
        assembly {
            _size := extcodesize(_addr)
        }
    }

    function parseAddr(string _a) internal pure returns (address){
        bytes memory tmp = bytes(_a);
        uint160 iaddr = 0;
        uint160 b1;
        uint160 b2;
        for (uint i=2; i<2+2*20; i+=2){
            iaddr *= 256;
            b1 = uint160(tmp[i]);
            b2 = uint160(tmp[i+1]);
            if ((b1 >= 97)&&(b1 <= 102)) b1 -= 87;
            else if ((b1 >= 65)&&(b1 <= 70)) b1 -= 55;
            else if ((b1 >= 48)&&(b1 <= 57)) b1 -= 48;
            if ((b2 >= 97)&&(b2 <= 102)) b2 -= 87;
            else if ((b2 >= 65)&&(b2 <= 70)) b2 -= 55;
            else if ((b2 >= 48)&&(b2 <= 57)) b2 -= 48;
            iaddr += (b1*16+b2);
        }
        return address(iaddr);
    }

    function strCompare(string _a, string _b) internal pure returns (int) {
        bytes memory a = bytes(_a);
        bytes memory b = bytes(_b);
        uint minLength = a.length;
        if (b.length < minLength) minLength = b.length;
        for (uint i = 0; i < minLength; i ++)
            if (a[i] < b[i])
                return -1;
            else if (a[i] > b[i])
                return 1;
        if (a.length < b.length)
            return -1;
        else if (a.length > b.length)
            return 1;
        else
            return 0;
    }

    function indexOf(string _haystack, string _needle) internal pure returns (int) {
        bytes memory h = bytes(_haystack);
        bytes memory n = bytes(_needle);
        if(h.length < 1 || n.length < 1 || (n.length > h.length))
            return -1;
        else if(h.length > (2**128 -1))
            return -1;
        else
        {
            uint subindex = 0;
            for (uint i = 0; i < h.length; i ++)
            {
                if (h[i] == n[0])
                {
                    subindex = 1;
                    while(subindex < n.length && (i + subindex) < h.length && h[i + subindex] == n[subindex])
                    {
                        subindex++;
                    }
                    if(subindex == n.length)
                        return int(i);
                }
            }
            return -1;
        }
    }

    function strConcat(string _a, string _b, string _c, string _d, string _e) internal pure returns (string) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory _bd = bytes(_d);
        bytes memory _be = bytes(_e);
        string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
        bytes memory babcde = bytes(abcde);
        uint k = 0;
        for (uint i = 0; i < _ba.length; i++) babcde[k++] = _ba[i];
        for (i = 0; i < _bb.length; i++) babcde[k++] = _bb[i];
        for (i = 0; i < _bc.length; i++) babcde[k++] = _bc[i];
        for (i = 0; i < _bd.length; i++) babcde[k++] = _bd[i];
        for (i = 0; i < _be.length; i++) babcde[k++] = _be[i];
        return string(babcde);
    }

    function strConcat(string _a, string _b, string _c, string _d) internal pure returns (string) {
        return strConcat(_a, _b, _c, _d, "");
    }

    function strConcat(string _a, string _b, string _c) internal pure returns (string) {
        return strConcat(_a, _b, _c, "", "");
    }

    function strConcat(string _a, string _b) internal pure returns (string) {
        return strConcat(_a, _b, "", "", "");
    }

    // parseInt
    function parseInt(string _a) internal pure returns (uint) {
        return parseInt(_a, 0);
    }

    // parseInt(parseFloat*10^_b)
    function parseInt(string _a, uint _b) internal pure returns (uint) {
        bytes memory bresult = bytes(_a);
        uint mint = 0;
        bool decimals = false;
        for (uint i=0; i<bresult.length; i++){
            if ((bresult[i] >= 48)&&(bresult[i] <= 57)){
                if (decimals){
                   if (_b == 0) break;
                    else _b--;
                }
                mint *= 10;
                mint += uint(bresult[i]) - 48;
            } else if (bresult[i] == 46) decimals = true;
        }
        if (_b > 0) mint *= 10**_b;
        return mint;
    }

    function uint2str(uint i) internal pure returns (string){
        if (i == 0) return "0";
        uint j = i;
        uint len;
        while (j != 0){
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (i != 0){
            bstr[k--] = byte(48 + i % 10);
            i /= 10;
        }
        return string(bstr);
    }

    function stra2cbor(string[] arr) internal pure returns (bytes) {
            uint arrlen = arr.length;

            // get correct cbor output length
            uint outputlen = 0;
            bytes[] memory elemArray = new bytes[](arrlen);
            for (uint i = 0; i < arrlen; i++) {
                elemArray[i] = (bytes(arr[i]));
                outputlen += elemArray[i].length + (elemArray[i].length - 1)/23 + 3; //+3 accounts for paired identifier types
            }
            uint ctr = 0;
            uint cborlen = arrlen + 0x80;
            outputlen += byte(cborlen).length;
            bytes memory res = new bytes(outputlen);

            while (byte(cborlen).length > ctr) {
                res[ctr] = byte(cborlen)[ctr];
                ctr++;
            }
            for (i = 0; i < arrlen; i++) {
                res[ctr] = 0x5F;
                ctr++;
                for (uint x = 0; x < elemArray[i].length; x++) {
                    // if there's a bug with larger strings, this may be the culprit
                    if (x % 23 == 0) {
                        uint elemcborlen = elemArray[i].length - x >= 24 ? 23 : elemArray[i].length - x;
                        elemcborlen += 0x40;
                        uint lctr = ctr;
                        while (byte(elemcborlen).length > ctr - lctr) {
                            res[ctr] = byte(elemcborlen)[ctr - lctr];
                            ctr++;
                        }
                    }
                    res[ctr] = elemArray[i][x];
                    ctr++;
                }
                res[ctr] = 0xFF;
                ctr++;
            }
            return res;
        }

    function ba2cbor(bytes[] arr) internal pure returns (bytes) {
            uint arrlen = arr.length;

            // get correct cbor output length
            uint outputlen = 0;
            bytes[] memory elemArray = new bytes[](arrlen);
            for (uint i = 0; i < arrlen; i++) {
                elemArray[i] = (bytes(arr[i]));
                outputlen += elemArray[i].length + (elemArray[i].length - 1)/23 + 3; //+3 accounts for paired identifier types
            }
            uint ctr = 0;
            uint cborlen = arrlen + 0x80;
            outputlen += byte(cborlen).length;
            bytes memory res = new bytes(outputlen);

            while (byte(cborlen).length > ctr) {
                res[ctr] = byte(cborlen)[ctr];
                ctr++;
            }
            for (i = 0; i < arrlen; i++) {
                res[ctr] = 0x5F;
                ctr++;
                for (uint x = 0; x < elemArray[i].length; x++) {
                    // if there's a bug with larger strings, this may be the culprit
                    if (x % 23 == 0) {
                        uint elemcborlen = elemArray[i].length - x >= 24 ? 23 : elemArray[i].length - x;
                        elemcborlen += 0x40;
                        uint lctr = ctr;
                        while (byte(elemcborlen).length > ctr - lctr) {
                            res[ctr] = byte(elemcborlen)[ctr - lctr];
                            ctr++;
                        }
                    }
                    res[ctr] = elemArray[i][x];
                    ctr++;
                }
                res[ctr] = 0xFF;
                ctr++;
            }
            return res;
        }


    string oraclize_network_name;
    function oraclize_setNetworkName(string _network_name) internal {
        oraclize_network_name = _network_name;
    }

    function oraclize_getNetworkName() internal view returns (string) {
        return oraclize_network_name;
    }

    function oraclize_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32){
        require((_nbytes > 0) && (_nbytes <= 32));
        bytes memory nbytes = new bytes(1);
        nbytes[0] = byte(_nbytes);
        bytes memory unonce = new bytes(32);
        bytes memory sessionKeyHash = new bytes(32);
        bytes32 sessionKeyHash_bytes32 = oraclize_randomDS_getSessionPubKeyHash();
        assembly {
            mstore(unonce, 0x20)
            mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp)))
            mstore(sessionKeyHash, 0x20)
            mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32)
        }
        bytes[3] memory args = [unonce, nbytes, sessionKeyHash];
        bytes32 queryId = oraclize_query(_delay, "random", args, _customGasLimit);
        oraclize_randomDS_setCommitment(queryId, keccak256(bytes8(_delay), args[1], sha256(args[0]), args[2]));
        return queryId;
    }

    function oraclize_randomDS_setCommitment(bytes32 queryId, bytes32 commitment) internal {
        oraclize_randomDS_args[queryId] = commitment;
    }

    mapping(bytes32=>bytes32) oraclize_randomDS_args;
    mapping(bytes32=>bool) oraclize_randomDS_sessionKeysHashVerified;

    function verifySig(bytes32 tosignh, bytes dersig, bytes pubkey) internal returns (bool){
        bool sigok;
        address signer;

        bytes32 sigr;
        bytes32 sigs;

        bytes memory sigr_ = new bytes(32);
        uint offset = 4+(uint(dersig[3]) - 0x20);
        sigr_ = copyBytes(dersig, offset, 32, sigr_, 0);
        bytes memory sigs_ = new bytes(32);
        offset += 32 + 2;
        sigs_ = copyBytes(dersig, offset+(uint(dersig[offset-1]) - 0x20), 32, sigs_, 0);

        assembly {
            sigr := mload(add(sigr_, 32))
            sigs := mload(add(sigs_, 32))
        }


        (sigok, signer) = safer_ecrecover(tosignh, 27, sigr, sigs);
        if (address(keccak256(pubkey)) == signer) return true;
        else {
            (sigok, signer) = safer_ecrecover(tosignh, 28, sigr, sigs);
            return (address(keccak256(pubkey)) == signer);
        }
    }

    function oraclize_randomDS_proofVerify__sessionKeyValidity(bytes proof, uint sig2offset) internal returns (bool) {
        bool sigok;

        // Step 6: verify the attestation signature, APPKEY1 must sign the sessionKey from the correct ledger app (CODEHASH)
        bytes memory sig2 = new bytes(uint(proof[sig2offset+1])+2);
        copyBytes(proof, sig2offset, sig2.length, sig2, 0);

        bytes memory appkey1_pubkey = new bytes(64);
        copyBytes(proof, 3+1, 64, appkey1_pubkey, 0);

        bytes memory tosign2 = new bytes(1+65+32);
        tosign2[0] = byte(1); //role
        copyBytes(proof, sig2offset-65, 65, tosign2, 1);
        bytes memory CODEHASH = hex"fd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c";
        copyBytes(CODEHASH, 0, 32, tosign2, 1+65);
        sigok = verifySig(sha256(tosign2), sig2, appkey1_pubkey);

        if (sigok == false) return false;


        // Step 7: verify the APPKEY1 provenance (must be signed by Ledger)
        bytes memory LEDGERKEY = hex"7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e8537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4";

        bytes memory tosign3 = new bytes(1+65);
        tosign3[0] = 0xFE;
        copyBytes(proof, 3, 65, tosign3, 1);

        bytes memory sig3 = new bytes(uint(proof[3+65+1])+2);
        copyBytes(proof, 3+65, sig3.length, sig3, 0);

        sigok = verifySig(sha256(tosign3), sig3, LEDGERKEY);

        return sigok;
    }

    modifier oraclize_randomDS_proofVerify(bytes32 _queryId, string _result, bytes _proof) {
        // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1)
        require((_proof[0] == "L") && (_proof[1] == "P") && (_proof[2] == 1));

        bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName());
        require(proofVerified);

        _;
    }

    function oraclize_randomDS_proofVerify__returnCode(bytes32 _queryId, string _result, bytes _proof) internal returns (uint8){
        // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1)
        if ((_proof[0] != "L")||(_proof[1] != "P")||(_proof[2] != 1)) return 1;

        bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName());
        if (proofVerified == false) return 2;

        return 0;
    }

    function matchBytes32Prefix(bytes32 content, bytes prefix, uint n_random_bytes) internal pure returns (bool){
        bool match_ = true;
        

        for (uint256 i=0; i< n_random_bytes; i++) {
            if (content[i] != prefix[i]) match_ = false;
        }

        return match_;
    }

    function oraclize_randomDS_proofVerify__main(bytes proof, bytes32 queryId, bytes result, string context_name) internal returns (bool){

        // Step 2: the unique keyhash has to match with the sha256 of (context name + queryId)
        uint ledgerProofLength = 3+65+(uint(proof[3+65+1])+2)+32;
        bytes memory keyhash = new bytes(32);
        copyBytes(proof, ledgerProofLength, 32, keyhash, 0);
        if (!(keccak256(keyhash) == keccak256(sha256(context_name, queryId)))) return false;

        bytes memory sig1 = new bytes(uint(proof[ledgerProofLength+(32+8+1+32)+1])+2);
        copyBytes(proof, ledgerProofLength+(32+8+1+32), sig1.length, sig1, 0);

        // Step 3: we assume sig1 is valid (it will be verified during step 5) and we verify if 'result' is the prefix of sha256(sig1)
        if (!matchBytes32Prefix(sha256(sig1), result, uint(proof[ledgerProofLength+32+8]))) return false;

        // Step 4: commitment match verification, keccak256(delay, nbytes, unonce, sessionKeyHash) == commitment in storage.
        // This is to verify that the computed args match with the ones specified in the query.
        bytes memory commitmentSlice1 = new bytes(8+1+32);
        copyBytes(proof, ledgerProofLength+32, 8+1+32, commitmentSlice1, 0);

        bytes memory sessionPubkey = new bytes(64);
        uint sig2offset = ledgerProofLength+32+(8+1+32)+sig1.length+65;
        copyBytes(proof, sig2offset-64, 64, sessionPubkey, 0);

        bytes32 sessionPubkeyHash = sha256(sessionPubkey);
        if (oraclize_randomDS_args[queryId] == keccak256(commitmentSlice1, sessionPubkeyHash)){ //unonce, nbytes and sessionKeyHash match
            delete oraclize_randomDS_args[queryId];
        } else return false;


        // Step 5: validity verification for sig1 (keyhash and args signed with the sessionKey)
        bytes memory tosign1 = new bytes(32+8+1+32);
        copyBytes(proof, ledgerProofLength, 32+8+1+32, tosign1, 0);
        if (!verifySig(sha256(tosign1), sig1, sessionPubkey)) return false;

        // verify if sessionPubkeyHash was verified already, if not.. let's do it!
        if (oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] == false){
            oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] = oraclize_randomDS_proofVerify__sessionKeyValidity(proof, sig2offset);
        }

        return oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash];
    }

    // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    function copyBytes(bytes from, uint fromOffset, uint length, bytes to, uint toOffset) internal pure returns (bytes) {
        uint minLength = length + toOffset;

        // Buffer too small
        require(to.length >= minLength); // Should be a better way?

        // NOTE: the offset 32 is added to skip the `size` field of both bytes variables
        uint i = 32 + fromOffset;
        uint j = 32 + toOffset;

        while (i < (32 + fromOffset + length)) {
            assembly {
                let tmp := mload(add(from, i))
                mstore(add(to, j), tmp)
            }
            i += 32;
            j += 32;
        }

        return to;
    }

    // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    // Duplicate Solidity's ecrecover, but catching the CALL return value
    function safer_ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal returns (bool, address) {
        // We do our own memory management here. Solidity uses memory offset
        // 0x40 to store the current end of memory. We write past it (as
        // writes are memory extensions), but don't update the offset so
        // Solidity will reuse it. The memory used here is only needed for
        // this context.

        // FIXME: inline assembly can't access return values
        bool ret;
        address addr;

        assembly {
            let size := mload(0x40)
            mstore(size, hash)
            mstore(add(size, 32), v)
            mstore(add(size, 64), r)
            mstore(add(size, 96), s)

            // NOTE: we can reuse the request memory because we deal with
            //       the return code
            ret := call(3000, 1, 0, size, 128, size, 32)
            addr := mload(size)
        }

        return (ret, addr);
    }

    // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    function ecrecovery(bytes32 hash, bytes sig) internal returns (bool, address) {
        bytes32 r;
        bytes32 s;
        uint8 v;

        if (sig.length != 65)
          return (false, 0);

        // The signature format is a compact form of:
        //   {bytes32 r}{bytes32 s}{uint8 v}
        // Compact means, uint8 is not padded to 32 bytes.
        assembly {
            r := mload(add(sig, 32))
            s := mload(add(sig, 64))

            // Here we are loading the last 32 bytes. We exploit the fact that
            // 'mload' will pad with zeroes if we overread.
            // There is no 'mload8' to do this, but that would be nicer.
            v := byte(0, mload(add(sig, 96)))

            // Alternative solution:
            // 'byte' is not working due to the Solidity parser, so lets
            // use the second best option, 'and'
            // v := and(mload(add(sig, 65)), 255)
        }

        // albeit non-transactional signatures are not specified by the YP, one would expect it
        // to match the YP range of [27, 28]
        //
        // geth uses [0, 1] and some clients have followed. This might change, see:
        //  https://github.com/ethereum/go-ethereum/issues/2053
        if (v < 27)
          v += 27;

        if (v != 27 && v != 28)
            return (false, 0);

        return safer_ecrecover(hash, v, r, s);
    }

}
// </ORACLIZE_API>


//Contract deployed as EthereumSweepstakes, rinkeby max 4000 at .000001
//Contract  

contract CoinInterface {
    function balanceOf(address _owner) public constant returns (uint256 balance);
    function transfer(address _to, uint256 _value) public returns (bool success);

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
}

// Fixed supply token ERC standard compliant 
contract SweepsToken is CoinInterface {
    string public constant symbol = "SWEEP";
    string public constant name = "Ethereum Sweepstakes SWEEP Token";
    uint256 _totalSupply = 4000000;
    
    address public owner;

    // Can have multiple tokens per address
    mapping(address => uint256) tokBalance;

    function SweepsToken() public {
        owner = msg.sender;
        tokBalance[owner] = _totalSupply;
    }
 
    function balanceOf(address _owner) public constant returns (uint256 balance) {
        return tokBalance[_owner];
    }

    function transfer(address _to, uint256 _amount) returns (bool success) {
        require(msg.sender == owner);
        if (tokBalance[msg.sender] >= _amount && _amount > 0 && tokBalance[_to] + _amount > tokBalance[_to]) {
            tokBalance[msg.sender] -= _amount;
            tokBalance[_to] += _amount;
            Transfer(msg.sender, _to, _amount);
            return true;
        } else {
            return false;
        }
    }
}

// 
contract EthereumSweepstakes is usingOraclize {
    string public constant name = "Ethereum Sweepstakes";
    uint constant max_tickets = 4000000;

    address public owner;
    uint public sweepsCreationTime;
    uint256 withdrawamount;

//Contract contest states

    enum SweepsStates {
        OPEN,
        CLOSED,
        DRAWING_WINNER,
        DRAWING_SECONDARY_WINNERS,
        DRAWING_TERTIARY_A_WINNERS,
        DRAWING_TERTIARY_B_WINNERS,
        DRAWING_TERTIARY_C_WINNERS,
        DRAWING_TERTIARY_D_WINNERS,
        WINNERS_PAID_SWEEPS_COMPLETE
    }
    
    struct JackPots {
        uint primaryJackpot;
        uint secondJackPot;
        uint tertiaryAJackPot;
        uint tertiaryBJackPot;
        uint tertiaryCJackPot;
        uint tertiaryDJackPot;
        // uint numPrimaryWinners; // Always 1 winner
        uint numSecondaryWinners;
        uint numTertiaryAWinners;
        uint numTertiaryBWinners;
        uint numTertiaryCWinners;
        uint numTertiaryDWinners;
    }
    
    JackPots public jackpots;
    SweepsStates public sweepsState;
    SweepsToken sweepsToken;    
    address[] public drawPool;  
    uint numTokensSold;         
    uint numTertiaryAWinnersPaidOut;
    uint numTertiaryBWinnersPaidOut;
    uint numTertiaryCWinnersPaidOut;
    uint numTertiaryDWinnersPaidOut;
    uint randomNumber;

    modifier atState(SweepsStates _state) {
        require(sweepsState == _state);
        _;
    }

    modifier StateTransitions() {
        if ((now >= sweepsCreationTime + 375 days) && sweepsState == SweepsStates.OPEN) { sweepsState = SweepsStates.CLOSED; }
        if (sweepsState == SweepsStates.CLOSED) { sweepsState = SweepsStates.DRAWING_WINNER; }
        _;
    }

    modifier onlyBy(address _account)
    {
        require(msg.sender == _account);
        _;
    }

    // ------- Events -------
    event tickets_bought(string _msg, uint _numTickets);
    event winner_announced(address _winner, uint _winnings);

    function EthereumSweepstakes () public {
        owner = msg.sender;
        numTokensSold = 0;
        sweepsState = SweepsStates.OPEN;
        sweepsToken = new SweepsToken();
        sweepsCreationTime = now;
    }

    function  management() public payable
        onlyBy(owner)
    {
        require(withdrawamount > 0);
        owner.transfer(withdrawamount);    // Limited withdraw amount for marketing, expenses, fees, etc.. 
        withdrawamount = 0;
    }

    function min(uint a, uint b) private pure returns (uint) {
        return a < b ? a : b;
    }
    
    function calculateJackpots() private {
        // jackpots in wei
        jackpots.primaryJackpot     = ((numTokensSold * 375 * 10**18)/1000) ;   // 37.5% of tokens sold
        jackpots.secondJackPot      = ((numTokensSold * 375 * 10**18)/100000);    // 10 winners of 15, 000 tokens or .375% of tokens sold
        jackpots.tertiaryAJackPot   = ((numTokensSold * 375 * 10**18)/1000000);   // 100 winners of 1,500 tokens or .0375% of tokens sold
	    jackpots.tertiaryBJackPot   = ((numTokensSold * 375 * 10**18)/10000000);   // 1,000 winners of 150 tokens or .00375% of tokens sold
	    jackpots.tertiaryCJackPot   = ((numTokensSold * 375 * 10**18)/100000000);   // 10,000 winners of 15 tokens or .000375% of tokens sold
	    jackpots.tertiaryDJackPot   = ((numTokensSold * 375 * 10**18)/1000000000);   // 100,000 winners of 1.5 tokens or .0000375% of tokens sold

        // Pre-Calculate number of winners in each category based on number of tickets sold
        //jackpots.numPrimaryWinners = 1;
        jackpots.numSecondaryWinners = min(10, numTokensSold > 1 ? (numTokensSold-1) : 0);
        jackpots.numTertiaryAWinners = min(100, numTokensSold > 11 ? (numTokensSold-11) : 0);
        jackpots.numTertiaryBWinners = min(1000, numTokensSold > 111 ? (numTokensSold-111) : 0);
        jackpots.numTertiaryCWinners = min(10000, numTokensSold > 1111 ? (numTokensSold-1111) : 0);
        jackpots.numTertiaryDWinners = min(100000, numTokensSold > 11111 ? (numTokensSold-11111) : 0);
    }
    
    function buyTokens() public payable
        StateTransitions
        atState(SweepsStates.OPEN)
        returns(bool success) 
    {
        require(numTokensSold < max_tickets);
        uint tokensBought = 0;

        // Only taking payment in multiple of 1 ether, as 1 ether = 1 token
        uint etherReceived = msg.value/(10**18);

        // Check that we have enough tokens left
        uint tokensRemaining = sweepsToken.balanceOf(this);
        assert(tokensRemaining > 0);
	    require(etherReceived <= 10);
        if (tokensRemaining >= etherReceived) {
            tokensBought = etherReceived;
            tokensRemaining -= etherReceived;
        } else {
            tokensBought = tokensRemaining;
            tokensRemaining = 0;
        }

        for (uint i = 0; i < tokensBought; i++) {
            drawPool.push(msg.sender);
            numTokensSold++;
        }

        tickets_bought("Payment received; Sweeps tokens sent", tokensBought);

        // No more tokens remaining Close sweeps
        if (tokensRemaining <= 0) {
            sweepsState = SweepsStates.CLOSED;
        }

        withdrawamount += ((tokensBought*10**18)*40)/100;  

        if (sweepsToken.transfer(msg.sender, tokensBought) == false) {
            revert();
        }
        
        return true;
    }
    
    function updateRandomNumber(uint numBytes, uint callBackGas) private
        onlyBy(owner)
    {
        uint N = numBytes;
        uint delay = 0;
        oraclize_newRandomDSQuery(delay, N, callBackGas);
    }

    function __callback(bytes32 _queryId, string _result, bytes _proof)
    { 
        if (msg.sender != oraclize_cbAddress()) {
            revert();
        }
        
        if (oraclize_randomDS_proofVerify__returnCode(_queryId, _result, _proof) != 0) {
            randomNumber = uint(block.blockhash(block.number-1));
        } else {
            randomNumber = uint(keccak256(_result));
        }

        // Primary Winner 
        if (sweepsState == SweepsStates.DRAWING_WINNER) {
            require(numTokensSold >= 1);
            sweepsState = SweepsStates.DRAWING_SECONDARY_WINNERS;

            uint rand = randomNumber % numTokensSold;
            var endIndex = numTokensSold - 1;
            address primaryWinner = drawPool[rand];
            drawPool[rand] = drawPool[endIndex];
            delete drawPool[endIndex];
            --numTokensSold;

            winner_announced(primaryWinner, jackpots.primaryJackpot);

            primaryWinner.transfer(jackpots.primaryJackpot);
        }
    }

   function closeOutSweeps() public payable
        StateTransitions
        onlyBy(owner)
        atState(SweepsStates.DRAWING_WINNER)
        returns(bool result) 
    {
        calculateJackpots();
        oraclize_setProof(proofType_Ledger);
        updateRandomNumber(32, 1000000);
        return true;
    }

    function drawWinners(uint numWinners, uint jackpot, uint shift) payable 
        onlyBy(owner)    
    {
        require(numWinners > 0);

        uint rand = randomNumber ^ uint(block.blockhash(block.number-1));

        uint winnerIndex;
        address[] memory winnerAddresses = new address[](numWinners);
        uint bitMask = uint(0x3FFFFF);
        uint endIndex = numTokensSold - 1;
        for (uint j = 0; j < numWinners; j++) {
            winnerIndex = uint(rand & bitMask) % numTokensSold;
            rand >>= shift;

            if (j > 255) {
                rand ^= (rand << 104);
                rand ^= (rand >> 136);
                rand ^= (rand << 40);
                rand = (rand ^ uint(block.blockhash(block.number-1)));
            }
            
            winnerAddresses[j] = drawPool[winnerIndex];
            drawPool[winnerIndex] = drawPool[endIndex];
            delete drawPool[endIndex];
            --endIndex;
            --numTokensSold;
        }

        for (j = 0; j < numWinners; j++) {
            winner_announced(winnerAddresses[j], jackpot);
            winnerAddresses[j].transfer(jackpot);
        }
    }

    // 10 winners of 15,000 tokens or .375% of tokens sold
    function drawSecondaryWinners() public payable
        onlyBy(owner)
        atState(SweepsStates.DRAWING_SECONDARY_WINNERS)
    {
        require(numTokensSold > 1);
        sweepsState = SweepsStates.DRAWING_TERTIARY_A_WINNERS;

        drawWinners(jackpots.numSecondaryWinners, jackpots.secondJackPot, 22);
    }

    // 100 winners of 1,500 tokens or .0375% of tokens sold
    function drawTertiaryAWinners(uint numToProcess) public payable
        onlyBy(owner)
        atState(SweepsStates.DRAWING_TERTIARY_A_WINNERS)
    {
        require(numTokensSold > 1);
        require(numToProcess > 0);

        uint numWinnersToProcess = min(numToProcess, jackpots.numTertiaryAWinners - numTertiaryAWinnersPaidOut);
        if (numWinnersToProcess < numToProcess) {
            sweepsState = SweepsStates.DRAWING_TERTIARY_B_WINNERS;
        }
                
        numTertiaryAWinnersPaidOut += numWinnersToProcess;
        drawWinners(jackpots.numTertiaryAWinners, jackpots.tertiaryAJackPot, 1);
    }

    // 1,000 winners of 150 tokens or .00375% of tokens sold
    function drawTertiaryBWinners(uint numToProcess) public payable
        onlyBy(owner)
        atState(SweepsStates.DRAWING_TERTIARY_B_WINNERS)
    {
        require(numTokensSold > 1);
        require(numToProcess > 0);

        uint numWinnersToProcess = min(numToProcess, jackpots.numTertiaryBWinners - numTertiaryBWinnersPaidOut);
        if (numWinnersToProcess < numToProcess) {
            sweepsState = SweepsStates.DRAWING_TERTIARY_C_WINNERS;
        }
                
        numTertiaryBWinnersPaidOut += numWinnersToProcess;
        drawWinners(numWinnersToProcess, jackpots.tertiaryBJackPot, 1);
    }

    // 10,000 winners of 15 tokens or .000375% of tokens sold
    function drawTertiaryCWinners(uint numToProcess) public payable
        onlyBy(owner)
        atState(SweepsStates.DRAWING_TERTIARY_C_WINNERS)
    {
        require(numTokensSold > 1);
        require(numToProcess > 0);

        uint numWinnersToProcess = min(numToProcess, jackpots.numTertiaryCWinners - numTertiaryCWinnersPaidOut);
        if (numWinnersToProcess < numToProcess) {
            sweepsState = SweepsStates.DRAWING_TERTIARY_D_WINNERS;
        }

        numTertiaryCWinnersPaidOut += numWinnersToProcess;
        drawWinners(numWinnersToProcess, jackpots.tertiaryCJackPot, 1);
    }

    // 100,000 winners of 1.5 tokens or .0000375% of tokens sold
    function drawTertiaryDWinners(uint numToProcess) public payable
        onlyBy(owner)
        atState(SweepsStates.DRAWING_TERTIARY_D_WINNERS)
    {
        require(numTokensSold > 1);
        require(numToProcess > 0);

        uint numWinnersToProcess = min(numToProcess, jackpots.numTertiaryDWinners - numTertiaryDWinnersPaidOut);
        if (numWinnersToProcess < numToProcess) {
            sweepsState = SweepsStates.WINNERS_PAID_SWEEPS_COMPLETE;
        }
        numTertiaryDWinnersPaidOut += numWinnersToProcess;
        drawWinners(numWinnersToProcess, jackpots.tertiaryDJackPot, 1);
    }
    
    //function to add ether to contract
    function Fund_Contract () public payable {}

    function () public payable {
        buyTokens();
    }
    
    function cleanUp() public payable
        onlyBy(owner)
    {
        require(sweepsState > SweepsStates.DRAWING_WINNER);
       
        // Transfer Eth to owner and terminate contract
        //*only apllicable after Smart Contract has drawn Jackpot winner
        selfdestruct(owner);
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"closeOutSweeps","outputs":[{"name":"result","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"numToProcess","type":"uint256"}],"name":"drawTertiaryAWinners","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sweepsState","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_queryId","type":"bytes32"},{"name":"_result","type":"string"},{"name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"numToProcess","type":"uint256"}],"name":"drawTertiaryDWinners","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"sweepsCreationTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"numToProcess","type":"uint256"}],"name":"drawTertiaryBWinners","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"jackpots","outputs":[{"name":"primaryJackpot","type":"uint256"},{"name":"secondJackPot","type":"uint256"},{"name":"tertiaryAJackPot","type":"uint256"},{"name":"tertiaryBJackPot","type":"uint256"},{"name":"tertiaryCJackPot","type":"uint256"},{"name":"tertiaryDJackPot","type":"uint256"},{"name":"numSecondaryWinners","type":"uint256"},{"name":"numTertiaryAWinners","type":"uint256"},{"name":"numTertiaryBWinners","type":"uint256"},{"name":"numTertiaryCWinners","type":"uint256"},{"name":"numTertiaryDWinners","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"management","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"numWinners","type":"uint256"},{"name":"jackpot","type":"uint256"},{"name":"shift","type":"uint256"}],"name":"drawWinners","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"drawPool","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"buyTokens","outputs":[{"name":"success","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"Fund_Contract","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"cleanUp","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"numToProcess","type":"uint256"}],"name":"drawTertiaryCWinners","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"drawSecondaryWinners","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"string"},{"indexed":false,"name":"_numTickets","type":"uint256"}],"name":"tickets_bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_winner","type":"address"},{"indexed":false,"name":"_winnings","type":"uint256"}],"name":"winner_announced","type":"event"}]

  Contract Creation Code Switch To Opcodes View
606060405234156200001057600080fd5b33600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006015819055506000601360006101000a81548160ff021916908360088111156200007957fe5b021790555062000088620000ec565b604051809103906000f08015156200009f57600080fd5b601360016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555042600681905550620000fd565b6040516106b5806200536783390190565b61525a806200010d6000396000f300606060405260043610610107576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146101125780630a95c49d146101a057806320bd46b7146101c257806327dc297e146101da57806335785e091461024457806338bbfa501461027b5780633fbb8f98146103285780634086b6201461034057806372dff5271461036957806377d70b1f1461038157806388a8d602146103f05780638da5cb5b146103fa578063a18f9b111461044f578063ba7ce84914610479578063d0febe4c146104dc578063d71186b9146104fe578063f6c5c80d14610508578063f7c9a7be14610512578063fa78b1721461052a575b61010f610534565b50005b341561011d57600080fd5b6101256109f6565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561016557808201518184015260208101905061014a565b50505050905090810190601f1680156101925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a8610a2f565b604051808215151515815260200191505060405180910390f35b6101d86004808035906020019091905050610bc8565b005b34156101e557600080fd5b61024260048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610cea565b005b341561024f57600080fd5b610257610d1c565b6040518082600881111561026757fe5b60ff16815260200191505060405180910390f35b341561028657600080fd5b61032660048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610d2f565b005b61033e6004808035906020019091905050611068565b005b341561034b57600080fd5b610353611185565b6040518082815260200191505060405180910390f35b61037f600480803590602001909190505061118b565b005b341561038c57600080fd5b6103946112a7565b604051808c81526020018b81526020018a81526020018981526020018881526020018781526020018681526020018581526020018481526020018381526020018281526020019b50505050505050505050505060405180910390f35b6103f86112ef565b005b341561040557600080fd5b61040d6113cc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61047760048080359060200190919080359060200190919080359060200190919050506113f2565b005b341561048457600080fd5b61049a600480803590602001909190505061178a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104e4610534565b604051808215151515815260200191505060405180910390f35b6105066117c9565b005b6105106117cb565b005b6105286004808035906020019091905050611897565b005b6105326119b4565b005b60008060008060006301ee628060065401421015801561057957506000600881111561055c57fe5b601360009054906101000a900460ff16600881111561057757fe5b145b156105a3576001601360006101000a81548160ff0219169083600881111561059d57fe5b02179055505b600160088111156105b057fe5b601360009054906101000a900460ff1660088111156105cb57fe5b14156105f6576002601360006101000a81548160ff021916908360088111156105f057fe5b02179055505b600080600881111561060457fe5b601360009054906101000a900460ff16600881111561061f57fe5b14151561062b57600080fd5b623d090060155410151561063e57600080fd5b60009450670de0b6b3a76400003481151561065557fe5b049350601360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561071d57600080fd5b6102c65a03f1151561072e57600080fd5b50505060405180519050925060008311151561074657fe5b600a841115151561075657600080fd5b838310151561076c578394508383039250610774565b829450600092505b600091505b84821015610803576014805480600101828161079591906150cb565b9160005260206000209001600033909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506015600081548092919060010191905055508180600101925050610779565b7f246f02bbc079fecbd4a3022e397e65db21b7626fdddb3959ef460b86341478fd856040518080602001838152602001828103825260248152602001807f5061796d656e742072656365697665643b2053776565707320746f6b656e732081526020017f73656e74000000000000000000000000000000000000000000000000000000008152506040019250505060405180910390a16000831115156108c8576001601360006101000a81548160ff021916908360088111156108c257fe5b02179055505b60646028670de0b6b3a76400008702028115156108e157fe5b0460076000828254019250508190555060001515601360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33886000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15156109c257600080fd5b6102c65a03f115156109d357600080fd5b50505060405180519050151514156109ea57600080fd5b60019550505050505090565b6040805190810160405280601481526020017f457468657265756d2053776565707374616b657300000000000000000000000081525081565b60006301ee6280600654014210158015610a6e575060006008811115610a5157fe5b601360009054906101000a900460ff166008811115610a6c57fe5b145b15610a98576001601360006101000a81548160ff02191690836008811115610a9257fe5b02179055505b60016008811115610aa557fe5b601360009054906101000a900460ff166008811115610ac057fe5b1415610aeb576002601360006101000a81548160ff02191690836008811115610ae557fe5b02179055505b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b4857600080fd5b6002806008811115610b5657fe5b601360009054906101000a900460ff166008811115610b7157fe5b141515610b7d57600080fd5b610b85611a95565b610bb160307f010000000000000000000000000000000000000000000000000000000000000002611c66565b610bbf6020620f4240611fb8565b60019250505090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c2757600080fd5b6004806008811115610c3557fe5b601360009054906101000a900460ff166008811115610c5057fe5b141515610c5c57600080fd5b6001601554111515610c6d57600080fd5b600084111515610c7c57600080fd5b610c8f8460165460086007015403612032565b925083831015610cbe576005601360006101000a81548160ff02191690836008811115610cb857fe5b02179055505b82601660008282540192505081905550610ce460086007015460086002015460016113f2565b50505050565b610d1882826000604051805910610cfe5750595b9080825280601f01601f1916602001820160405250610d2f565b5050565b601360009054906101000a900460ff1681565b6000806000610d3c61204b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d7557600080fd5b6000610d82878787612361565b60ff16141515610da057600143034060019004601a81905550610e0e565b846040518082805190602001908083835b602083101515610dd65780518252602082019150602081019050602083039250610db1565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004601a819055505b60026008811115610e1b57fe5b601360009054906101000a900460ff166008811115610e3657fe5b141561106057600160155410151515610e4e57600080fd5b6003601360006101000a81548160ff02191690836008811115610e6d57fe5b0217905550601554601a54811515610e8157fe5b0692506001601554039150601483815481101515610e9b57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050601482815481101515610ed857fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601484815481101515610f1357fe5b906000526020600020900160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601482815481101515610f6b57fe5b906000526020600020900160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560156000815460019003919050819055507fd88dc1c67088e31bf65fb7e8f3812d82bbbdd19b2eba41735ccbae8aabab632a81600860000154604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a18073ffffffffffffffffffffffffffffffffffffffff166108fc6008600001549081150290604051600060405180830381858888f19350505050151561105f57600080fd5b5b505050505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156110c757600080fd5b60078060088111156110d557fe5b601360009054906101000a900460ff1660088111156110f057fe5b1415156110fc57600080fd5b600160155411151561110d57600080fd5b60008411151561111c57600080fd5b61112f846019546008600a015403612032565b92508383101561115e576008601360006101000a81548160ff0219169083600881111561115857fe5b02179055505b8260196000828254019250508190555061117f8360086005015460016113f2565b50505050565b60065481565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156111ea57600080fd5b60058060088111156111f857fe5b601360009054906101000a900460ff16600881111561121357fe5b14151561121f57600080fd5b600160155411151561123057600080fd5b60008411151561123f57600080fd5b61125184601754600880015403612032565b925083831015611280576006601360006101000a81548160ff0219169083600881111561127a57fe5b02179055505b826017600082825401925050819055506112a18360086003015460016113f2565b50505050565b600880600001549080600101549080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600901549080600a015490508b565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561134c57600080fd5b600060075411151561135d57600080fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6007549081150290604051600060405180830381858888f1935050505015156113c157600080fd5b600060078190555050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806113fd6150f7565b6000806000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561145f57600080fd5b60008a11151561146e57600080fd5b600143034060019004601a541896508960405180591061148b5750595b90808252806020026020018201604052509450623fffff93506001601554039250600091505b8982101561168b576015548488168115156114c857fe5b06955087879060020a9004965060ff821115611511576068879060020a02871896506088879060020a9004871896506028879060020a0287189650600143034060019004871896505b60148681548110151561152057fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16858381518110151561155a57fe5b9060200190602002019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506014838154811015156115a557fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166014878154811015156115e057fe5b906000526020600020900160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060148381548110151561163857fe5b906000526020600020900160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905582600190039250601560008154600190039190508190555081806001019250506114b1565b600091505b8982101561177e577fd88dc1c67088e31bf65fb7e8f3812d82bbbdd19b2eba41735ccbae8aabab632a85838151811015156116c757fe5b906020019060200201518a604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1848281518110151561172857fe5b9060200190602002015173ffffffffffffffffffffffffffffffffffffffff166108fc8a9081150290604051600060405180830381858888f19350505050151561177157600080fd5b8180600101925050611690565b50505050505050505050565b60148181548110151561179957fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561182857600080fd5b6002600881111561183557fe5b601360009054906101000a900460ff16600881111561185057fe5b11151561185c57600080fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156118f657600080fd5b600680600881111561190457fe5b601360009054906101000a900460ff16600881111561191f57fe5b14151561192b57600080fd5b600160155411151561193c57600080fd5b60008411151561194b57600080fd5b61195e8460185460086009015403612032565b92508383101561198d576007601360006101000a81548160ff0219169083600881111561198757fe5b02179055505b826018600082825401925050819055506119ae8360086004015460016113f2565b50505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611a1157600080fd5b6003806008811115611a1f57fe5b601360009054906101000a900460ff166008811115611a3a57fe5b141515611a4657600080fd5b6001601554111515611a5757600080fd5b6004601360006101000a81548160ff02191690836008811115611a7657fe5b0217905550611a9160086006015460086001015460166113f2565b5050565b6103e8670de0b6b3a76400006101776015540202811515611ab257fe5b04600860000181905550620186a0670de0b6b3a76400006101776015540202811515611ada57fe5b04600860010181905550620f4240670de0b6b3a76400006101776015540202811515611b0257fe5b0460086002018190555062989680670de0b6b3a76400006101776015540202811515611b2a57fe5b046008600301819055506305f5e100670de0b6b3a76400006101776015540202811515611b5357fe5b04600860040181905550633b9aca00670de0b6b3a76400006101776015540202811515611b7c57fe5b04600860050181905550611ba8600a600160155411611b9c576000611ba3565b6001601554035b612032565b600860060181905550611bd36064600b60155411611bc7576000611bce565b600b601554035b612032565b600860070181905550611bff6103e8606f60155411611bf3576000611bfa565b606f601554035b612032565b6008800181905550611c2c61271061045760155411611c1f576000611c27565b610457601554035b612032565b600860090181905550611c5b620186a0612b6760155411611c4e576000611c56565b612b67601554035b612032565b6008600a0181905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611cd557506000611cd36000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612598565b145b15611ce657611ce460006125a3565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611d7357600080fd5b6102c65a03f11515611d8457600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611ecd576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611e7157600080fd5b6102c65a03f11515611e8257600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663688dcfd7826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001915050600060405180830381600087803b1515611fa157600080fd5b6102c65a03f11515611fb257600080fd5b50505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561201857600080fd5b8492506000915061202a8284866125b4565b505050505050565b60008183106120415781612043565b825b905092915050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806120bb575060006120b96000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612598565b145b156120cc576120ca60006125a3565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561215957600080fd5b6102c65a03f1151561216a57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156122b3576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561225757600080fd5b6102c65a03f1151561226857600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561234157600080fd5b6102c65a03f1151561235257600080fd5b50505060405180519050905090565b6000807f4c0000000000000000000000000000000000000000000000000000000000000083600081518110151561239457fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415806124a957507f500000000000000000000000000000000000000000000000000000000000000083600181518110151561243957fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80612552575060017f0100000000000000000000000000000000000000000000000000000000000000028360028151811015156124e257fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b156125605760019150612590565b61257383868661256e61294e565b6129f6565b905060001515811515141561258b5760029150612590565b600091505b509392505050565b6000813b9050919050565b60006125ad613159565b9050919050565b60006125be61510b565b6125c661510b565b6125ce61510b565b60006125d861511f565b600080891180156125ea575060208911155b15156125f557600080fd5b60016040518059106126045750595b9080825280601f01601f19166020018201604052509550887f01000000000000000000000000000000000000000000000000000000000000000286600081518110151561264d57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350602060405180591061268c5750595b9080825280601f01601f1916602001820160405250945060206040518059106126b25750595b9080825280601f01601f191660200182016040525093506126d16135e8565b92506020855242411860014303401860208601526020845282602085015260606040519081016040528086815260200187815260200185815250915061274e8a6040805190810160405280600681526020017f72616e646f6d0000000000000000000000000000000000000000000000000000815250848b6138fe565b905061293e818b78010000000000000000000000000000000000000000000000000284600160038110151561277f57fe5b6020020151600286600060038110151561279557fe5b60200201516000604051602001526040518082805190602001908083835b6020831015156127d857805182526020820191506020810190506020830392506127b3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561281a57600080fd5b50506040518051905086600260038110151561283257fe5b6020020151604051808577ffffffffffffffffffffffffffffffffffffffffffffffff191677ffffffffffffffffffffffffffffffffffffffffffffffff1916815260080184805190602001908083835b6020831015156128a85780518252602082019150602081019050602083039250612883565b6001836020036101000a038019825116818451168082178552505050505050905001836000191660001916815260200182805190602001908083835b60208310151561290957805182526020820191506020810190506020830392506128e4565b6001836020036101000a0380198251168184511680821785525050505050509050019450505050506040518091039020613c5e565b8096505050505050509392505050565b61295661514d565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156129ec5780601f106129c1576101008083540402835291602001916129ec565b820191906000526020600020905b8154815290600101906020018083116129cf57829003601f168201915b5050505050905090565b600080612a0161510b565b612a0961510b565b612a1161510b565b612a1961510b565b600080612a2461510b565b602060028e6045815181101515612a3757fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004016044010197506020604051805910612abb5750595b9080825280601f01601f19166020018201604052509650612ae18d8960208a6000613c86565b5060028a8d6000604051602001526040518083805190602001908083835b602083101515612b245780518252602082019150602081019050602083039250612aff565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060206040518083038160008661646e5a03f11515612b7557600080fd5b505060405180519050604051808260001916600019168152602001915050604051809103902060001916876040518082805190602001908083835b602083101515612bd55780518252602082019150602081019050602083039250612bb0565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916141515612c165760009850613149565b60028d600160498b0101815181101515612c2c57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f0100000000000000000000000000000000000000000000000000000000000000900401604051805910612ca85750595b9080825280601f01601f19166020018201604052509550612cd18d60498a018851896000613c86565b50612de96002876000604051602001526040518082805190602001908083835b602083101515612d165780518252602082019150602081019050602083039250612cf1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612d5857600080fd5b5050604051805190508c8f600860208d0101815181101515612d7657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004613cec565b1515612df85760009850613149565b6029604051805910612e075750595b9080825280601f01601f19166020018201604052509450612e308d60208a016029886000613c86565b5060408051805910612e3f5750595b9080825280601f01601f1916602001820160405250935060418651602960208b010101019250612e778d604085036040876000613c86565b506002846000604051602001526040518082805190602001908083835b602083101515612eb95780518252602082019150602081019050602083039250612e94565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612efb57600080fd5b505060405180519050915084826040518083805190602001908083835b602083101515612f3d5780518252602082019150602081019050602083039250612f18565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902060001916600360008e6000191660001916815260200190815260200160002054600019161415612fc757600360008d6000191660001916815260200190815260200160002060009055612fd0565b60009850613149565b6049604051805910612fdf5750595b9080825280601f01601f191660200182016040525090506130058d896049846000613c86565b5061309c6002826000604051602001526040518082805190602001908083835b60208310151561304a5780518252602082019150602081019050602083039250613025565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561308c57600080fd5b5050604051805190508786613df5565b15156130ab5760009850613149565b6000151560046000846000191660001916815260200190815260200160002060009054906101000a900460ff161515141561311d576130ea8d8461410c565b60046000846000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055505b60046000836000191660001916815260200190815260200160002060009054906101000a900460ff1698505b5050505050505050949350505050565b600080613179731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed612598565b111561321a57731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506132116040805190810160405280600b81526020017f6574685f6d61696e6e657400000000000000000000000000000000000000000081525061461e565b600190506135e5565b600061323973c03a2615d5efaf5f49f60b7bb6583eaec212fdf1612598565b11156132da5773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506132d16040805190810160405280600c81526020017f6574685f726f707374656e33000000000000000000000000000000000000000081525061461e565b600190506135e5565b60006132f973b7a07bcf2ba2f2703b24c0691b5278999c59ac7e612598565b111561339a5773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506133916040805190810160405280600981526020017f6574685f6b6f76616e000000000000000000000000000000000000000000000081525061461e565b600190506135e5565b60006133b973146500cfd35b22e4a392fe0adc06de1a1368ed48612598565b111561345a5773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506134516040805190810160405280600b81526020017f6574685f72696e6b65627900000000000000000000000000000000000000000081525061461e565b600190506135e5565b6000613479736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475612598565b11156134dc57736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600190506135e5565b60006134fb7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf612598565b111561355e577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600190506135e5565b600061357d7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa612598565b11156135e0577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600190506135e5565b600090505b90565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480613658575060006136566000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612598565b145b156136695761366760006125a3565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156136f657600080fd5b6102c65a03f1151561370757600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613850576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156137f457600080fd5b6102c65a03f1151561380557600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663abaa5f3e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156138de57600080fd5b6102c65a03f115156138ef57600080fd5b50505060405180519050905090565b6000613908615161565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480613977575060006139756000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612598565b145b156139885761398660006125a3565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515613a1557600080fd5b6102c65a03f11515613a2657600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613b6f576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515613b1357600080fd5b6102c65a03f11515613b2457600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6003604051805910613b7e5750595b908082528060200260200182016040528015613bb457816020015b613ba1615175565b815260200190600190039081613b995790505b509050836000600381101515613bc657fe5b6020020151816000815181101515613bda57fe5b90602001906020020181905250836001600381101515613bf657fe5b6020020151816001815181101515613c0a57fe5b90602001906020020181905250836002600381101515613c2657fe5b6020020151816002815181101515613c3a57fe5b90602001906020020181905250613c5386868386614638565b915050949350505050565b8060036000846000191660001916815260200190815260200160002081600019169055505050565b613c8e61510b565b6000806000848701925082865110151515613ca857600080fd5b8760200191508460200190505b868860200101821015613cdd5781890151808288015250602082019150602081019050613cb5565b85935050505095945050505050565b600080600060019150600090505b83811015613de9578481815181101515613d1057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168682602081101515613d8b57fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141515613ddc57600091505b8080600101915050613cfa565b81925050509392505050565b6000806000806000613e0561510b565b6000613e0f61510b565b6020604051805910613e1e5750595b9080825280601f01601f1916602001820160405250925060208a6003815181101515613e4657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004036004019150613ec98a836020866000613c86565b92506020604051805910613eda5750595b9080825280601f01601f19166020018201604052509050602282019150613f898a60208c60018603815181101515613f0e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f010000000000000000000000000000000000000000000000000000000000000090040384016020846000613c86565b90506020830151945060208101519350613fa68b601b8787614b9c565b80975081985050508573ffffffffffffffffffffffffffffffffffffffff16896040518082805190602001908083835b602083101515613ffb5780518252602082019150602081019050602083039250613fd6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206001900473ffffffffffffffffffffffffffffffffffffffff16141561405157600197506140fe565b61405e8b601c8787614b9c565b80975081985050508573ffffffffffffffffffffffffffffffffffffffff16896040518082805190602001908083835b6020831015156140b3578051825260208201915060208101905060208303925061408e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206001900473ffffffffffffffffffffffffffffffffffffffff161497505b505050505050509392505050565b60008061411761510b565b61411f61510b565b61412761510b565b61412f61510b565b61413761510b565b61413f61510b565b61414761510b565b60028b60018c0181518110151561415a57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004016040518059106141d65750595b9080825280601f01601f191660200182016040525096506141fc8b8b89518a6000613c86565b506040805180591061420b5750595b9080825280601f01601f191660200182016040525095506142328b60046040896000613c86565b5060626040518059106142425750595b9080825280601f01601f1916602001820160405250945060017f01000000000000000000000000000000000000000000000000000000000000000285600081518110151561428c57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506142ce8b60418c036041886001613c86565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c81525093506143178460006020886042613c86565b506143ae6002866000604051602001526040518082805190602001908083835b60208310151561435c5780518252602082019150602081019050602083039250614337565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561439e57600080fd5b5050604051805190508888613df5565b97506000151588151514156143c65760009850614610565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4815250925060426040518059106144345750595b9080825280601f01601f1916602001820160405250915060fe7f01000000000000000000000000000000000000000000000000000000000000000282600081518110151561447e57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506144be8b60036041856001613c86565b5060028b60458151811015156144d057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f010000000000000000000000000000000000000000000000000000000000000090040160405180591061454c5750595b9080825280601f01601f191660200182016040525090506145738b60448351846000613c86565b5061460a6002836000604051602001526040518082805190602001908083835b6020831015156145b85780518252602082019150602081019050602083039250614593565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156145fa57600080fd5b5050604051805190508285613df5565b97508798505b505050505050505092915050565b8060029080519060200190614634929190615189565b5050565b60008061464361510b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806146b2575060006146b06000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612598565b145b156146c3576146c160006125a3565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561475057600080fd5b6102c65a03f1151561476157600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156148aa576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561484e57600080fd5b6102c65a03f1151561485f57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc87866000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015614964578082015181840152602081019050614949565b50505050905090810190601f1680156149915780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b15156149b057600080fd5b6102c65a03f115156149c157600080fd5b505050604051805190509150833a02670de0b6b3a7640000018211156149ed5760006001029250614b92565b6149f685614be0565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c55c1cb683898985896000604051602001526040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015614abf578082015181840152602081019050614aa4565b50505050905090810190601f168015614aec5780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015614b25578082015181840152602081019050614b0a565b50505050905090810190601f168015614b525780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b1515614b7357600080fd5b6125ee5a03f11515614b8457600080fd5b505050506040518051905092505b5050949350505050565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f192508051915050818193509350505094509492505050565b614be861510b565b600080614bf3615161565b6000806000614c0061510b565b60008060008b5199506000985089604051805910614c1b5750595b908082528060200260200182016040528015614c5157816020015b614c3e615175565b815260200190600190039081614c365790505b509750600096505b89871015614cea578b87815181101515614c6f57fe5b906020019060200201518888815181101515614c8757fe5b906020019060200201819052506003601760018a8a815181101515614ca857fe5b906020019060200201515103811515614cbd57fe5b048989815181101515614ccc57fe5b90602001906020020151510101890198508680600101975050614c59565b6000955060808a019450600160ff168901985088604051805910614d0b5750595b9080825280601f01601f191660200182016040525093505b85600160ff161115614dcd57847f01000000000000000000000000000000000000000000000000000000000000000286600181101515614d5f57fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000028487815181101515614d9057fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508580600101965050614d23565b600096505b898710156150b957605f7f0100000000000000000000000000000000000000000000000000000000000000028487815181101515614e0c57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508580600101965050600092505b8787815181101515614e5757fe5b9060200190602002015151831015615042576000601784811515614e7757fe5b061415614f7f576018838989815181101515614e8f57fe5b9060200190602002015151031015614ec157828888815181101515614eb057fe5b906020019060200201515103614ec4565b60175b91506040820191508590505b808603600160ff161115614f7e57817f010000000000000000000000000000000000000000000000000000000000000002818703600181101515614f1057fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000028487815181101515614f4157fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508580600101965050614ed0565b5b8787815181101515614f8d57fe5b9060200190602002015183815181101515614fa457fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028487815181101515614ffd57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535085806001019650508280600101935050614e49565b60ff7f010000000000000000000000000000000000000000000000000000000000000002848781518110151561507457fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535085806001019650508680600101975050614dd2565b839a5050505050505050505050919050565b8154818355818115116150f2578183600052602060002091820191016150f19190615209565b5b505050565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b6060604051908101604052806003905b615137615175565b81526020019060019003908161512f5790505090565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106151ca57805160ff19168380011785556151f8565b828001600101855582156151f8579182015b828111156151f75782518255916020019190600101906151dc565b5b5090506152059190615209565b5090565b61522b91905b8082111561522757600081600090555060010161520f565b5090565b905600a165627a7a72305820cdf5dac710f600cba712674ad8b0607bff68e37e966e3674de34dae86e87d1f800296060604052623d0900600055341561001657600080fd5b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005460026000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506105e7806100ce6000396000f30060606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461007257806370a08231146101005780638da5cb5b1461014d57806395d89b41146101a2578063a9059cbb14610230575b600080fd5b341561007d57600080fd5b61008561028a565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100c55780820151818401526020810190506100aa565b50505050905090810190601f1680156100f25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561010b57600080fd5b610137600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506102c3565b6040518082815260200191505060405180910390f35b341561015857600080fd5b61016061030c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101ad57600080fd5b6101b5610332565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101f55780820151818401526020810190506101da565b50505050905090810190601f1680156102225780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561023b57600080fd5b610270600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061036b565b604051808215151515815260200191505060405180910390f35b6040805190810160405280602081526020017f457468657265756d2053776565707374616b657320535745455020546f6b656e81525081565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600581526020017f535745455000000000000000000000000000000000000000000000000000000081525081565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103c957600080fd5b81600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101580156104185750600082115b80156104a35750600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401115b156105b05781600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555081600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190506105b5565b600090505b929150505600a165627a7a72305820455b5640b03fc16bf583458c29af18d777fb683d598768fb3276d2166297cdeb0029

   Swarm Source:
bzzr://455b5640b03fc16bf583458c29af18d777fb683d598768fb3276d2166297cdeb

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.