Contract 0xb4aFb4a1dF99C2333DDC57Ec33E57D26E87E78E4 3

 
Txn Hash
Method
Block
From
To
Value
0xf73a6e9b00368a723d13e396aac6477f407af010c4fb5dbaff7bfa6ffd7e360fWithdraw119224752021-02-24 22:23:50540 days 24 mins ago0x6608c789c9f2d2a48f6ce8aa22df80e1b1dd7c83 IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍00406715191
0x0e8fb61672ee85326b64e0bac9f3384ec0036e6fc83d9586bd372e8c9007fcdb__callback98443202020-04-10 11:46:20860 days 11 hrs ago0x00004242bda3c90e971ebc0a809d488f26e7af2e IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000267655
0xdce58aac589fb9980fa7742d0e3c90351120d716efa6189ff2b0c8af46e3c188Bet98443172020-04-10 11:45:59860 days 11 hrs ago0x7ec026b97d38740ff837f19af6a8e3fd5363a988 IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍01 Ether0.‍000549274.‍5
0x6b85efab2704543f2fa5fd11e6a6a1a7a5fd18f8e038f2d597eabf182cba5f4d__callback98079502020-04-04 21:27:32866 days 1 hr ago0x00004242bda3c90e971ebc0a809d488f26e7af2e IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000185765
0x88b4f7c58f7adf2c25b62cf71959bd00d4a5bf99a06be6f514e183ad2a629496Bet98079492020-04-04 21:27:29866 days 1 hr ago0xfe0b3ee77ecab8300558e7484ad9d59906ab06ff IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍0051 Ether0.‍00021971.‍8
0x0ab1103f0cdf559db6da06eb557c51c63a92d2efb16715ee477e3cd1d1ce82ba__callback98070122020-04-04 17:55:53866 days 4 hrs ago0x00004242712d0fa9e44533f7c836b2024bcb69ab IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000267655
0x6956fcb393b3cab3a09255c743ca5127b5d8d8e15fadf71fb743986157f64633Bet98070102020-04-04 17:55:30866 days 4 hrs ago0xfe0b3ee77ecab8300558e7484ad9d59906ab06ff IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍0051 Ether0.‍000341772.‍8
0xce6e1ee97ba51b4423f6212897cbd9825ea833fbdef6705b630757c0238f0f44__callback97071932020-03-20 7:21:44881 days 15 hrs ago0x00004242bda3c90e971ebc0a809d488f26e7af2e IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000246655
0x2582f7d8d6b3bcc1a55c7957eadbddadcee52b709dd6a1a715e2f990cf5da3d9Bet97071922020-03-20 7:21:33881 days 15 hrs ago0x33caaa54ee6c8035c60ee3a73c679e5fa16dc4c0 IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍01 Ether0.‍0016113213.‍20099
0x89eb794579eddafd24f3af0852b996d6eeefc5444c46f697858fb1f36ed613b5__callback96646402020-03-13 18:08:12888 days 4 hrs ago0x00004242bda3c90e971ebc0a809d488f26e7af2e IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000267655
0xaaf78a481f7845b0c5fabe9080a1d29a82e0ff46c75822d1eeb81315f59503c5Bet96577382020-03-12 16:19:48889 days 6 hrs ago0xe773b5a736daf4d5d482ca51b1572b787375ad09 IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍0109 Ether0.‍02111655173
0x8f369017baec8537b595b6a27951365e38d54cd8138d7652e1dedd9f5c7b3e81__callback95451632020-02-24 8:47:22906 days 14 hrs ago0x00004242ad585b2514e743d3de099f914c2dc2ca IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000185765
0x9e406ee4ef704028d42fb510c55b1364faa4f7cacdc64883579ea8ad8d5933baBet95451612020-02-24 8:46:23906 days 14 hrs ago0xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍00839999 Ether0.‍0012230510.‍02
0xe612255904113118349479567d1ee232ad7ec127018aca7be381a47b5181def5__callback95451492020-02-24 8:42:11906 days 14 hrs ago0x00004242ad585b2514e743d3de099f914c2dc2ca IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000269865
0xf269e6530c4a96a95f2b83e8206d3192f079069d03930ee5360992c81012b036Bet95451482020-02-24 8:42:10906 days 14 hrs ago0xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍00869999 Ether0.‍00061035
0x3d1953ad0a4d60cd52d7b28d39fa912a48abf977c354af1955a7110d9a6cb732__callback95451402020-02-24 8:41:00906 days 14 hrs ago0x00004242712d0fa9e44533f7c836b2024bcb69ab IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000185765
0xa1ed723a9b8eb386ca72177f3d8f00653ae965300ac7639266d838d35acbfc90Bet95451362020-02-24 8:40:50906 days 14 hrs ago0xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍0078 Ether0.‍001074138.‍8
0x8c839fa70a816278a5d89e9f04c9ee3f8f3bed67f703a80490d2f236e955657d__callback95410732020-02-23 17:47:14907 days 5 hrs ago0x00004242ad585b2514e743d3de099f914c2dc2ca IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍00018575
0x3c0d67d2c7fbd2f57dbe287cc805335772941b1c0353547b7db6d7759c88137dBet95410712020-02-23 17:46:51907 days 5 hrs ago0xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍0066 Ether0.‍000122061
0x53459a65a4ee1dab5bca39e44b59adf3b450df2d7b4fc8d252f94ab97f331317__callback95409442020-02-23 17:23:23907 days 5 hrs ago0x00004242ad585b2514e743d3de099f914c2dc2ca IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000267655
0xd184a668b79204df0445d1c07fc958eb4785386c2fe04e940d04f32fc6989303Bet95409412020-02-23 17:22:42907 days 5 hrs ago0xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍0063 Ether0.‍000122061
0x08897476b37c35cb0af0274453270e405d431deffcc857282c14a006df70778a__callback95409002020-02-23 17:14:20907 days 5 hrs ago0x00004242ad585b2514e743d3de099f914c2dc2ca IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000185765
0x68e7404babec76c056f47311e589e71ececf27fbe9e901f1e1e7ef5c23bbe75bBet95408982020-02-23 17:14:12907 days 5 hrs ago0xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍006 Ether0.‍000244122
0xd809cdbaaf631634c610f48079935b027ebc4b9a80a32e60765f5887ebcb0327__callback95408812020-02-23 17:10:01907 days 5 hrs ago0x00004242ad585b2514e743d3de099f914c2dc2ca IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40 Ether0.‍000269925
0xda52a5490abd0cc8ed6f3fd6ef5e9ab36e04d3a30ab46c2b01f756588d9c335eBet95408752020-02-23 17:07:54907 days 5 hrs ago0xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae IN  0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40.‍0065 Ether0.‍000244122
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xf73a6e9b00368a723d13e396aac6477f407af010c4fb5dbaff7bfa6ffd7e360f119224752021-02-24 22:23:50540 days 24 mins ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40x6608c789c9f2d2a48f6ce8aa22df80e1b1dd7c832.‍18646789 Ether
0x0e8fb61672ee85326b64e0bac9f3384ec0036e6fc83d9586bd372e8c9007fcdb98443202020-04-10 11:46:20860 days 11 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40x7ec026b97d38740ff837f19af6a8e3fd5363a9880.‍0174 Ether
0xdce58aac589fb9980fa7742d0e3c90351120d716efa6189ff2b0c8af46e3c18898443172020-04-10 11:45:59860 days 11 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00136938 Ether
0x88b4f7c58f7adf2c25b62cf71959bd00d4a5bf99a06be6f514e183ad2a62949698079492020-04-04 21:27:29866 days 1 hr ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00141596 Ether
0x0ab1103f0cdf559db6da06eb557c51c63a92d2efb16715ee477e3cd1d1ce82ba98070122020-04-04 17:55:53866 days 4 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40xfe0b3ee77ecab8300558e7484ad9d59906ab06ff0.‍007698 Ether
0x6956fcb393b3cab3a09255c743ca5127b5d8d8e15fadf71fb743986157f6463398070102020-04-04 17:55:30866 days 4 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00141596 Ether
0xce6e1ee97ba51b4423f6212897cbd9825ea833fbdef6705b630757c0238f0f4497071932020-03-20 7:21:44881 days 15 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40x33caaa54ee6c8035c60ee3a73c679e5fa16dc4c00.‍0174 Ether
0x2582f7d8d6b3bcc1a55c7957eadbddadcee52b709dd6a1a715e2f990cf5da3d997071922020-03-20 7:21:33881 days 15 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00141596 Ether
0x89eb794579eddafd24f3af0852b996d6eeefc5444c46f697858fb1f36ed613b596646402020-03-13 18:08:12888 days 4 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40xe773b5a736daf4d5d482ca51b1572b787375ad090.‍019182 Ether
0xaaf78a481f7845b0c5fabe9080a1d29a82e0ff46c75822d1eeb81315f59503c596577382020-03-12 16:19:48889 days 6 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00132268 Ether
0x9e406ee4ef704028d42fb510c55b1364faa4f7cacdc64883579ea8ad8d5933ba95451612020-02-24 8:46:23906 days 14 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00130617 Ether
0xe612255904113118349479567d1ee232ad7ec127018aca7be381a47b5181def595451492020-02-24 8:42:11906 days 14 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae0.‍01482599 Ether
0xf269e6530c4a96a95f2b83e8206d3192f079069d03930ee5360992c81012b03695451482020-02-24 8:42:10906 days 14 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00130617 Ether
0xa1ed723a9b8eb386ca72177f3d8f00653ae965300ac7639266d838d35acbfc9095451362020-02-24 8:40:50906 days 14 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00130617 Ether
0x3c0d67d2c7fbd2f57dbe287cc805335772941b1c0353547b7db6d7759c88137d95410712020-02-23 17:46:51907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00130617 Ether
0x53459a65a4ee1dab5bca39e44b59adf3b450df2d7b4fc8d252f94ab97f33131795409442020-02-23 17:23:23907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae0.‍010074 Ether
0xd184a668b79204df0445d1c07fc958eb4785386c2fe04e940d04f32fc698930395409412020-02-23 17:22:42907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00130617 Ether
0x68e7404babec76c056f47311e589e71ececf27fbe9e901f1e1e7ef5c23bbe75b95408982020-02-23 17:14:12907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00130617 Ether
0xd809cdbaaf631634c610f48079935b027ebc4b9a80a32e60765f5887ebcb032795408812020-02-23 17:10:01907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae0.‍01047 Ether
0xda52a5490abd0cc8ed6f3fd6ef5e9ab36e04d3a30ab46c2b01f756588d9c335e95408752020-02-23 17:07:54907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00130617 Ether
0xd34a185345f4068a1a8223ad73fc7f0c794808fb561385095d213225c54d5b0e95408392020-02-23 17:02:44907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae0.‍009084 Ether
0xc73f23ab16c2ef2c3749768f2d33846e7de76ca698b8b91bd0fc091eeb43f72b95408362020-02-23 17:02:30907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00130617 Ether
0xa7fa0161cd1c980fb20bf2818970198281191c2e2347fb108c9b0a10c26d203a95408242020-02-23 17:00:54907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae0.‍008886 Ether
0x2ad891d67b1c5ae77c7bfc4e1f2cb4f9f4228dd49b57e102c28fa1e7ea4e7e2e95408202020-02-23 16:59:59907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e4 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.‍00130617 Ether
0xf66c1425c0e0d812d0ca528e7b343196353f61b6a4737b47d4262156472afa4795408152020-02-23 16:58:15907 days 5 hrs ago 0xb4afb4a1df99c2333ddc57ec33e57d26e87e78e40xbc8ae329a8eeb0beb70032ffb1d41eb2581776ae0.‍008094 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CoinFlip

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-03-06
*/

