Sponsored:   Ubex.com - World roadshow: Seoul Sep 17-19, Singapore Sep 19-20, Dubai 18-23. Meet us!.
Contract Overview
Balance: 0.1 Ether
Ether Value: $22.42 (@ $224.20/ETH)
Transactions: 634 txns
 Latest 25 txns From a total of 634 Transactions

TxHash Age From To Value [TxFee]
0xbc09273c3655a2568dd68ae729b739f507307d97ffa5bbd0e011c6f6777134b51 day 12 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000630511808
0xe7ce88b853a72f98c08e4c1e2b9ae6d58cee3ea9f8ce692053862d9517aa3f022 days 10 hrs ago0xb31fc4cfbf3787101f009b58085f4dffe3d2a077  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.00043168
0xe8ffe6fa79092035564f3523bee85130e43d06abee9d64789ab81c9556e0ec412 days 11 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000570016172
0xad9c71e9f2b1481491f94e64d94a4f7b4895cb6d52c502f2a42e867acdcbcb454 days 13 hrs ago0xddf543429e415a262e7617d76196621cb8375d20  IN   0xef02c45c5913629dd12e7a9446455049775eec320.05 Ether0.00007364
0x30b82b1aec49133b9959696c567e5d11b42366084479d6e540f62dda0dbd092d5 days 5 hrs ago0xadb5863ea8db92ac30f41e23af7c85d74dd505e2  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000255099
0xd491f2ea669e11bcc4b8855159eb9874daf37311abf62a120477e51d6302deb89 days 14 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0003656419
0x921aba712f2fb084cf54b765d3ff1ce66408ea1192ac2f63d1e65051c988208311 days 27 mins ago0x2640ca57d98ac793d1ae27b0e4f8546742d44c2e  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0002916749
0x1c010d2874712c883776fdeaf3e4ce5d5d111b7a23ac36810f7cf3c63ecf1c4511 days 10 hrs ago0xb31fc4cfbf3787101f009b58085f4dffe3d2a077  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0002091254
0xd43493d8068fe8d4b03a746ae8c43ff26aa70cc9bc30f152e0da06b6a30f349411 days 22 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0003656419
0x1a81df3982356bcab51fecf33963cf76ff2a527207d73279cd24260d6443721e13 days 13 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0001816089
0x0af5b05b7e247bce85be25b387afc6b9deee205638f4fd2d6a58369d0a06a55014 days 30 mins ago0xbb02904fb51b462d8e72a1532279dbb4ae53a365  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.0004017409
0x7d122fd74fb83e590c765a3cc2b4e2a9a15d30976b36e3d9aa623a73f5bebbf414 days 6 hrs ago0xd3095775e3082e400a093134c0cb20c3e9cdb6dc  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000165099
0x2230e98f2afd7fe0ecfb3152638794dde0a670887262b40586e4658326c8064414 days 6 hrs ago0xb31fc4cfbf3787101f009b58085f4dffe3d2a077  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000255099
0xe634411d48dca75ddc9344fc4f3406b0cc4e787ffc9640e9ed9c3d8a83b4ac0c14 days 7 hrs ago0xa5fa8c45146e940b361c4f76d271a9462ad6e878  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000283086
0x66a5fb5f79cced291ca59ab5b73348c6ce0e50a635e674c3422e6bb3bd1bb26614 days 9 hrs ago0xb31fc4cfbf3787101f009b58085f4dffe3d2a077  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000220132
0x3272ab0c1a9cc74c470699b6a67b10df14ecd84c53061cdb640879983edc1f4214 days 12 hrs ago0xd3095775e3082e400a093134c0cb20c3e9cdb6dc  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000275165
0x296e077106e398183d911d5b271be9afe963762bec809ab1a4e477d33898a48d14 days 13 hrs ago0x87b66a0c03da300071d89978a9aa3189b04b396e  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000275165
0x0bac9955c5261acd742abde90543eccc5a2bba0541dd7cac589860f255b2640c14 days 13 hrs ago0x41b3ef48e1a823ce83c0b4688edf6f234e6ee09f  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000330198
0xaf500d08fee48f07957f1bfd1521619538d946e9bf2c64f921ba270e6563e27914 days 14 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.00048723909
0x583d737ecd17053689a23255115bf9f49968e99fbd4bd1241ddee7b201f03d5a14 days 22 hrs ago0x8a6b9e9bad2eb5020213c61b15d7d2eb4b8a9582  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.00044633226
0xbb73393d013406705909436b4711eabe1f12ea69747cb7092ae65b17c425658315 days 55 mins ago0xa5fa8c45146e940b361c4f76d271a9462ad6e878  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000165099
0x0074a8a5a41dd42a838008e15f6c7bc1211531ab112921fb5fda8ce4c735931415 days 1 hr ago0xa5fa8c45146e940b361c4f76d271a9462ad6e878  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000165099
0xc8fee9f0a34f5d011b97b3c0078dc9664ed37f9b27f4d898695835c6e86f7af215 days 1 hr ago0xa5fa8c45146e940b361c4f76d271a9462ad6e878  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000165099
0x9ce0c7821352ec50e8ad4ae189635f07f90f28cbabba299189b58d0c9480e82815 days 8 hrs ago0xb31fc4cfbf3787101f009b58085f4dffe3d2a077  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000165099
0x31e0d844e3045f3600ea65ec5c054987b19ef6ca5e0641bdd300eaefed61e53815 days 8 hrs ago0xa5fa8c45146e940b361c4f76d271a9462ad6e878  IN   0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether0.000255099
[ 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
0xbc09273c3655a2568dd68ae729b739f507307d97ffa5bbd0e011c6f6777134b563608481 day 12 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0xbc09273c3655a2568dd68ae729b739f507307d97ffa5bbd0e011c6f6777134b563608481 day 12 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xbc09273c3655a2568dd68ae729b739f507307d97ffa5bbd0e011c6f6777134b563608481 day 12 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xe7ce88b853a72f98c08e4c1e2b9ae6d58cee3ea9f8ce692053862d9517aa3f0263554772 days 10 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0xe7ce88b853a72f98c08e4c1e2b9ae6d58cee3ea9f8ce692053862d9517aa3f0263554772 days 10 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xe7ce88b853a72f98c08e4c1e2b9ae6d58cee3ea9f8ce692053862d9517aa3f0263554772 days 10 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xe8ffe6fa79092035564f3523bee85130e43d06abee9d64789ab81c9556e0ec4163550032 days 11 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0.0118 Ether
0xe8ffe6fa79092035564f3523bee85130e43d06abee9d64789ab81c9556e0ec4163550032 days 11 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xe8ffe6fa79092035564f3523bee85130e43d06abee9d64789ab81c9556e0ec4163550032 days 11 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0x7c56779d11ccb06c7e76ba25e2222752454dda79ae9778761fe6a3d0a0358be763467233 days 20 hrs ago0xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether
0x7c56779d11ccb06c7e76ba25e2222752454dda79ae9778761fe6a3d0a0358be763467233 days 20 hrs ago0xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether
0x7c56779d11ccb06c7e76ba25e2222752454dda79ae9778761fe6a3d0a0358be763467233 days 20 hrs ago0xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether
0x7c56779d11ccb06c7e76ba25e2222752454dda79ae9778761fe6a3d0a0358be763467233 days 20 hrs ago0xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether
0x7c56779d11ccb06c7e76ba25e2222752454dda79ae9778761fe6a3d0a0358be763467233 days 20 hrs ago0xbf4340b16cf0d672b02c8e8bede9a8f64a9b19ed0xef02c45c5913629dd12e7a9446455049775eec320.01 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xa782fccaa08fb8e80dbed26df201b404dc2dce850.0118 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xa782fccaa08fb8e80dbed26df201b404dc2dce850.0118 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xa782fccaa08fb8e80dbed26df201b404dc2dce850.0118 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xa782fccaa08fb8e80dbed26df201b404dc2dce850.0118 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xa782fccaa08fb8e80dbed26df201b404dc2dce850.0118 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xd3095775e3082e400a093134c0cb20c3e9cdb6dc0.0005 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xef02c45c5913629dd12e7a9446455049775eec320xc2b1b510aa64865ff7ca1d1fe41162fbb49ca0580.0005 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xa782fccaa08fb8e80dbed26df201b404dc2dce850xef02c45c5913629dd12e7a9446455049775eec320.01 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xa782fccaa08fb8e80dbed26df201b404dc2dce850xef02c45c5913629dd12e7a9446455049775eec320.01 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xa782fccaa08fb8e80dbed26df201b404dc2dce850xef02c45c5913629dd12e7a9446455049775eec320.01 Ether
0xc298919485c7e6e408a13decc1fc444fa8f391cc12e3bd64903d4093f7fbfc1263467133 days 20 hrs ago0xa782fccaa08fb8e80dbed26df201b404dc2dce850xef02c45c5913629dd12e7a9446455049775eec320.01 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 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.