Contract 0xEf02C45C5913629Dd12e7a9446455049775EEC32

 

Contract Overview

Balance:
0.1 Ether

EtherValue:
$14.92 (@ $149.20/ETH)
TxHash Block Age From To Value [TxFee]
0x4c2f2dcea74a0766bee02ac9a3d776cf2b62c4e2aa4a56c4dad1a3fd91bb02d872444202 days 1 hr ago0x9f31c619adab0f9cd6f9b69e8343fc1ee0115d56 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0xbc2ab2ca1937d831a023dfee5f6b968283b0a705e583407face3885e3e2498a372444202 days 1 hr ago0x9f31c619adab0f9cd6f9b69e8343fc1ee0115d56 IN  0xef02c45c5913629dd12e7a9446455049775eec320.1 Ether0.000255099
0x099b4aaf4eac703199cbdaf4abee9684e2ea417ea46749bbe1a9d50461b80913717559517 days 14 hrs ago0x3052e2dbf3c84cf0b9693ebe6a7ef1b11b93cd42 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000258936
0x3673a8d6fe67007b4efd81d889397d47e03ea41ff4a9d3e6401a89088196846c712130328 days 13 hrs ago0x96e327263568b76d42cf826e8757292f0d696bc6 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000258936
0x482b53951bc8417e89bdf38c53c4c73c03915e1168069947de1bbbdc4a266fff710340132 days 2 hrs ago0x9f31c619adab0f9cd6f9b69e8343fc1ee0115d56 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000258936
0x230c1c02b8e1a4d63ad19a4df374713b572ee2013e2cbe536c88ec2bb6e8c194710206632 days 9 hrs ago0xeafe863757a2b2a2c5c3f71988b7d59329d09a78 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259134
0xc8db172e577a5dcb761ac19205d751303addfc423a65952c14f26966c2f89351709658133 days 8 hrs ago0x2021cd46faf8bf191c030bede847ed8015c107e8 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000258936
0x04fe6cd14c2f3f94cd35170a85c8b89a082376721e999a2103750fcdb0f7e74e709657233 days 8 hrs ago0x2021cd46faf8bf191c030bede847ed8015c107e8 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000258936
0x402d7627dd1ba2c5b5284e4a6aff51c982fe2d758b9597c5d44b5e2ca2ab2804705694340 days 10 hrs ago0x96e327263568b76d42cf826e8757292f0d696bc6 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000258936
0xe6551a2ac432dcace25f742dffe8536e25f1f27e630e6f38f20273784c714754703412844 days 12 hrs ago0xc2b1b510aa64865ff7ca1d1fe41162fbb49ca058 IN  0xef02c45c5913629dd12e7a9446455049775eec320 Ether0.0001564
0xf4aa6e1a6aacefeca3ae18a60f76d8e66980a48d295e6d5a4c4a2cf760234569703409944 days 12 hrs ago0xc2b1b510aa64865ff7ca1d1fe41162fbb49ca058 IN  0xef02c45c5913629dd12e7a9446455049775eec320 Ether0.000092874
0xc6445e6bc9917fcc03fee332f0dfce72444c58fbda8c0493b26b0726f756d27e703389944 days 13 hrs ago0xe72c6a66e83d642e0b1df3032a556d117cf09a2f IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000172672
0xd88517e76f926dedb68a6df794a89e03c68bd460ac51128e6c1559eef0323f37702340646 days 10 hrs ago0xd267da2747944737e5973943f0ca931e0efac087 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0xfbda299eaf0d5c2b6c21284dc1a1c919bff344fe37fdcb38d1429cb62d718f0e702316946 days 11 hrs ago0xd267da2747944737e5973943f0ca931e0efac087 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0000949696
0x04574b354e91ee8f74eee3e9f2c49c07ee7f1b480f98edfe7bb4152e0fc3dc74698961252 days 9 hrs ago0x7047f30b5691a95d596d0cceb1609bfb9f002071 IN  0xef02c45c5913629dd12e7a9446455049775eec320.1 Ether0.000896067788
0xd5518481ba4f445a40731610cb88fc324f373f24c023b4a54ec9e3071d34b82f698026053 days 23 hrs ago0x7047f30b5691a95d596d0cceb1609bfb9f002071 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.001063025433
0xd92a3c905596179730cb03b651c561fa8f4ea6a76f5d6cc04607a22553fbf1d4698025253 days 23 hrs ago0x7047f30b5691a95d596d0cceb1609bfb9f002071 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000345344
0x045cda21ae1c7b148f089479953f8931e25330c2204a2f86b8482f6e0f205458691215465 days 12 hrs ago0x2313aa1cb587ed704bf7bb834e7f89a344aca176 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0xda11a6e55564a173ff2c6a5b2ca5be48830b633c409fd31a55847f9345617cea691214865 days 12 hrs ago0x2313aa1cb587ed704bf7bb834e7f89a344aca176 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0x7f3cd56f62ae8f669e60bd31b18f8b688d00f5994381f4f304c09b9bd1e3cc52681253782 days 36 mins ago0x0760ebb4b929e19a4700827220f28daa06cbe614 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0x7431597174206d403c0807e736186bb3d68d3f395b25376f5d333709358cf0b16656155107 days 16 hrs ago0xdbd62b8115f0c4065ce4eeb77d9296cb7bfc3913 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259206
0xa5b7a6071e7e0618f135aa06a49baaa2946c18ff5f0a255f7447ec3a2fa1d4ed6591995118 days 5 hrs ago0xa41f28a7462a34187c1f58bf0401430d4d2be778 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0x17e0a22cf35c7784da641dda7ed0e0f5d5897ed55771ee9588dc9b2ce0e281346591982118 days 5 hrs ago0xa41f28a7462a34187c1f58bf0401430d4d2be778 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0xd094711ff4fc5612fd9bff443ba0fa029f6220fc072673113ec2428f24df61e56527039128 days 20 hrs ago0x978fe0cc6923af50b83f9a850206121160867419 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0x28295bac9a560601043424246b4e5def192ed931372b2e22e4ccac18f07018f56519894130 days 4 mins ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582 IN  0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0003712448
[ Download CSV Export 

Latest 25 Internal Transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x4c2f2dcea74a0766bee02ac9a3d776cf2b62c4e2aa4a56c4dad1a3fd91bb02d872444202 days 1 hr ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0x4c2f2dcea74a0766bee02ac9a3d776cf2b62c4e2aa4a56c4dad1a3fd91bb02d872444202 days 1 hr ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x4c2f2dcea74a0766bee02ac9a3d776cf2b62c4e2aa4a56c4dad1a3fd91bb02d872444202 days 1 hr ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x099b4aaf4eac703199cbdaf4abee9684e2ea417ea46749bbe1a9d50461b80913717559517 days 14 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x099b4aaf4eac703199cbdaf4abee9684e2ea417ea46749bbe1a9d50461b80913717559517 days 14 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x3673a8d6fe67007b4efd81d889397d47e03ea41ff4a9d3e6401a89088196846c712130328 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x3673a8d6fe67007b4efd81d889397d47e03ea41ff4a9d3e6401a89088196846c712130328 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x482b53951bc8417e89bdf38c53c4c73c03915e1168069947de1bbbdc4a266fff710340132 days 2 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x482b53951bc8417e89bdf38c53c4c73c03915e1168069947de1bbbdc4a266fff710340132 days 2 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x230c1c02b8e1a4d63ad19a4df374713b572ee2013e2cbe536c88ec2bb6e8c194710206632 days 9 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x230c1c02b8e1a4d63ad19a4df374713b572ee2013e2cbe536c88ec2bb6e8c194710206632 days 9 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xc8db172e577a5dcb761ac19205d751303addfc423a65952c14f26966c2f89351709658133 days 8 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xc8db172e577a5dcb761ac19205d751303addfc423a65952c14f26966c2f89351709658133 days 8 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x04fe6cd14c2f3f94cd35170a85c8b89a082376721e999a2103750fcdb0f7e74e709657233 days 8 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x04fe6cd14c2f3f94cd35170a85c8b89a082376721e999a2103750fcdb0f7e74e709657233 days 8 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x402d7627dd1ba2c5b5284e4a6aff51c982fe2d758b9597c5d44b5e2ca2ab2804705694340 days 10 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x402d7627dd1ba2c5b5284e4a6aff51c982fe2d758b9597c5d44b5e2ca2ab2804705694340 days 10 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xe6551a2ac432dcace25f742dffe8536e25f1f27e630e6f38f20273784c714754703412844 days 12 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.11 Ether
0xf4aa6e1a6aacefeca3ae18a60f76d8e66980a48d295e6d5a4c4a2cf760234569703409944 days 12 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.01 Ether
0xc6445e6bc9917fcc03fee332f0dfce72444c58fbda8c0493b26b0726f756d27e703389944 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0xc6445e6bc9917fcc03fee332f0dfce72444c58fbda8c0493b26b0726f756d27e703389944 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xc6445e6bc9917fcc03fee332f0dfce72444c58fbda8c0493b26b0726f756d27e703389944 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xe5af216070f460652b7af935e72f6858af161de9dc01618f2fd91a6f4808cb58703192444 days 22 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd2418e1baf9d5983e833898a86cdebe13515ae1d0.118 Ether
0xe5af216070f460652b7af935e72f6858af161de9dc01618f2fd91a6f4808cb58703192444 days 22 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd2418e1baf9d5983e833898a86cdebe13515ae1d0.118 Ether
0xe5af216070f460652b7af935e72f6858af161de9dc01618f2fd91a6f4808cb58703192444 days 22 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd2418e1baf9d5983e833898a86cdebe13515ae1d0.118 Ether
[ Download CSV Export 
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: RuletkaIo
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimizer):  200


Contract Source Code
pragma solidity ^0.4.8;

contract RuletkaIo {
    
    /*** EVENTS ***/
    
    /// @dev A russian Roulette has been executed between 6 players
    /// in room roomId and unfortunately, victim got shot and didn't 
    /// make it out alive... RIP
    event partyOver(uint256 roomId, address victim, address[] winners);

    /// @dev A new player has enter a room
    event newPlayer(uint256 roomId, address player);
    
    /// @dev A room is full, we close the door. Game can start.
    event fullRoom(uint256 roomId);
    
    /// @dev A safety mechanism has been triggered to empty the room and refund entirely the players (Should never happen)
    event  roomRefunded(uint256 _roomId, address[] refundedPlayers);

    /*** Founders addresses ***/
    address CTO;
    address CEO;
    
     Room[] private allRooms;

    function () public payable {} // Give the ability of receiving ether

    function RuletkaIo() public {
        CTO = msg.sender;
        CEO = msg.sender;
    }
    
    /*** ACCESS MODIFIERS ***/
    /// @dev Access modifier for CTO-only functionality
    modifier onlyCTO() {
        require(msg.sender == CTO);
        _;
    }
    
    /// @dev Assigns a new address to act as the CTO.
    /// @param _newCTO The address of the new CTO
    function setCTO(address _newCTO) public onlyCTO {
        require(_newCTO != address(0));
        CTO = _newCTO;
    }
    
    /// @dev Assigns a new address to act as the CEO.
    /// @param _newCEO The address of the new CEO
    function setCEO(address _newCEO) public onlyCTO {
        require(_newCEO != address(0));
        CEO = _newCEO;
    }
    
    /*** DATATYPES ***/
      struct Room {
        string name;
        uint256 entryPrice; //  The price to enter the room and play Russian Roulette
        uint256 balance;
        address[] players;
      }
    
    
    /// For creating Room
  function createRoom(string _name, uint256 _entryPrice) public onlyCTO{
    address[] memory players;
    Room memory _room = Room({
      name: _name,
      players: players,
      balance: 0,
      entryPrice: _entryPrice
    });

    allRooms.push(_room);
  }
    
    function enter(uint256 _roomId) public payable {
        Room storage room = allRooms[_roomId-1]; //if _roomId doesn't exist in array, exits.
        
        require(room.players.length < 6);
        require(msg.value >= room.entryPrice);
        
        room.players.push(msg.sender);
        room.balance += room.entryPrice;
        
        emit newPlayer(_roomId, msg.sender);
        
        if(room.players.length == 6){
            executeRoom(_roomId);
        }
    }
    
    function enterWithReferral(uint256 _roomId, address referrer) public payable {
        
        Room storage room = allRooms[_roomId-1]; //if _roomId doesn't exist in array, exits.
        
        require(room.players.length < 6);
        require(msg.value >= room.entryPrice);
        
        uint256 referrerCut = SafeMath.div(room.entryPrice, 100); // Referrer get one percent of the bet as reward
        referrer.transfer(referrerCut);
         
        room.players.push(msg.sender);
        room.balance += room.entryPrice - referrerCut;
        
        emit newPlayer(_roomId, msg.sender);
        
        if(room.players.length == 6){
            emit fullRoom(_roomId);
            executeRoom(_roomId);
        }
    }
    
    function executeRoom(uint256 _roomId) public {
        
        Room storage room = allRooms[_roomId-1]; //if _roomId doesn't exist in array, exits.
        
        //Check if the room is really full before shooting people...
        require(room.players.length == 6);
        
        uint256 halfFee = SafeMath.div(room.entryPrice, 20);
        CTO.transfer(halfFee);
        CEO.transfer(halfFee);
        room.balance -= halfFee * 2;
        
        uint256 deadSeat = random();
        
        distributeFunds(_roomId, deadSeat);
        
        delete room.players;
    }
    
    function distributeFunds(uint256 _roomId, uint256 _deadSeat) private returns(uint256) {
        
        Room storage room = allRooms[_roomId-1]; //if _roomId doesn't exist in array, exits.
        uint256 balanceToDistribute = SafeMath.div(room.balance,5);
        
        address victim = room.players[_deadSeat];
        address[] memory winners = new address[](5);
        uint256 j = 0; 
        for (uint i = 0; i<6; i++) {
            if(i != _deadSeat){
               room.players[i].transfer(balanceToDistribute);
               room.balance -= balanceToDistribute;
               winners[j] = room.players[i];
               j++;
            }
        }
        
        emit partyOver(_roomId, victim, winners);
       
        return address(this).balance;
    }
    
     /// @dev Empty the room and refund each player. Safety mechanism which shouldn't be used.
    /// @param _roomId The Room id to empty and refund
    function refundPlayersInRoom(uint256 _roomId) public onlyCTO{
        Room storage room = allRooms[_roomId-1]; //if _roomId doesn't exist in array, exits.
        uint256 nbrOfPlayers = room.players.length;
        uint256 balanceToRefund = SafeMath.div(room.balance,nbrOfPlayers);
        for (uint i = 0; i<nbrOfPlayers; i++) {
             room.players[i].transfer(balanceToRefund);
             room.balance -= balanceToRefund;
        }
        
        emit roomRefunded(_roomId, room.players);
        delete room.players;
    }
    
    
    /// @dev A clean and efficient way to generate random and make sure that it
    /// will remain the same accross the executing nodes of random value 
    /// Ethereum Blockchain. We base our computation on the block.timestamp
    /// and difficulty which will remain the same accross the nodes to ensure
    /// same result for the same execution.
    function random() private view returns (uint256) {
        return uint256(uint256(keccak256(block.timestamp, block.difficulty))%6);
    }
    
    function getRoom(uint256 _roomId) public view returns (
    string name,
    address[] players,
    uint256 entryPrice,
    uint256 balance
  ) {
    Room storage room = allRooms[_roomId-1];
    name = room.name;
    players = room.players;
    entryPrice = room.entryPrice;
    balance = room.balance;
  }
  
  function payout(address _to) public onlyCTO {
    _payout(_to);
  }

  /// For paying out balance on contract
  function _payout(address _to) private {
    if (_to == address(0)) {
      CTO.transfer(SafeMath.div(address(this).balance, 2));
      CEO.transfer(address(this).balance);
    } else {
      _to.transfer(address(this).balance);
    }
  }
  
}

library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }

  /**
  * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

Contract ABI
[{"constant":false,"inputs":[{"name":"_to","type":"address"}],"name":"payout","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCEO","type":"address"}],"name":"setCEO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_entryPrice","type":"uint256"}],"name":"createRoom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_roomId","type":"uint256"}],"name":"executeRoom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_roomId","type":"uint256"}],"name":"refundPlayersInRoom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_roomId","type":"uint256"}],"name":"getRoom","outputs":[{"name":"name","type":"string"},{"name":"players","type":"address[]"},{"name":"entryPrice","type":"uint256"},{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_roomId","type":"uint256"}],"name":"enter","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_roomId","type":"uint256"},{"name":"referrer","type":"address"}],"name":"enterWithReferral","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_newCTO","type":"address"}],"name":"setCTO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roomId","type":"uint256"},{"indexed":false,"name":"victim","type":"address"},{"indexed":false,"name":"winners","type":"address[]"}],"name":"partyOver","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roomId","type":"uint256"},{"indexed":false,"name":"player","type":"address"}],"name":"newPlayer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roomId","type":"uint256"}],"name":"fullRoom","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_roomId","type":"uint256"},{"indexed":false,"name":"refundedPlayers","type":"address[]"}],"name":"roomRefunded","type":"event"}]

Contract Creation Code
608060405234801561001057600080fd5b506000805433600160a060020a03199182168117835560018054909216179055610eba90819061004090396000f3006080604052600436106100985763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630b7e9c44811461009a57806327d7874c146100bb5780632db4f279146100dc57806334eea4a214610137578063383f61b31461014f5780636d8a74cb14610167578063a59f3e0c14610246578063b447968c14610251578063fe1439b414610268575b005b3480156100a657600080fd5b50610098600160a060020a0360043516610289565b3480156100c757600080fd5b50610098600160a060020a03600435166102ac565b3480156100e857600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009894369492936024939284019190819084018382808284375094975050933594506103079350505050565b34801561014357600080fd5b506100986004356103d3565b34801561015b57600080fd5b506100986004356104ce565b34801561017357600080fd5b5061017f600435610638565b604051808060200180602001858152602001848152602001838103835287818151815260200191508051906020019080838360005b838110156101cc5781810151838201526020016101b4565b50505050905090810190601f1680156101f95780820380516001836020036101000a031916815260200191505b508381038252865181528651602091820191808901910280838360005b8381101561022e578181015183820152602001610216565b50505050905001965050505050505060405180910390f35b610098600435610767565b610098600435600160a060020a0360243516610850565b34801561027457600080fd5b50610098600160a060020a03600435166109b7565b600054600160a060020a031633146102a057600080fd5b6102a981610a12565b50565b600054600160a060020a031633146102c357600080fd5b600160a060020a03811615156102d857600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6060610311610d14565b600054600160a060020a0316331461032857600080fd5b506040805160808101825284815260208082018590526000928201839052606082018490526002805460018101808355919094528251805193949193859360049093027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace019261039c928492910190610d3d565b50602082810151600183015560408301516002830155606083015180516103c99260038501920190610dbb565b5050505050505050565b60008060006002600185038154811015156103ea57fe5b906000526020600020906004020192508260030180549050600614151561041057600080fd5b61041f83600101546014610adc565b60008054604051929450600160a060020a03169184156108fc0291859190818181858888f1935050505015801561045a573d6000803e3d6000fd5b50600154604051600160a060020a039091169083156108fc029084906000818181858888f19350505050158015610495573d6000803e3d6000fd5b506002838101805491840290910390556104ad610af3565b90506104b98482610b13565b506104c8600384016000610e29565b50505050565b60008054819081908190600160a060020a031633146104ec57600080fd5b6002805460001987019081106104fe57fe5b9060005260206000209060040201935083600301805490509250610526846002015484610adc565b9150600090505b82811015610599576003840180548290811061054557fe5b6000918252602082200154604051600160a060020a039091169184156108fc02918591818181858888f19350505050158015610585573d6000803e3d6000fd5b50600284018054839003905560010161052d565b7f50efa210f6180405ca5e1d72485e5507365bcf61a84fe8067df9e0a01b83368585856003016040518083815260200180602001828103825283818154815260200191508054801561061457602002820191906000526020600020905b8154600160a060020a031681526001909101906020018083116105f6575b5050935050505060405180910390a1610631600385016000610e29565b5050505050565b606080600080600060026001870381548110151561065257fe5b60009182526020918290206004919091020180546040805160026001841615610100026000190190931692909204601f8101859004850283018501909152808252919350918391908301828280156106eb5780601f106106c0576101008083540402835291602001916106eb565b820191906000526020600020905b8154815290600101906020018083116106ce57829003601f168201915b505050505094508060030180548060200260200160405190810160405280929190818152602001828054801561074a57602002820191906000526020600020905b8154600160a060020a0316815260019091019060200180831161072c575b505050505093508060010154925080600201549150509193509193565b600060026001830381548110151561077b57fe5b90600052602060002090600402019050600681600301805490501015156107a157600080fd5b60018101543410156107b257600080fd5b600381018054600181810183556000928352602092839020909101805473ffffffffffffffffffffffffffffffffffffffff191633908117909155908301546002840180549091019055604080518581529283019190915280517f24db4f65d53d68dc208151fc0a00d767da628055a922836a07edef3b5732f9a29281900390910190a160038101546006141561084c5761084c826103d3565b5050565b60008060026001850381548110151561086557fe5b906000526020600020906004020191506006826003018054905010151561088b57600080fd5b600182015434101561089c57600080fd5b6108ab82600101546064610adc565b604051909150600160a060020a0384169082156108fc029083906000818181858888f193505050501580156108e4573d6000803e3d6000fd5b50600382018054600181810183556000928352602092839020909101805473ffffffffffffffffffffffffffffffffffffffff1916339081179091559084015460028501805491859003919091019055604080518781529283019190915280517f24db4f65d53d68dc208151fc0a00d767da628055a922836a07edef3b5732f9a29281900390910190a16003820154600614156104c8576040805185815290517f7a348120796739428f24dfcec22a2501d8e4b2fb4f269bac39a9e8a72f32e5b79181900360200190a16104c8846103d3565b600054600160a060020a031633146109ce57600080fd5b600160a060020a03811615156109e357600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a0381161515610aa657600054600160a060020a03166108fc610a3d30316002610adc565b6040518115909202916000818181858888f19350505050158015610a65573d6000803e3d6000fd5b50600154604051600160a060020a0390911690303180156108fc02916000818181858888f19350505050158015610aa0573d6000803e3d6000fd5b506102a9565b604051600160a060020a03821690303180156108fc02916000818181858888f1935050505015801561084c573d6000803e3d6000fd5b6000808284811515610aea57fe5b04949350505050565b604080514281524460208201528151908190039091019020600690065b90565b6000806000806060600080600260018a03815481101515610b3057fe5b90600052602060002090600402019550610b4f86600201546005610adc565b94508560030188815481101515610b6257fe5b60009182526020909120015460408051600580825260c08201909252600160a060020a03909216955081602001602082028038833901905050925060009150600090505b6006811015610c6e57808814610c665760038601805482908110610bc657fe5b6000918252602082200154604051600160a060020a039091169187156108fc02918891818181858888f19350505050158015610c06573d6000803e3d6000fd5b50600286018054869003905560038601805482908110610c2257fe5b6000918252602090912001548351600160a060020a0390911690849084908110610c4857fe5b600160a060020a039092166020928302909101909101526001909101905b600101610ba6565b7f84ece71ff3209d85efdc289e3c5ba680921f15a77372267582bae9969557096e8985856040518084815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019060200280838360005b83811015610cf0578181015183820152602001610cd8565b5050505090500194505050505060405180910390a150503031979650505050505050565b608060405190810160405280606081526020016000815260200160008152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610d7e57805160ff1916838001178555610dab565b82800160010185558215610dab579182015b82811115610dab578251825591602001919060010190610d90565b50610db7929150610e43565b5090565b828054828255906000526020600020908101928215610e1d579160200282015b82811115610e1d578251825473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909116178255602090920191600190910190610ddb565b50610db7929150610e5d565b50805460008255906000526020600020908101906102a991905b610b1091905b80821115610db75760008155600101610e49565b610b1091905b80821115610db757805473ffffffffffffffffffffffffffffffffffffffff19168155600101610e635600a165627a7a723058207aa7db68274ad83d2d451eb43a97910e83616afc377062ced3b7fbd575c82a720029


   Swarm Source:
bzzr://7aa7db68274ad83d2d451eb43a97910e83616afc377062ced3b7fbd575c82a72
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.