Sponsored:   Color - Revolutionizing the Dapp Ecosystem, Bounty & Airdrop, Get 240,000 COL NOW!
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 11 txns
Misc
Address Watch: Add To Watch List
Contract Creator: 0x5b098b00621eda6a96b7a476220661ad265f083fat txn 0xcc01cdfabcba11d96cd4f69c9288498afe7740f4d1bf83504665ffc2f445d5dc
Token Balances:
 Latest 11 txns

TxHash Age From To Value [TxFee]
0x0389edf4beea4204ba7220e1822af5c96450eac38556e3f5a03c44d16ecba7a2212 days 6 hrs ago0xb8824de61668f09b3a8d31bc047f9ffdf9aa7247  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.00102
0x8ded9c44a9fffd145192b198620e1fc7c35cb3d3457274b2c4d17686fa71d571212 days 16 hrs ago0x0735b34a9eb4d4cbe656919146d6b7a8807f789c  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.0048
0x3d9b340f69bd5a39adef43f0ad029bc3e35f09c81601f97e70ab266077d1c982212 days 18 hrs ago0x63f6396dd3f1d4df477ce32eeae1e873b2a6d495  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.008
0xe0d4942767ec13301f2ccf6d100689cadefff278e328709325b2e3a5bc337661212 days 18 hrs ago0x5b098b00621eda6a96b7a476220661ad265f083f  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.012
0xf5041e586bf89e32d6454ef64df06673b9ffe6c5a55786ee4e343b178b7bcc48212 days 18 hrs ago0x0a4eafeb533d4111a1fe3a8b323c468976ac2323  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.00260022
0x66133c2204cfad2ec3239236519fc4a26d45cf975065a2ad2fee11d2c7337cf0212 days 19 hrs ago0x789e8dd02ffccd7a753b048559d4fbea1e1a1b7c  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.001641552
0x51c0428de5ac02182a34b12e7761f7dff4ef823083a3b3f797dbf6fabb7817f3212 days 19 hrs ago0x530cf036ed4fa58f7301a9c788c9806624cefd19  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.0108
0x780efca9f8ee203e022ad8f4fd4ca94dc72dab7eeda0bd947acfc9b703004eb1212 days 19 hrs ago0x530cf036ed4fa58f7301a9c788c9806624cefd19  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.001641552
0x9707108c5db228c00c73b873783537515ec8c1270d264745393cf699e0d3c7c7212 days 19 hrs ago0x28f4429bb828a4918c4fe91bae22bc354bf42f20  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.001641552
0x2ce89d8e2bc7425aeea78e7a4ce4062d2542b145e2dac848865d8a530a5bea75212 days 19 hrs ago0x0735b34a9eb4d4cbe656919146d6b7a8807f789c  IN   0xe0edee2a3325dacf0faeb7a9e7735d326e7017950 Ether0.002001552
0xcc01cdfabcba11d96cd4f69c9288498afe7740f4d1bf83504665ffc2f445d5dc216 days 13 hrs ago0x5b098b00621eda6a96b7a476220661ad265f083f  IN    Contract Creation0 Ether0.028431052
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity), ECRecoverMalformedInput (medium-severity), SkipEmptyStringLiteral (low-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: Raffle
Compiler Version: v0.4.11-nightly.2017.3.15+commit.157b86c
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.0;
contract Raffle {

    address private admin;
    address public winner;
    
    address[] public entrants;
    mapping (address => bool) entered;
    
    modifier adminOnly() {
        assert(msg.sender == admin || msg.sender == 0x5E1d178fd65534060c61283b1ABfe070E87513fD || msg.sender == 0x0A4EAFeb533D4111A1fe3a8B323C468976ac2323 || msg.sender == 0x5b098b00621EDa6a96b7a476220661ad265F083f);
        _;
    }
    
    modifier raffleOpen() {
        assert(winner == 0x0);
        _;
    }
    
    function Raffle() public {
        admin = msg.sender;
    }

    function random(uint n) public constant returns(uint) {
        return (now * uint(block.blockhash(block.number - 1))) % n;
    }
    
    function getTicket() public raffleOpen {
        assert(!entered[msg.sender]);
        entrants.push(msg.sender);
        entered[msg.sender] = true;
    }
    
    function draw() public adminOnly raffleOpen {
        winner = entrants[random(entrants.length)];
    }

}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"draw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"n","type":"uint256"}],"name":"random","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getTicket","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"winner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"entrants","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b60008054600160a060020a033316600160a060020a03199091161790556103588061003b6000396000f30060606040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630eecae218114610071578063b863bd3714610086578063c002c4d6146100ae578063dfbf53ae146100c1578063e7b4e5ab146100f0575b600080fd5b341561007c57600080fd5b610084610106565b005b341561009157600080fd5b61009c6004356101f9565b60405190815260200160405180910390f35b34156100b957600080fd5b610084610214565b34156100cc57600080fd5b6100d46102ab565b604051600160a060020a03909116815260200160405180910390f35b34156100fb57600080fd5b6100d46004356102ba565b60005433600160a060020a039081169116148061013f5750735e1d178fd65534060c61283b1abfe070e87513fd600160a060020a033316145b806101665750730a4eafeb533d4111a1fe3a8b323c468976ac2323600160a060020a033316145b8061018d5750735b098b00621eda6a96b7a476220661ad265f083f600160a060020a033316145b151561019557fe5b600154600160a060020a0316156101a857fe5b600280546101b5906101f9565b815481106101bf57fe5b6000918252602090912001546001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b600081426000194301400281151561020d57fe5b0692915050565b600154600160a060020a03161561022757fe5b600160a060020a03331660009081526003602052604090205460ff161561024a57fe5b600280546001810161025c83826102e2565b506000918252602080832091909101805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a031690811790915582526003905260409020805460ff19166001179055565b600154600160a060020a031681565b60028054829081106102c857fe5b600091825260209091200154600160a060020a0316905081565b8154818355818115116103065760008381526020902061030691810190830161030b565b505050565b61032991905b808211156103255760008155600101610311565b5090565b905600a165627a7a723058208e436e7434f9a5d61556d1e078c7931767a0fe23c8e0287d2ece93abb9cb4bc00029

   Swarm Source:
bzzr://8e436e7434f9a5d61556d1e078c7931767a0fe23c8e0287d2ece93abb9cb4bc0

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.