/*element14*/
/*CoinFlip  1% of HouseEdge*/


// <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));
        // Convert from seconds to ledger timer ticks
        _delay *= 10; 
        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 memory delay = new bytes(32);
        assembly { 
            mstore(add(delay, 0x20), _delay) 
        }
        
        bytes memory delay_bytes8 = new bytes(8);
        copyBytes(delay, 24, 8, delay_bytes8, 0);

        bytes[4] memory args = [unonce, nbytes, sessionKeyHash, delay];
        bytes32 queryId = oraclize_query("random", args, _customGasLimit);
        
        bytes memory delay_bytes8_left = new bytes(8);
        
        assembly {
            let x := mload(add(delay_bytes8, 0x20))
            mstore8(add(delay_bytes8_left, 0x27), div(x, 0x100000000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x26), div(x, 0x1000000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x25), div(x, 0x10000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x24), div(x, 0x100000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x23), div(x, 0x1000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x22), div(x, 0x10000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x21), div(x, 0x100000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x20), div(x, 0x1000000000000000000000000000000000000000000000000))

        }
        
        oraclize_randomDS_setCommitment(queryId, keccak256(delay_bytes8_left, 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;
        
        require(prefix.length == n_random_bytes);

        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>

/*element14*/

contract CoinFlip is usingOraclize {
    
    modifier onlyAdmin() {
        require(msg.sender == adminAddress);
        _;
    }
    /*
     * checks only Oraclize address is calling
    */
    modifier onlyOraclize {
        if (msg.sender != oraclize_cbAddress()) throw;
        _;
    }
    event newBet(string _str);
    //Setup
    address public adminAddress;

    //GameSetup
    uint public minBet;
    uint public maxProfit;

    //FeeSetup
    uint public oraclizeFee;
    uint public adminFee;
    uint public oraclizeGasLimit;
    
    uint public maxProfitPercentage;
    uint public totalPlay;
    uint public totalLose;
    uint public totalWon;
    
    uint public totalWeiWon;
    uint public totalWeiLose;
    
    uint public contractBalance;

    //PlayerSetup
    // Array of players
    mapping (bytes32 => address) playerAddress;
    mapping (bytes32 => uint) playerBetAmount;
    mapping (bytes32 => uint) playerBetNumber;
    string public _result;

    
    function CoinFlip() payable {
        //ConstructorVars
        adminAddress=msg.sender;
        //minBet = (5000000000000000 * 1 wei);
        //adminFee=99; //1% of  houseEdge
        //oraclizeGasLimit = 235000;
        //maxProfitPercentage=1;
    }

    function __callback(bytes32 queryId, string result) onlyOraclize {
        _result=result;
        uint  weiWon;
        if( (parseInt(result)/50) == playerBetNumber[queryId] ){
            totalWon++;
            weiWon=( ( playerBetAmount[queryId] * adminFee/100 ) - oraclizeFee)*2;
            totalWeiWon+=weiWon;
            playerAddress[queryId].transfer(weiWon );
        }else{
            totalLose++;
        }
        maxProfit=(this.balance * maxProfitPercentage)/100;
        delete playerAddress[queryId];
        delete playerBetAmount[queryId];
        delete playerBetNumber[queryId];

    }

    function Bet(uint _number) payable returns (bytes32){
        
        uint betValue = msg.value;
        
        assert(maxProfit > (betValue*2));
        if(betValue < minBet) throw;
        totalWeiLose+=betValue;
        
        totalPlay++;
        bytes32 queryId = oraclize_query("WolframAlpha", "random number between 0 and 99",oraclizeGasLimit);

        playerAddress[queryId]=msg.sender;
        playerBetAmount[queryId]=betValue;
        playerBetNumber[queryId]=_number;

        return queryId;

    }

    function setGame(uint _adminFee  , uint _minBet , uint _oraclizeGasLimit , uint _maxProfitPercentage , uint _oraclizeFee , uint newGas) public onlyAdmin{
        adminFee = _adminFee;
        minBet = (_minBet * 1 wei);
        oraclizeGasLimit = _oraclizeGasLimit ;
        maxProfitPercentage= _maxProfitPercentage;
        maxProfit=(this.balance*_maxProfitPercentage)/100;
        oraclizeFee=(_oraclizeFee * 1 wei);
        oraclize_setCustomGasPrice(newGas * 1 wei);
        contractBalance=this.balance;
    }

    function withdraw(uint _amount , address _addr) public onlyAdmin{
        _addr.transfer(_amount);
        contractBalance=this.balance;
        maxProfit=(contractBalance*maxProfitPercentage)/100;
    }   
    
    function updateBalance() payable{
        contractBalance=this.balance;
        maxProfit=(contractBalance*maxProfitPercentage)/100;
    }

    function getGameVars() public view returns(
        uint _maxProfit,
        uint _minBet,
        uint _totalPlay,
        uint _totalLose,
        uint _totalWon,
        uint _maxProfitPercentage,
        uint _contractbalance,
        uint _totalWeiWon,
        uint _totalWeiLose
        ){
            _maxProfit=maxProfit;
            _minBet=minBet;
            _totalPlay=totalPlay;
            _totalLose=totalLose;
            _totalWon=totalWon;
            _maxProfitPercentage=maxProfitPercentage; 
            _contractbalance=contractBalance;
            _totalWeiWon=totalWeiWon;
            _totalWeiLose=totalWeiLose;
    
        }

   

}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_amount","type":"uint256"},{"name":"_addr","type":"address"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalWeiWon","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"queryId","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"},{"name":"proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalLose","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxProfitPercentage","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"oraclizeFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"oraclizeGasLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalPlay","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_result","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"contractBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getGameVars","outputs":[{"name":"_maxProfit","type":"uint256"},{"name":"_minBet","type":"uint256"},{"name":"_totalPlay","type":"uint256"},{"name":"_totalLose","type":"uint256"},{"name":"_totalWon","type":"uint256"},{"name":"_maxProfitPercentage","type":"uint256"},{"name":"_contractbalance","type":"uint256"},{"name":"_totalWeiWon","type":"uint256"},{"name":"_totalWeiLose","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minBet","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_adminFee","type":"uint256"},{"name":"_minBet","type":"uint256"},{"name":"_oraclizeGasLimit","type":"uint256"},{"name":"_maxProfitPercentage","type":"uint256"},{"name":"_oraclizeFee","type":"uint256"},{"name":"newGas","type":"uint256"}],"name":"setGame","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"adminFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"updateBalance","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"totalWon","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxProfit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_number","type":"uint256"}],"name":"Bet","outputs":[{"name":"","type":"bytes32"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"totalWeiLose","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"adminAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_str","type":"string"}],"name":"newBet","type":"event"}]

