Contract Overview
Balance: 0.11 Ether
Ether Value: $19.47 (@ $177.04/ETH)
Transactions: 648 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xc2b1b510aa64865ff7ca1d1fe41162fbb49ca058at txn 0x6a05a4af85652d98edb7a2c37b0b3bcc322bc9ffbcc455f0cc8466825f5e5b0d
 Latest 25 transactions from a total of 648 transactions

TxHash Age From To Value [TxFee]
0x7431597174206d403c0807e736186bb3d68d3f395b25376f5d333709358cf0b111 days 10 hrs ago0xdbd62b8115f0c4065ce4eeb77d9296cb7bfc3913  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259206
0xa5b7a6071e7e0618f135aa06a49baaa2946c18ff5f0a255f7447ec3a2fa1d4ed21 days 22 hrs ago0xa41f28a7462a34187c1f58bf0401430d4d2be778  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0x17e0a22cf35c7784da641dda7ed0e0f5d5897ed55771ee9588dc9b2ce0e2813421 days 22 hrs ago0xa41f28a7462a34187c1f58bf0401430d4d2be778  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0xd094711ff4fc5612fd9bff443ba0fa029f6220fc072673113ec2428f24df61e532 days 13 hrs ago0x978fe0cc6923af50b83f9a850206121160867419  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0x28295bac9a560601043424246b4e5def192ed931372b2e22e4ccac18f07018f533 days 17 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0003712448
0xc3c0c24e76e05f9d5ef38ee864935cdddd3503d7bf4bc9558f231c263e29db6c34 days 13 hrs ago0x7f13568424a6ac702fefe1df6908405ca10cf093  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0xb422bfa328b677f7a343a92efd12da694bfe4812d6a299d38ccd5a938244de6640 days 6 hrs ago0x26e850e94b0b7b672544a5b60ac3463957a817ba  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0002678462
0x7a35ef88c3c4b6c9820c142520de5adbebf0474e4e4332dff055e7e53a653b6346 days 9 mins ago0x7f13568424a6ac702fefe1df6908405ca10cf093  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0x69f71d9226c9fa0f68749765f9f2a2f4368870675dabc65b37bbc8d0b06f072446 days 1 hr ago0x7f13568424a6ac702fefe1df6908405ca10cf093  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000259008
0x98a732ec5cb422e36beb65056cd2cbac56054e1a2fc4563f16940f364310d7d046 days 18 hrs ago0x7f13568424a6ac702fefe1df6908405ca10cf093  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.00086336
0xf95397fb991ceaf004a173fe40809ff780fc17eed569734288d346b182aa66ba49 days 23 hrs ago0xd839f75fdf7a6db762a1c46f7a33305f850bab22  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.00230347732
0x8cffdd048b248fadf7d352d5002328f33ae8ae8bd801ffb40d33104bfdfc6ae752 days 17 hrs ago0xa4ad045d62a493f0ed883b413866448afb13087c  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000604814
0x0e55b1ceec21b062c88d6ae936a899bfabc0ad88bcf8b9151d80a94699c8f1ad54 days 5 hrs ago0x5bd938b3a760ec3d4844b94a276b204026074dbe  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0008416
0xabb6b1814caec034bbe55a1fe9f09867f63d396ec19f959a446f6cac0db4ae4257 days 6 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.00049508346
0xbc09273c3655a2568dd68ae729b739f507307d97ffa5bbd0e011c6f6777134b559 days 16 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000630511808
0xe7ce88b853a72f98c08e4c1e2b9ae6d58cee3ea9f8ce692053862d9517aa3f0260 days 13 hrs ago0xb31fc4cfbf3787101f009b58085f4dffe3d2a077  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.00043168
0xe8ffe6fa79092035564f3523bee85130e43d06abee9d64789ab81c9556e0ec4160 days 15 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000570016172
0xad9c71e9f2b1481491f94e64d94a4f7b4895cb6d52c502f2a42e867acdcbcb4562 days 17 hrs ago0xddf543429e415a262e7617d76196621cb8375d20  IN   0xef02c45c5913629dd12e7a9446455049775eec320.05 Ether0.00007364
0x30b82b1aec49133b9959696c567e5d11b42366084479d6e540f62dda0dbd092d63 days 9 hrs ago0xadb5863ea8db92ac30f41e23af7c85d74dd505e2  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000255099
0xd491f2ea669e11bcc4b8855159eb9874daf37311abf62a120477e51d6302deb867 days 17 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0003656419
0x921aba712f2fb084cf54b765d3ff1ce66408ea1192ac2f63d1e65051c988208369 days 4 hrs ago0x2640ca57d98ac793d1ae27b0e4f8546742d44c2e  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0002916749
0x1c010d2874712c883776fdeaf3e4ce5d5d111b7a23ac36810f7cf3c63ecf1c4569 days 14 hrs ago0xb31fc4cfbf3787101f009b58085f4dffe3d2a077  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0002091254
0xd43493d8068fe8d4b03a746ae8c43ff26aa70cc9bc30f152e0da06b6a30f349470 days 2 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0003656419
0x1a81df3982356bcab51fecf33963cf76ff2a527207d73279cd24260d6443721e71 days 17 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0001816089
0x0af5b05b7e247bce85be25b387afc6b9deee205638f4fd2d6a58369d0a06a55072 days 4 hrs ago0xbb02904fb51b462d8e72a1532279dbb4ae53a365  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0004017409
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0x7431597174206d403c0807e736186bb3d68d3f395b25376f5d333709358cf0b1665615511 days 10 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0x7431597174206d403c0807e736186bb3d68d3f395b25376f5d333709358cf0b1665615511 days 10 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x7431597174206d403c0807e736186bb3d68d3f395b25376f5d333709358cf0b1665615511 days 10 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xa5b7a6071e7e0618f135aa06a49baaa2946c18ff5f0a255f7447ec3a2fa1d4ed659199521 days 22 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0xa5b7a6071e7e0618f135aa06a49baaa2946c18ff5f0a255f7447ec3a2fa1d4ed659199521 days 22 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xa5b7a6071e7e0618f135aa06a49baaa2946c18ff5f0a255f7447ec3a2fa1d4ed659199521 days 22 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x17e0a22cf35c7784da641dda7ed0e0f5d5897ed55771ee9588dc9b2ce0e28134659198221 days 22 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0x17e0a22cf35c7784da641dda7ed0e0f5d5897ed55771ee9588dc9b2ce0e28134659198221 days 22 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x17e0a22cf35c7784da641dda7ed0e0f5d5897ed55771ee9588dc9b2ce0e28134659198221 days 22 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xd094711ff4fc5612fd9bff443ba0fa029f6220fc072673113ec2428f24df61e5652703932 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0xd094711ff4fc5612fd9bff443ba0fa029f6220fc072673113ec2428f24df61e5652703932 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xd094711ff4fc5612fd9bff443ba0fa029f6220fc072673113ec2428f24df61e5652703932 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x28295bac9a560601043424246b4e5def192ed931372b2e22e4ccac18f07018f5651989433 days 17 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0x28295bac9a560601043424246b4e5def192ed931372b2e22e4ccac18f07018f5651989433 days 17 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x28295bac9a560601043424246b4e5def192ed931372b2e22e4ccac18f07018f5651989433 days 17 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xc3c0c24e76e05f9d5ef38ee864935cdddd3503d7bf4bc9558f231c263e29db6c651484834 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0xc3c0c24e76e05f9d5ef38ee864935cdddd3503d7bf4bc9558f231c263e29db6c651484834 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xc3c0c24e76e05f9d5ef38ee864935cdddd3503d7bf4bc9558f231c263e29db6c651484834 days 13 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xb422bfa328b677f7a343a92efd12da694bfe4812d6a299d38ccd5a938244de66647961640 days 6 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0xb422bfa328b677f7a343a92efd12da694bfe4812d6a299d38ccd5a938244de66647961640 days 6 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xb422bfa328b677f7a343a92efd12da694bfe4812d6a299d38ccd5a938244de66647961640 days 6 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x7a35ef88c3c4b6c9820c142520de5adbebf0474e4e4332dff055e7e53a653b63644420946 days 9 mins ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0x7a35ef88c3c4b6c9820c142520de5adbebf0474e4e4332dff055e7e53a653b63644420946 days 9 mins ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0x7a35ef88c3c4b6c9820c142520de5adbebf0474e4e4332dff055e7e53a653b63644420946 days 9 mins ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x69f71d9226c9fa0f68749765f9f2a2f4368870675dabc65b37bbc8d0b06f0724644395646 days 1 hr ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

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



  Contract Source Code   Find Similiar Contracts

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 Switch To Opcodes View
608060405234801561001057600080fd5b506000805433600160a060020a03199182168117835560018054909216179055610eba90819061004090396000f3006080604052600436106100985763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630b7e9c44811461009a57806327d7874c146100bb5780632db4f279146100dc57806334eea4a214610137578063383f61b31461014f5780636d8a74cb14610167578063a59f3e0c14610246578063b447968c14610251578063fe1439b414610268575b005b3480156100a657600080fd5b50610098600160a060020a0360043516610289565b3480156100c757600080fd5b50610098600160a060020a03600435166102ac565b3480156100e857600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009894369492936024939284019190819084018382808284375094975050933594506103079350505050565b34801561014357600080fd5b506100986004356103d3565b34801561015b57600080fd5b506100986004356104ce565b34801561017357600080fd5b5061017f600435610638565b604051808060200180602001858152602001848152602001838103835287818151815260200191508051906020019080838360005b838110156101cc5781810151838201526020016101b4565b50505050905090810190601f1680156101f95780820380516001836020036101000a031916815260200191505b508381038252865181528651602091820191808901910280838360005b8381101561022e578181015183820152602001610216565b50505050905001965050505050505060405180910390f35b610098600435610767565b610098600435600160a060020a0360243516610850565b34801561027457600080fd5b50610098600160a060020a03600435166109b7565b600054600160a060020a031633146102a057600080fd5b6102a981610a12565b50565b600054600160a060020a031633146102c357600080fd5b600160a060020a03811615156102d857600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6060610311610d14565b600054600160a060020a0316331461032857600080fd5b506040805160808101825284815260208082018590526000928201839052606082018490526002805460018101808355919094528251805193949193859360049093027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace019261039c928492910190610d3d565b50602082810151600183015560408301516002830155606083015180516103c99260038501920190610dbb565b5050505050505050565b60008060006002600185038154811015156103ea57fe5b906000526020600020906004020192508260030180549050600614151561041057600080fd5b61041f83600101546014610adc565b60008054604051929450600160a060020a03169184156108fc0291859190818181858888f1935050505015801561045a573d6000803e3d6000fd5b50600154604051600160a060020a039091169083156108fc029084906000818181858888f19350505050158015610495573d6000803e3d6000fd5b506002838101805491840290910390556104ad610af3565b90506104b98482610b13565b506104c8600384016000610e29565b50505050565b60008054819081908190600160a060020a031633146104ec57600080fd5b6002805460001987019081106104fe57fe5b9060005260206000209060040201935083600301805490509250610526846002015484610adc565b9150600090505b82811015610599576003840180548290811061054557fe5b6000918252602082200154604051600160a060020a039091169184156108fc02918591818181858888f19350505050158015610585573d6000803e3d6000fd5b50600284018054839003905560010161052d565b7f50efa210f6180405ca5e1d72485e5507365bcf61a84fe8067df9e0a01b83368585856003016040518083815260200180602001828103825283818154815260200191508054801561061457602002820191906000526020600020905b8154600160a060020a031681526001909101906020018083116105f6575b5050935050505060405180910390a1610631600385016000610e29565b5050505050565b606080600080600060026001870381548110151561065257fe5b60009182526020918290206004919091020180546040805160026001841615610100026000190190931692909204601f8101859004850283018501909152808252919350918391908301828280156106eb5780601f106106c0576101008083540402835291602001916106eb565b820191906000526020600020905b8154815290600101906020018083116106ce57829003601f168201915b505050505094508060030180548060200260200160405190810160405280929190818152602001828054801561074a57602002820191906000526020600020905b8154600160a060020a0316815260019091019060200180831161072c575b505050505093508060010154925080600201549150509193509193565b600060026001830381548110151561077b57fe5b90600052602060002090600402019050600681600301805490501015156107a157600080fd5b60018101543410156107b257600080fd5b600381018054600181810183556000928352602092839020909101805473ffffffffffffffffffffffffffffffffffffffff191633908117909155908301546002840180549091019055604080518581529283019190915280517f24db4f65d53d68dc208151fc0a00d767da628055a922836a07edef3b5732f9a29281900390910190a160038101546006141561084c5761084c826103d3565b5050565b60008060026001850381548110151561086557fe5b906000526020600020906004020191506006826003018054905010151561088b57600080fd5b600182015434101561089c57600080fd5b6108ab82600101546064610adc565b604051909150600160a060020a0384169082156108fc029083906000818181858888f193505050501580156108e4573d6000803e3d6000fd5b50600382018054600181810183556000928352602092839020909101805473ffffffffffffffffffffffffffffffffffffffff1916339081179091559084015460028501805491859003919091019055604080518781529283019190915280517f24db4f65d53d68dc208151fc0a00d767da628055a922836a07edef3b5732f9a29281900390910190a16003820154600614156104c8576040805185815290517f7a348120796739428f24dfcec22a2501d8e4b2fb4f269bac39a9e8a72f32e5b79181900360200190a16104c8846103d3565b600054600160a060020a031633146109ce57600080fd5b600160a060020a03811615156109e357600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a0381161515610aa657600054600160a060020a03166108fc610a3d30316002610adc565b6040518115909202916000818181858888f19350505050158015610a65573d6000803e3d6000fd5b50600154604051600160a060020a0390911690303180156108fc02916000818181858888f19350505050158015610aa0573d6000803e3d6000fd5b506102a9565b604051600160a060020a03821690303180156108fc02916000818181858888f1935050505015801561084c573d6000803e3d6000fd5b6000808284811515610aea57fe5b04949350505050565b604080514281524460208201528151908190039091019020600690065b90565b6000806000806060600080600260018a03815481101515610b3057fe5b90600052602060002090600402019550610b4f86600201546005610adc565b94508560030188815481101515610b6257fe5b60009182526020909120015460408051600580825260c08201909252600160a060020a03909216955081602001602082028038833901905050925060009150600090505b6006811015610c6e57808814610c665760038601805482908110610bc657fe5b6000918252602082200154604051600160a060020a039091169187156108fc02918891818181858888f19350505050158015610c06573d6000803e3d6000fd5b50600286018054869003905560038601805482908110610c2257fe5b6000918252602090912001548351600160a060020a0390911690849084908110610c4857fe5b600160a060020a039092166020928302909101909101526001909101905b600101610ba6565b7f84ece71ff3209d85efdc289e3c5ba680921f15a77372267582bae9969557096e8985856040518084815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019060200280838360005b83811015610cf0578181015183820152602001610cd8565b5050505090500194505050505060405180910390a150503031979650505050505050565b608060405190810160405280606081526020016000815260200160008152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610d7e57805160ff1916838001178555610dab565b82800160010185558215610dab579182015b82811115610dab578251825591602001919060010190610d90565b50610db7929150610e43565b5090565b828054828255906000526020600020908101928215610e1d579160200282015b82811115610e1d578251825473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909116178255602090920191600190910190610ddb565b50610db7929150610e5d565b50805460008255906000526020600020908101906102a991905b610b1091905b80821115610db75760008155600101610e49565b610b1091905b80821115610db757805473ffffffffffffffffffffffffffffffffffffffff19168155600101610e635600a165627a7a723058207aa7db68274ad83d2d451eb43a97910e83616afc377062ced3b7fbd575c82a720029

   Swarm Source:
bzzr://7aa7db68274ad83d2d451eb43a97910e83616afc377062ced3b7fbd575c82a72

 

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