ETH Price: $1,974.55 (-4.85%)

Contract

0xd64Ad4eEFAaCb96A0865687CfEeF4C4A2CfBfeF2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Kill40629222017-07-23 15:35:323168 days ago1500824132IN
0xd64Ad4eE...A2CfBfeF2
0 ETH0.0003093122.91763037
Place Bet40625982017-07-23 13:55:153169 days ago1500818115IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40625952017-07-23 13:54:533169 days ago1500818093IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40625752017-07-23 13:50:573169 days ago1500817857IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40625542017-07-23 13:45:013169 days ago1500817501IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40625442017-07-23 13:42:023169 days ago1500817322IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40625262017-07-23 13:35:493169 days ago1500816949IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40625262017-07-23 13:35:493169 days ago1500816949IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40625262017-07-23 13:35:493169 days ago1500816949IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.000597385
Place Bet40625262017-07-23 13:35:493169 days ago1500816949IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40625192017-07-23 13:33:053169 days ago1500816785IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.001081865
Place Bet40623762017-07-23 12:49:563169 days ago1500814196IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.000269082
Place Bet40623672017-07-23 12:46:493169 days ago1500814009IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40622742017-07-23 12:23:453169 days ago1500812625IN
0xd64Ad4eE...A2CfBfeF2
0.01 ETH0.000269082
Place Bet40622552017-07-23 12:18:103169 days ago1500812290IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.000269082
Place Bet40622312017-07-23 12:10:003169 days ago1500811800IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.000269082
Place Bet40622202017-07-23 12:07:243169 days ago1500811644IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.000269082
Place Bet40617872017-07-23 9:50:563169 days ago1500803456IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40609192017-07-23 5:15:393169 days ago1500786939IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.000269082
Place Bet40609072017-07-23 5:12:173169 days ago1500786737IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.000269082
Place Bet40602722017-07-23 1:48:513169 days ago1500774531IN
0xd64Ad4eE...A2CfBfeF2
0.01 ETH0.00067275
Place Bet40602562017-07-23 1:44:403169 days ago1500774280IN
0xd64Ad4eE...A2CfBfeF2
0.01 ETH0.0048741620
Withdraw40602482017-07-23 1:41:453169 days ago1500774105IN
0xd64Ad4eE...A2CfBfeF2
0 ETH0.000399820
Place Bet40602362017-07-23 1:36:183169 days ago1500773778IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.00067275
Place Bet40602252017-07-23 1:34:013169 days ago1500773641IN
0xd64Ad4eE...A2CfBfeF2
0.001 ETH0.0062249420
View all transactions

Latest 5 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer40629222017-07-23 15:35:323168 days ago1500824132
0xd64Ad4eE...A2CfBfeF2
0.338 ETH
Transfer40602482017-07-23 1:41:453169 days ago1500774105
0xd64Ad4eE...A2CfBfeF2
0.01 ETH
Transfer40594042017-07-22 21:23:283169 days ago1500758608
0xd64Ad4eE...A2CfBfeF2
0.01 ETH
Transfer40592402017-07-22 20:38:123169 days ago1500755892
0xd64Ad4eE...A2CfBfeF2
0.01 ETH
Transfer40554642017-07-22 1:08:093170 days ago1500685689
0xd64Ad4eE...A2CfBfeF2
0.1 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Contract Self Destruct called at Txn Hash 0x0bf656d874e4b36455f1123198c263ef358f0240c14f4c2ad3cdc35713b355fa


Contract Source Code Verified (Exact Match)

Contract Name:
Lotthereum

Compiler Version
v0.4.13+commit.fb4cb1a

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.4.11;

contract SafeMath {
    function add(uint x, uint y) internal constant returns (uint z) {
        assert((z = x + y) >= x);
    }
 
    function subtract(uint x, uint y) internal constant returns (uint z) {
        assert((z = x - y) <= x);
    }

    function multiply(uint x, uint y) internal constant returns (uint z) {
        z = x * y;
        assert(x == 0 || z / x == y);
        return z;
    }

    function divide(uint x, uint y) internal constant returns (uint z) {
        z = x / y;
        assert(x == ( (y * z) + (x % y) ));
        return z;
    }
    
    function min64(uint64 x, uint64 y) internal constant returns (uint64) {
        return x < y ? x: y;
    }
    
    function max64(uint64 x, uint64 y) internal constant returns (uint64) {
        return x >= y ? x : y;
    }

    function min(uint x, uint y) internal constant returns (uint) {
        return (x <= y) ? x : y;
    }

    function max(uint x, uint y) internal constant returns (uint) {
        return (x >= y) ? x : y;
    }

    function assert(bool assertion) internal {
        if (!assertion) {
            revert();
        }
    }
}


contract Owned {
    address owner;

    modifier onlyowner() {
        if (msg.sender == owner) {
            _;
        }
    }

    function Owned() {
        owner = msg.sender;
    }
}