606060405233600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061213e806100546000396000f30060606040526004361061011c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168062f714ce1461012157806315c12d4d1461016357806327dc297e1461018c57806338bbfa50146101f65780634414a5c8146102a357806345c9a11a146102cc5780634c6226fc146102f557806350b9c4281461031e5780636f10fdbd1461034757806379147cf0146103705780638b7afe2e146103fe5780638fe2b355146104275780639619367d146104885780639665688e146104b1578063a0be06f914610501578063a9559dd71461052a578063b3ff277d14610534578063b539cd551461055d578063ba8cded714610586578063f41dc25f146105ba578063fc6f9468146105e3575b600080fd5b341561012c57600080fd5b610161600480803590602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610638565b005b341561016e57600080fd5b61017661070f565b6040518082815260200191505060405180910390f35b341561019757600080fd5b6101f460048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610715565b005b341561020157600080fd5b6102a160048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190505061093f565b005b34156102ae57600080fd5b6102b6610944565b6040518082815260200191505060405180910390f35b34156102d757600080fd5b6102df61094a565b6040518082815260200191505060405180910390f35b341561030057600080fd5b610308610950565b6040518082815260200191505060405180910390f35b341561032957600080fd5b610331610956565b6040518082815260200191505060405180910390f35b341561035257600080fd5b61035a61095c565b6040518082815260200191505060405180910390f35b341561037b57600080fd5b610383610962565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103c35780820151818401526020810190506103a8565b50505050905090810190601f1680156103f05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561040957600080fd5b610411610a00565b6040518082815260200191505060405180910390f35b341561043257600080fd5b61043a610a06565b604051808a8152602001898152602001888152602001878152602001868152602001858152602001848152602001838152602001828152602001995050505050505050505060405180910390f35b341561049357600080fd5b61049b610a4c565b6040518082815260200191505060405180910390f35b34156104bc57600080fd5b6104ff6004808035906020019091908035906020019091908035906020019091908035906020019091908035906020019091908035906020019091905050610a52565b005b341561050c57600080fd5b610514610b35565b6040518082815260200191505060405180910390f35b610532610b3b565b005b341561053f57600080fd5b610547610b74565b6040518082815260200191505060405180910390f35b341561056857600080fd5b610570610b7a565b6040518082815260200191505060405180910390f35b61059c6004808035906020019091905050610b80565b60405180826000191660001916815260200191505060405180910390f35b34156105c557600080fd5b6105cd610ce6565b6040518082815260200191505060405180910390f35b34156105ee57600080fd5b6105f6610cec565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561069457600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015156106d457600080fd5b3073ffffffffffffffffffffffffffffffffffffffff16316011819055506064600b546011540281151561070457fe5b046007819055505050565b600f5481565b600061071f610d12565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561075857600080fd5b816015908051906020019061076e929190612059565b5060146000846000191660001916815260200190815260200160002054603261079684611028565b81151561079f57fe5b04141561087d57600e600081548092919060010191905055506002600854606460095460136000886000191660001916815260200190815260200160002054028115156107e857fe5b040302905080600f6000828254019250508190555060126000846000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050151561087857600080fd5b610890565b600d600081548092919060010191905055505b6064600b543073ffffffffffffffffffffffffffffffffffffffff1631028115156108b757fe5b0460078190555060126000846000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556013600084600019166000191681526020019081526020016000206000905560146000846000191660001916815260200190815260200160002060009055505050565b505050565b600d5481565b600b5481565b60085481565b600a5481565b600c5481565b60158054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109f85780601f106109cd576101008083540402835291602001916109f8565b820191906000526020600020905b8154815290600101906020018083116109db57829003601f168201915b505050505081565b60115481565b600080600080600080600080600060075498506006549750600c549650600d549550600e549450600b5493506011549250600f5491506010549050909192939495969798565b60065481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610aae57600080fd5b856009819055506001850260068190555083600a8190555082600b819055506064833073ffffffffffffffffffffffffffffffffffffffff163102811515610af257fe5b0460078190555060018202600881905550610b0f6001820261103c565b3073ffffffffffffffffffffffffffffffffffffffff1631601181905550505050505050565b60095481565b3073ffffffffffffffffffffffffffffffffffffffff16316011819055506064600b5460115402811515610b6b57fe5b04600781905550565b600e5481565b60075481565b600080600034915060028202600754111515610b9857fe5b600654821015610ba757600080fd5b81601060008282540192505081905550600c60008154809291906001019190505550610c406040805190810160405280600c81526020017f576f6c6672616d416c70686100000000000000000000000000000000000000008152506040805190810160405280601e81526020017f72616e646f6d206e756d626572206265747765656e203020616e642039390000815250600a5461134a565b90503360126000836000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816013600083600019166000191681526020019081526020016000208190555083601460008360001916600019168152602001908152602001600020819055508092505050919050565b60105481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480610d8257506000610d806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661189a565b145b15610d9357610d9160006118a5565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515610e2057600080fd5b6102c65a03f11515610e3157600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610f7a576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515610f1e57600080fd5b6102c65a03f11515610f2f57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561100857600080fd5b6102c65a03f1151561101957600080fd5b50505060405180519050905090565b60006110358260006118b6565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806110ab575060006110a96000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661189a565b145b156110bc576110ba60006118a5565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561114957600080fd5b6102c65a03f1151561115a57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156112a3576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561124757600080fd5b6102c65a03f1151561125857600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca6ad1e4826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561133357600080fd5b6102c65a03f1151561134457600080fd5b50505050565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806113bc575060006113ba6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661189a565b145b156113cd576113cb60006118a5565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561145a57600080fd5b6102c65a03f1151561146b57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156115b4576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561155857600080fd5b6102c65a03f1151561156957600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc86856000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561166e578082015181840152602081019050611653565b50505050905090810190601f16801561169b5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b15156116ba57600080fd5b6102c65a03f115156116cb57600080fd5b505050604051805190509050823a02670de0b6b3a7640000018111156116f75760006001029150611892565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c51be90f8260008888886000604051602001526040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b838110156117bf5780820151818401526020810190506117a4565b50505050905090810190601f1680156117ec5780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101561182557808201518184015260208101905061180a565b50505050905090810190601f1680156118525780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b151561187357600080fd5b6125ee5a03f1151561188457600080fd5b505050506040518051905091505b509392505050565b6000813b9050919050565b60006118af611bb0565b9050919050565b60006118c06120d9565b60008060008693506000925060009150600090505b8351811015611b915760307f010000000000000000000000000000000000000000000000000000000000000002848281518110151561191057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611a28575060397f01000000000000000000000000000000000000000000000000000000000000000284828151811015156119b857fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b15611ad9578115611a4b576000861415611a4157611b91565b8580600190039650505b600a8302925060308482815181101515611a6157fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f010000000000000000000000000000000000000000000000000000000000000090040383019250611b84565b602e7f0100000000000000000000000000000000000000000000000000000000000000028482815181101515611b0b57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415611b8357600191505b5b80806001019150506118d5565b6000861115611ba35785600a0a830292505b8294505050505092915050565b600080611bd0731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed61189a565b1115611c7157731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611c686040805190810160405280600b81526020017f6574685f6d61696e6e657400000000000000000000000000000000000000000081525061203f565b6001905061203c565b6000611c9073c03a2615d5efaf5f49f60b7bb6583eaec212fdf161189a565b1115611d315773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611d286040805190810160405280600c81526020017f6574685f726f707374656e33000000000000000000000000000000000000000081525061203f565b6001905061203c565b6000611d5073b7a07bcf2ba2f2703b24c0691b5278999c59ac7e61189a565b1115611df15773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611de86040805190810160405280600981526020017f6574685f6b6f76616e000000000000000000000000000000000000000000000081525061203f565b6001905061203c565b6000611e1073146500cfd35b22e4a392fe0adc06de1a1368ed4861189a565b1115611eb15773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611ea86040805190810160405280600b81526020017f6574685f72696e6b65627900000000000000000000000000000000000000000081525061203f565b6001905061203c565b6000611ed0736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47561189a565b1115611f3357736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061203c565b6000611f527320e12a1f859b3feae5fb2a0a32c18f5a65555bbf61189a565b1115611fb5577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061203c565b6000611fd47351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa61189a565b1115612037577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061203c565b600090505b90565b8060029080519060200190612055929190612059565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061209a57805160ff19168380011785556120c8565b828001600101855582156120c8579182015b828111156120c75782518255916020019190600101906120ac565b5b5090506120d591906120ed565b5090565b602060405190810160405280600081525090565b61210f91905b8082111561210b5760008160009055506001016120f3565b5090565b905600a165627a7a72305820a393c3f6196c1995c3af67ddaa4a3bb320d2012a875d125a4f0fc599cb3d99830029

Swarm Source

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

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.