contract Mortal is Owned {
    
    function kill() {
        if (msg.sender == owner)
            selfdestruct(owner);
    }
}


contract Lotthereum is Mortal, SafeMath {
    Game[] private games;
    mapping (address => uint) private balances;  // balances per address

    struct Game {
        uint id;
        uint pointer;
        uint maxNumberOfBets;
        uint minAmountByBet;
        uint prize;
        uint currentRound;
        Round[] rounds;
    }

    struct Round {
        uint id;
        uint pointer;
        bytes32 hash;
        bool open;
        uint8 number;
        Bet[] bets;
        address[] winners;
    }

    struct Bet {
        uint id;
        address origin;
        uint amount;
        uint8 bet;
        uint round;
    }

    event RoundOpen(
        uint indexed gameId,
        uint indexed roundId
    );
    event RoundClose(
        uint indexed gameId,
        uint indexed roundId,
        uint8 number
    );
    event MaxNumberOfBetsChanged(
        uint maxNumberOfBets
    );
    event MinAmountByBetChanged(
        uint minAmountByBet
    );
    event BetPlaced(
        uint indexed gameId,
        uint indexed roundId,
        address indexed origin,
        uint betId
    );
    event RoundWinner(
        uint indexed gameId,
        uint indexed roundId,
        address indexed winnerAddress,
        uint amount
    );

    function createGame(
        uint pointer,
        uint maxNumberOfBets,
        uint minAmountByBet,
        uint prize
    ) onlyowner returns (uint id) {
        id = games.length;
        games.length += 1;
        games[id].id = id;
        games[id].pointer = pointer;
        games[id].maxNumberOfBets = maxNumberOfBets;
        games[id].minAmountByBet = minAmountByBet;
        games[id].prize = prize;
        games[id].currentRound = createGameRound(id);
    }

    function createGameRound(uint gameId) internal returns (uint id) {
        Game game = games[gameId];
        id = games[gameId].rounds.length;
        game.rounds.length += 1;
        game.rounds[id].id = id;
        game.rounds[id].open = true;
        RoundOpen(gameId, id);
    }

    function payout(uint gameId) internal {
        Game game = games[gameId];
        Round round = game.rounds[game.currentRound];
        Bet[] bets = round.bets;
        address[] winners = round.winners;
        for (uint i = 0; i < bets.length; i++) {
            if (bets[i].bet == round.number) {
                uint id = winners.length;
                winners.length += 1;
                winners[id] = bets[i].origin;
            }
        }

        if (winners.length > 0) {
            uint prize = divide(game.prize, winners.length);
            for (i = 0; i < winners.length; i++) {
                balances[winners[i]] = add(balances[winners[i]], prize);
                RoundWinner(game.id, game.currentRound, winners[i], prize);
            }
        }
    }

    function closeRound(uint gameId) constant internal {
        Game game = games[gameId];
        Round round = game.rounds[game.currentRound];
        round.open = false;
        round.hash = getBlockHash(game.pointer);
        round.number = getNumber(game.rounds[game.currentRound].hash);
        game.pointer = game.rounds[game.currentRound].number;
        payout(gameId);
        RoundClose(game.id, round.id, round.number);
        game.currentRound = createGameRound(game.id);
    }

    function getBlockHash(uint i) constant returns (bytes32 blockHash) {
        if (i > 255) {
            i = 255;
        }
        uint blockNumber = block.number - i;
        blockHash = block.blockhash(blockNumber);
    }

    function getNumber(bytes32 _a) constant returns (uint8) {
        uint8 _b = 1;
        uint8 mint = 0;
        bool decimals = false;
        for (uint i = _a.length - 1; i >= 0; i--) {
            if ((_a[i] >= 48) && (_a[i] <= 57)) {
                if (decimals) {
                    if (_b == 0) {
                        break;
                    } else {
                        _b--;
                    }
                }
                mint *= 10;
                mint += uint8(_a[i]) - 48;
                return mint;
            } else if (_a[i] == 46) {
                decimals = true;
            }
        }
        return mint;
    }

    function placeBet(uint gameId, uint8 bet) public payable returns (bool) {
        Game game = games[gameId];
        Round round = game.rounds[game.currentRound];
        Bet[] bets = round.bets;

        if (!round.open) {
            return false;
        }

        if (msg.value < game.minAmountByBet) {
            return false;
        }

        uint id = bets.length;
        bets.length += 1;
        bets[id].id = id;
        bets[id].round = round.id;
        bets[id].bet = bet;
        bets[id].origin = msg.sender;
        bets[id].amount = msg.value;
        BetPlaced(game.id, round.id, msg.sender, id);

        if (bets.length == game.maxNumberOfBets) {
            closeRound(game.id);
        }

        return true;
    }

    function withdraw() public returns (uint) {
        uint amount = getBalance();
        if (amount > 0) {
            balances[msg.sender] = 0;
            msg.sender.transfer(amount);
            return amount;
        }
        return 0;
    }

    function getBalance() constant returns (uint) {
        uint amount = balances[msg.sender];
        if ((amount > 0) && (amount < this.balance)) {
            return amount;
        }
        return 0;
    }

    function getGames() constant returns(uint[] memory ids) {
        ids = new uint[](games.length);
        for (uint i = 0; i < games.length; i++) {
            ids[i] = games[i].id;
        }
    }

    function getGameCurrentRoundId(uint gameId) constant returns(uint) {
        return games[gameId].currentRound;
    }

    function getGameRoundOpen(uint gameId, uint roundId) constant returns(bool) {
        return games[gameId].rounds[roundId].open;
    }

    function getGameMaxNumberOfBets(uint gameId) constant returns(uint) {
        return games[gameId].maxNumberOfBets;
    }

    function getGameMinAmountByBet(uint gameId) constant returns(uint) {
        return games[gameId].minAmountByBet;
    }

    function getGamePrize(uint gameId) constant returns(uint) {
        return games[gameId].prize;
    }

    function getRoundNumberOfBets(uint gameId, uint roundId) constant returns(uint) {
        return games[gameId].rounds[roundId].bets.length;
    }

    function getRoundBetOrigin(uint gameId, uint roundId, uint betId) constant returns(address) {
        return games[gameId].rounds[roundId].bets[betId].origin;
    }

    function getRoundBetAmount(uint gameId, uint roundId, uint betId) constant returns(uint) {
        return games[gameId].rounds[roundId].bets[betId].amount;
    }

    function getRoundBetNumber(uint gameId, uint roundId, uint betId) constant returns(uint) {
        return games[gameId].rounds[roundId].bets[betId].bet;
    }

    function getRoundNumber(uint gameId, uint roundId) constant returns(uint8) {
        return games[gameId].rounds[roundId].number;
    }

    function getRoundPointer(uint gameId, uint roundId) constant returns(uint) {
        return games[gameId].rounds[roundId].pointer;
    }

    function getPointer(uint gameId) constant returns(uint) {
        return games[gameId].pointer;
    }

    function () payable {
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[{"name":"gameId","type":"uint256"},{"name":"bet","type":"uint8"}],"name":"placeBet","outputs":[{"name":"","type":"bool"}],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"getBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_a","type":"bytes32"}],"name":"getNumber","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"},{"name":"roundId","type":"uint256"}],"name":"getGameRoundOpen","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"},{"name":"roundId","type":"uint256"}],"name":"getRoundPointer","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"}],"name":"getGameMinAmountByBet","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"},{"name":"roundId","type":"uint256"}],"name":"getRoundNumberOfBets","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"},{"name":"roundId","type":"uint256"},{"name":"betId","type":"uint256"}],"name":"getRoundBetOrigin","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"pointer","type":"uint256"},{"name":"maxNumberOfBets","type":"uint256"},{"name":"minAmountByBet","type":"uint256"},{"name":"prize","type":"uint256"}],"name":"createGame","outputs":[{"name":"id","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getGames","outputs":[{"name":"ids","type":"uint256[]"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"},{"name":"roundId","type":"uint256"}],"name":"getRoundNumber","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"}],"name":"getGameCurrentRoundId","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"},{"name":"roundId","type":"uint256"},{"name":"betId","type":"uint256"}],"name":"getRoundBetNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"}],"name":"getGameMaxNumberOfBets","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"}],"name":"getPointer","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"}],"name":"getGamePrize","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"i","type":"uint256"}],"name":"getBlockHash","outputs":[{"name":"blockHash","type":"bytes32"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"gameId","type":"uint256"},{"name":"roundId","type":"uint256"},{"name":"betId","type":"uint256"}],"name":"getRoundBetAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"gameId","type":"uint256"},{"indexed":true,"name":"roundId","type":"uint256"}],"name":"RoundOpen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"gameId","type":"uint256"},{"indexed":true,"name":"roundId","type":"uint256"},{"indexed":false,"name":"number","type":"uint8"}],"name":"RoundClose","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"maxNumberOfBets","type":"uint256"}],"name":"MaxNumberOfBetsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"minAmountByBet","type":"uint256"}],"name":"MinAmountByBetChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"gameId","type":"uint256"},{"indexed":true,"name":"roundId","type":"uint256"},{"indexed":true,"name":"origin","type":"address"},{"indexed":false,"name":"betId","type":"uint256"}],"name":"BetPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"gameId","type":"uint256"},{"indexed":true,"name":"roundId","type":"uint256"},{"indexed":true,"name":"winnerAddress","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"RoundWinner","type":"event"}]

60606040525b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b611bdc806100566000396000f30060606040523615610110576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806303edf9141461011957806312065fe0146101555780632ecb0d641461017e5780633ccfd60b146101bf57806341c0e1b5146101e857806342207083146101fd5780634ac5dea914610241578063658d342314610281578063ae2c1506146102b8578063b24c35e4146102f8578063bdaae1e71461036d578063c04c5947146103bf578063c43e94621461042a578063ceb9a5fd14610470578063d3511f82146104a7578063e7320f9e146104f0578063e8854cfd14610527578063ead2bfdc1461055e578063ee82ac5e14610595578063f68009b9146105d4575b6101175b5b565b005b61013b600480803590602001909190803560ff1690602001909190505061061d565b604051808215151515815260200191505060405180910390f35b341561016057600080fd5b61016861086b565b6040518082815260200191505060405180910390f35b341561018957600080fd5b6101a36004808035600019169060200190919050506108ec565b604051808260ff1660ff16815260200191505060405180910390f35b34156101ca57600080fd5b6101d2610b3e565b6040518082815260200191505060405180910390f35b34156101f357600080fd5b6101fb610bea565b005b341561020857600080fd5b6102276004808035906020019091908035906020019091905050610c7c565b604051808215151515815260200191505060405180910390f35b341561024c57600080fd5b61026b6004808035906020019091908035906020019091905050610cdb565b6040518082815260200191505060405180910390f35b341561028c57600080fd5b6102a26004808035906020019091905050610d2d565b6040518082815260200191505060405180910390f35b34156102c357600080fd5b6102e26004808035906020019091908035906020019091905050610d5c565b6040518082815260200191505060405180910390f35b341561030357600080fd5b61032b6004808035906020019091908035906020019091908035906020019091905050610db1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561037857600080fd5b6103a96004808035906020019091908035906020019091908035906020019091908035906020019091905050610e46565b6040518082815260200191505060405180910390f35b34156103ca57600080fd5b6103d2610fc6565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156104165780820151818401525b6020810190506103fa565b505050509050019250505060405180910390f35b341561043557600080fd5b610454600480803590602001909190803590602001909190505061105d565b604051808260ff1660ff16815260200191505060405180910390f35b341561047b57600080fd5b61049160048080359060200190919050506110bc565b6040518082815260200191505060405180910390f35b34156104b257600080fd5b6104da60048080359060200190919080359060200190919080359060200190919050506110eb565b6040518082815260200191505060405180910390f35b34156104fb57600080fd5b6105116004808035906020019091905050611170565b6040518082815260200191505060405180910390f35b341561053257600080fd5b610548600480803590602001909190505061119f565b6040518082815260200191505060405180910390f35b341561056957600080fd5b61057f60048080359060200190919050506111ce565b6040518082815260200191505060405180910390f35b34156105a057600080fd5b6105b660048080359060200190919050506111fd565b60405180826000191660001916815260200191505060405180910390f35b34156105df57600080fd5b610607600480803590602001909190803590602001909190803590602001909190505061121e565b6040518082815260200191505060405180910390f35b600080600080600060018781548110151561063457fe5b906000526020600020906007020160005b50935083600601846005015481548110151561065d57fe5b906000526020600020906006020160005b5092508260040191508260030160009054906101000a900460ff1615156106985760009450610861565b83600301543410156106ad5760009450610861565b81805490509050600182818180549050019150816106cb91906118f9565b508082828154811015156106db57fe5b906000526020600020906005020160005b50600001819055508260000154828281548110151561070757fe5b906000526020600020906005020160005b506004018190555085828281548110151561072f57fe5b906000526020600020906005020160005b5060030160006101000a81548160ff021916908360ff16021790555033828281548110151561076b57fe5b906000526020600020906005020160005b5060010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503482828154811015156107cd57fe5b906000526020600020906005020160005b50600201819055503373ffffffffffffffffffffffffffffffffffffffff16836000015485600001547ffdd8ed02332acacb3420e7345a9adadb30877075eade2bcde9fe778e8bb71e42846040518082815260200191505060405180910390a483600201548280549050141561085c5761085b8460000154611293565b5b600194505b5050505092915050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811180156108d657503073ffffffffffffffffffffffffffffffffffffffff163181105b156108e3578091506108e8565b600091505b5090565b6000806000806000600193506000925060009150600160200360ff1690505b600081101515610b315760307f010000000000000000000000000000000000000000000000000000000000000002868260208110151561094757fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015610a0f575060397f01000000000000000000000000000000000000000000000000000000000000000286826020811015156109c757fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b15610a9f578115610a365760008460ff161415610a2b57610b31565b8380600190039450505b5b600a8302925060308682602081101515610a4c57fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027f010000000000000000000000000000000000000000000000000000000000000090040383019250829450610b35565b602e7f0100000000000000000000000000000000000000000000000000000000000000028682602081101515610ad157fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610b2157600191505b5b5b80806001900391505061090b565b8294505b50505050919050565b600080610b4961086b565b90506000811115610be1576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501515610bd957600080fd5b809150610be6565b600091505b5090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610c79576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b5b565b6000600183815481101515610c8d57fe5b906000526020600020906007020160005b5060060182815481101515610caf57fe5b906000526020600020906006020160005b5060030160009054906101000a900460ff1690505b92915050565b6000600183815481101515610cec57fe5b906000526020600020906007020160005b5060060182815481101515610d0e57fe5b906000526020600020906006020160005b506001015490505b92915050565b6000600182815481101515610d3e57fe5b906000526020600020906007020160005b506003015490505b919050565b6000600183815481101515610d6d57fe5b906000526020600020906007020160005b5060060182815481101515610d8f57fe5b906000526020600020906006020160005b506004018054905090505b92915050565b6000600184815481101515610dc257fe5b906000526020600020906007020160005b5060060183815481101515610de457fe5b906000526020600020906006020160005b5060040182815481101515610e0657fe5b906000526020600020906005020160005b5060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b9392505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610fbd57600180549050905060018081818054905001915081610ebc919061192b565b5080600182815481101515610ecd57fe5b906000526020600020906007020160005b506000018190555084600182815481101515610ef657fe5b906000526020600020906007020160005b506001018190555083600182815481101515610f1f57fe5b906000526020600020906007020160005b506002018190555082600182815481101515610f4857fe5b906000526020600020906007020160005b506003018190555081600182815481101515610f7157fe5b906000526020600020906007020160005b5060040181905550610f9381611426565b600182815481101515610fa257fe5b906000526020600020906007020160005b50600501819055505b5b5b949350505050565b610fce61195d565b6000600180549050604051805910610fe35750595b908082528060200260200182016040525b509150600090505b6001805490508110156110585760018181548110151561101857fe5b906000526020600020906007020160005b5060000154828281518110151561103c57fe5b90602001906020020181815250505b8080600101915050610ffc565b5b5090565b600060018381548110151561106e57fe5b906000526020600020906007020160005b506006018281548110151561109057fe5b906000526020600020906006020160005b5060030160019054906101000a900460ff1690505b92915050565b60006001828154811015156110cd57fe5b906000526020600020906007020160005b506005015490505b919050565b60006001848154811015156110fc57fe5b906000526020600020906007020160005b506006018381548110151561111e57fe5b906000526020600020906006020160005b506004018281548110151561114057fe5b906000526020600020906005020160005b5060030160009054906101000a900460ff1660ff1690505b9392505050565b600060018281548110151561118157fe5b906000526020600020906007020160005b506002015490505b919050565b60006001828154811015156111b057fe5b906000526020600020906007020160005b506001015490505b919050565b60006001828154811015156111df57fe5b906000526020600020906007020160005b506004015490505b919050565b60008060ff83111561120e5760ff92505b8243039050804091505b50919050565b600060018481548110151561122f57fe5b906000526020600020906007020160005b506006018381548110151561125157fe5b906000526020600020906006020160005b506004018281548110151561127357fe5b906000526020600020906005020160005b506002015490505b9392505050565b6000806001838154811015156112a557fe5b906000526020600020906007020160005b5091508160060182600501548154811015156112ce57fe5b906000526020600020906006020160005b50905060008160030160006101000a81548160ff02191690831515021790555061130c82600101546111fd565b81600201816000191690555061134b82600601836005015481548110151561133057fe5b906000526020600020906006020160005b50600201546108ec565b8160030160016101000a81548160ff021916908360ff16021790555081600601826005015481548110151561137c57fe5b906000526020600020906006020160005b5060030160019054906101000a900460ff1660ff1682600101819055506113b383611530565b806000015482600001547f3cf46fee4a08f281c4350a9bbb4aaeadb7c80ff5ef61a56ffb43b79d212ae41f8360030160019054906101000a900460ff16604051808260ff1660ff16815260200191505060405180910390a36114188260000154611426565b82600501819055505b505050565b60008060018381548110151561143857fe5b906000526020600020906007020160005b50905060018381548110151561145b57fe5b906000526020600020906007020160005b50600601805490509150600181600601818180549050019150816114909190611971565b508181600601838154811015156114a357fe5b906000526020600020906006020160005b5060000181905550600181600601838154811015156114cf57fe5b906000526020600020906006020160005b5060030160006101000a81548160ff02191690831515021790555081837fd3db0eb7a3ce838b416d5946a8e3a24a3d490b8d70895551df735f49a61d7f4160405160405180910390a35b50919050565b600080600080600080600060018881548110151561154a57fe5b906000526020600020906007020160005b50965086600601876005015481548110151561157357fe5b906000526020600020906006020160005b509550856004019450856005019350600092505b84805490508310156116bd578560030160019054906101000a900460ff1660ff1685848154811015156115c757fe5b906000526020600020906005020160005b5060030160009054906101000a900460ff1660ff1614156116af57838054905091506001848181805490500191508161161191906119a3565b50848381548110151561162057fe5b906000526020600020906005020160005b5060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848381548110151561166457fe5b906000526020600020900160005b6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b8280600101935050611598565b600084805490501115611890576116dc8760040154858054905061189b565b9050600092505b838054905083101561188f5761177260026000868681548110151561170457fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826118cf565b60026000868681548110151561178457fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555083838154811015156117fd57fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16876005015488600001547f0f12d8f8fd831e0019cea15f4d3d3d6fbb9929f044d3ff3c528fac91dce47d48846040518082815260200191505060405180910390a45b82806001019350506116e3565b5b5b5050505050505050565b600081838115156118a857fe5b0490506118c582848115156118b957fe5b068284020184146118e9565b8090505b92915050565b60006118e28383850192508210156118e9565b5b92915050565b8015156118f557600080fd5b5b50565b8154818355818115116119265760050281600502836000526020600020918201910161192591906119cf565b5b505050565b815481835581811511611958576007028160070283600052602060002091820191016119579190611a41565b5b505050565b602060405190810160405280600081525090565b81548183558181151161199e5760060281600602836000526020600020918201910161199d9190611aa0565b5b505050565b8154818355818115116119ca578183600052602060002091820191016119c99190611b1f565b5b505050565b611a3e91905b80821115611a3a576000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600090556003820160006101000a81549060ff02191690556004820160009055506005016119d5565b5090565b90565b611a9d91905b80821115611a995760008082016000905560018201600090556002820160009055600382016000905560048201600090556005820160009055600682016000611a909190611b44565b50600701611a47565b5090565b90565b611b1c91905b80821115611b1857600080820160009055600182016000905560028201600090556003820160006101000a81549060ff02191690556003820160016101000a81549060ff0219169055600482016000611aff9190611b69565b600582016000611b0f9190611b8e565b50600601611aa6565b5090565b90565b611b4191905b80821115611b3d576000816000905550600101611b25565b5090565b90565b5080546000825560060290600052602060002090810190611b659190611aa0565b5b50565b5080546000825560050290600052602060002090810190611b8a91906119cf565b5b50565b5080546000825590600052602060002090810190611bac9190611b1f565b5b505600a165627a7a723058208cc936c87a196406db181058686ff8d130a592415cd05d05402894c5f15441810029

Deployed Bytecode

0x60606040523615610110576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806303edf9141461011957806312065fe0146101555780632ecb0d641461017e5780633ccfd60b146101bf57806341c0e1b5146101e857806342207083146101fd5780634ac5dea914610241578063658d342314610281578063ae2c1506146102b8578063b24c35e4146102f8578063bdaae1e71461036d578063c04c5947146103bf578063c43e94621461042a578063ceb9a5fd14610470578063d3511f82146104a7578063e7320f9e146104f0578063e8854cfd14610527578063ead2bfdc1461055e578063ee82ac5e14610595578063f68009b9146105d4575b6101175b5b565b005b61013b600480803590602001909190803560ff1690602001909190505061061d565b604051808215151515815260200191505060405180910390f35b341561016057600080fd5b61016861086b565b6040518082815260200191505060405180910390f35b341561018957600080fd5b6101a36004808035600019169060200190919050506108ec565b604051808260ff1660ff16815260200191505060405180910390f35b34156101ca57600080fd5b6101d2610b3e565b6040518082815260200191505060405180910390f35b34156101f357600080fd5b6101fb610bea565b005b341561020857600080fd5b6102276004808035906020019091908035906020019091905050610c7c565b604051808215151515815260200191505060405180910390f35b341561024c57600080fd5b61026b6004808035906020019091908035906020019091905050610cdb565b6040518082815260200191505060405180910390f35b341561028c57600080fd5b6102a26004808035906020019091905050610d2d565b6040518082815260200191505060405180910390f35b34156102c357600080fd5b6102e26004808035906020019091908035906020019091905050610d5c565b6040518082815260200191505060405180910390f35b341561030357600080fd5b61032b6004808035906020019091908035906020019091908035906020019091905050610db1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561037857600080fd5b6103a96004808035906020019091908035906020019091908035906020019091908035906020019091905050610e46565b6040518082815260200191505060405180910390f35b34156103ca57600080fd5b6103d2610fc6565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156104165780820151818401525b6020810190506103fa565b505050509050019250505060405180910390f35b341561043557600080fd5b610454600480803590602001909190803590602001909190505061105d565b604051808260ff1660ff16815260200191505060405180910390f35b341561047b57600080fd5b61049160048080359060200190919050506110bc565b6040518082815260200191505060405180910390f35b34156104b257600080fd5b6104da60048080359060200190919080359060200190919080359060200190919050506110eb565b6040518082815260200191505060405180910390f35b34156104fb57600080fd5b6105116004808035906020019091905050611170565b6040518082815260200191505060405180910390f35b341561053257600080fd5b610548600480803590602001909190505061119f565b6040518082815260200191505060405180910390f35b341561056957600080fd5b61057f60048080359060200190919050506111ce565b6040518082815260200191505060405180910390f35b34156105a057600080fd5b6105b660048080359060200190919050506111fd565b60405180826000191660001916815260200191505060405180910390f35b34156105df57600080fd5b610607600480803590602001909190803590602001909190803590602001909190505061121e565b6040518082815260200191505060405180910390f35b600080600080600060018781548110151561063457fe5b906000526020600020906007020160005b50935083600601846005015481548110151561065d57fe5b906000526020600020906006020160005b5092508260040191508260030160009054906101000a900460ff1615156106985760009450610861565b83600301543410156106ad5760009450610861565b81805490509050600182818180549050019150816106cb91906118f9565b508082828154811015156106db57fe5b906000526020600020906005020160005b50600001819055508260000154828281548110151561070757fe5b906000526020600020906005020160005b506004018190555085828281548110151561072f57fe5b906000526020600020906005020160005b5060030160006101000a81548160ff021916908360ff16021790555033828281548110151561076b57fe5b906000526020600020906005020160005b5060010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503482828154811015156107cd57fe5b906000526020600020906005020160005b50600201819055503373ffffffffffffffffffffffffffffffffffffffff16836000015485600001547ffdd8ed02332acacb3420e7345a9adadb30877075eade2bcde9fe778e8bb71e42846040518082815260200191505060405180910390a483600201548280549050141561085c5761085b8460000154611293565b5b600194505b5050505092915050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811180156108d657503073ffffffffffffffffffffffffffffffffffffffff163181105b156108e3578091506108e8565b600091505b5090565b6000806000806000600193506000925060009150600160200360ff1690505b600081101515610b315760307f010000000000000000000000000000000000000000000000000000000000000002868260208110151561094757fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015610a0f575060397f01000000000000000000000000000000000000000000000000000000000000000286826020811015156109c757fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b15610a9f578115610a365760008460ff161415610a2b57610b31565b8380600190039450505b5b600a8302925060308682602081101515610a4c57fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027f010000000000000000000000000000000000000000000000000000000000000090040383019250829450610b35565b602e7f0100000000000000000000000000000000000000000000000000000000000000028682602081101515610ad157fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610b2157600191505b5b5b80806001900391505061090b565b8294505b50505050919050565b600080610b4961086b565b90506000811115610be1576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501515610bd957600080fd5b809150610be6565b600091505b5090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610c79576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b5b565b6000600183815481101515610c8d57fe5b906000526020600020906007020160005b5060060182815481101515610caf57fe5b906000526020600020906006020160005b5060030160009054906101000a900460ff1690505b92915050565b6000600183815481101515610cec57fe5b906000526020600020906007020160005b5060060182815481101515610d0e57fe5b906000526020600020906006020160005b506001015490505b92915050565b6000600182815481101515610d3e57fe5b906000526020600020906007020160005b506003015490505b919050565b6000600183815481101515610d6d57fe5b906000526020600020906007020160005b5060060182815481101515610d8f57fe5b906000526020600020906006020160005b506004018054905090505b92915050565b6000600184815481101515610dc257fe5b906000526020600020906007020160005b5060060183815481101515610de457fe5b906000526020600020906006020160005b5060040182815481101515610e0657fe5b906000526020600020906005020160005b5060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b9392505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610fbd57600180549050905060018081818054905001915081610ebc919061192b565b5080600182815481101515610ecd57fe5b906000526020600020906007020160005b506000018190555084600182815481101515610ef657fe5b906000526020600020906007020160005b506001018190555083600182815481101515610f1f57fe5b906000526020600020906007020160005b506002018190555082600182815481101515610f4857fe5b906000526020600020906007020160005b506003018190555081600182815481101515610f7157fe5b906000526020600020906007020160005b5060040181905550610f9381611426565b600182815481101515610fa257fe5b906000526020600020906007020160005b50600501819055505b5b5b949350505050565b610fce61195d565b6000600180549050604051805910610fe35750595b908082528060200260200182016040525b509150600090505b6001805490508110156110585760018181548110151561101857fe5b906000526020600020906007020160005b5060000154828281518110151561103c57fe5b90602001906020020181815250505b8080600101915050610ffc565b5b5090565b600060018381548110151561106e57fe5b906000526020600020906007020160005b506006018281548110151561109057fe5b906000526020600020906006020160005b5060030160019054906101000a900460ff1690505b92915050565b60006001828154811015156110cd57fe5b906000526020600020906007020160005b506005015490505b919050565b60006001848154811015156110fc57fe5b906000526020600020906007020160005b506006018381548110151561111e57fe5b906000526020600020906006020160005b506004018281548110151561114057fe5b906000526020600020906005020160005b5060030160009054906101000a900460ff1660ff1690505b9392505050565b600060018281548110151561118157fe5b906000526020600020906007020160005b506002015490505b919050565b60006001828154811015156111b057fe5b906000526020600020906007020160005b506001015490505b919050565b60006001828154811015156111df57fe5b906000526020600020906007020160005b506004015490505b919050565b60008060ff83111561120e5760ff92505b8243039050804091505b50919050565b600060018481548110151561122f57fe5b906000526020600020906007020160005b506006018381548110151561125157fe5b906000526020600020906006020160005b506004018281548110151561127357fe5b906000526020600020906005020160005b506002015490505b9392505050565b6000806001838154811015156112a557fe5b906000526020600020906007020160005b5091508160060182600501548154811015156112ce57fe5b906000526020600020906006020160005b50905060008160030160006101000a81548160ff02191690831515021790555061130c82600101546111fd565b81600201816000191690555061134b82600601836005015481548110151561133057fe5b906000526020600020906006020160005b50600201546108ec565b8160030160016101000a81548160ff021916908360ff16021790555081600601826005015481548110151561137c57fe5b906000526020600020906006020160005b5060030160019054906101000a900460ff1660ff1682600101819055506113b383611530565b806000015482600001547f3cf46fee4a08f281c4350a9bbb4aaeadb7c80ff5ef61a56ffb43b79d212ae41f8360030160019054906101000a900460ff16604051808260ff1660ff16815260200191505060405180910390a36114188260000154611426565b82600501819055505b505050565b60008060018381548110151561143857fe5b906000526020600020906007020160005b50905060018381548110151561145b57fe5b906000526020600020906007020160005b50600601805490509150600181600601818180549050019150816114909190611971565b508181600601838154811015156114a357fe5b906000526020600020906006020160005b5060000181905550600181600601838154811015156114cf57fe5b906000526020600020906006020160005b5060030160006101000a81548160ff02191690831515021790555081837fd3db0eb7a3ce838b416d5946a8e3a24a3d490b8d70895551df735f49a61d7f4160405160405180910390a35b50919050565b600080600080600080600060018881548110151561154a57fe5b906000526020600020906007020160005b50965086600601876005015481548110151561157357fe5b906000526020600020906006020160005b509550856004019450856005019350600092505b84805490508310156116bd578560030160019054906101000a900460ff1660ff1685848154811015156115c757fe5b906000526020600020906005020160005b5060030160009054906101000a900460ff1660ff1614156116af57838054905091506001848181805490500191508161161191906119a3565b50848381548110151561162057fe5b906000526020600020906005020160005b5060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848381548110151561166457fe5b906000526020600020900160005b6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b8280600101935050611598565b600084805490501115611890576116dc8760040154858054905061189b565b9050600092505b838054905083101561188f5761177260026000868681548110151561170457fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826118cf565b60026000868681548110151561178457fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555083838154811015156117fd57fe5b906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16876005015488600001547f0f12d8f8fd831e0019cea15f4d3d3d6fbb9929f044d3ff3c528fac91dce47d48846040518082815260200191505060405180910390a45b82806001019350506116e3565b5b5b5050505050505050565b600081838115156118a857fe5b0490506118c582848115156118b957fe5b068284020184146118e9565b8090505b92915050565b60006118e28383850192508210156118e9565b5b92915050565b8015156118f557600080fd5b5b50565b8154818355818115116119265760050281600502836000526020600020918201910161192591906119cf565b5b505050565b815481835581811511611958576007028160070283600052602060002091820191016119579190611a41565b5b505050565b602060405190810160405280600081525090565b81548183558181151161199e5760060281600602836000526020600020918201910161199d9190611aa0565b5b505050565b8154818355818115116119ca578183600052602060002091820191016119c99190611b1f565b5b505050565b611a3e91905b80821115611a3a576000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600090556003820160006101000a81549060ff02191690556004820160009055506005016119d5565b5090565b90565b611a9d91905b80821115611a995760008082016000905560018201600090556002820160009055600382016000905560048201600090556005820160009055600682016000611a909190611b44565b50600701611a47565b5090565b90565b611b1c91905b80821115611b1857600080820160009055600182016000905560028201600090556003820160006101000a81549060ff02191690556003820160016101000a81549060ff0219169055600482016000611aff9190611b69565b600582016000611b0f9190611b8e565b50600601611aa6565b5090565b90565b611b4191905b80821115611b3d576000816000905550600101611b25565b5090565b90565b5080546000825560060290600052602060002090810190611b659190611aa0565b5b50565b5080546000825560050290600052602060002090810190611b8a91906119cf565b5b50565b5080546000825590600052602060002090810190611bac9190611b1f565b5b505600a165627a7a723058208cc936c87a196406db181058686ff8d130a592415cd05d05402894c5f15441810029

Swarm Source

bzzr://8cc936c87a196406db181058686ff8d130a592415cd05d05402894c5f1544181

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.