ETH Price: $2,918.52 (+3.49%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Extract Fund70770952019-01-16 17:24:162122 days ago1547659456IN
0x72b2670e...089B12576
0 ETH0.000301710
Withdraw Dividen...70770902019-01-16 17:23:292122 days ago1547659409IN
0x72b2670e...089B12576
0 ETH0.0004611810
0x6080604061173532018-08-09 16:37:032282 days ago1533832623IN
 Create: TakeoutController
0 ETH0.0368078165

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
71604012019-02-01 21:04:092106 days ago1549055049
0x72b2670e...089B12576
0.00205 ETH
71604012019-02-01 21:04:092106 days ago1549055049
0x72b2670e...089B12576
0.00205 ETH
71601962019-02-01 20:03:272106 days ago1549051407
0x72b2670e...089B12576
0.0014 ETH
71601962019-02-01 20:03:272106 days ago1549051407
0x72b2670e...089B12576
0.0014 ETH
71597352019-02-01 17:53:212106 days ago1549043601
0x72b2670e...089B12576
0.00155 ETH
71597352019-02-01 17:53:212106 days ago1549043601
0x72b2670e...089B12576
0.00155 ETH
71548632019-01-31 17:54:252107 days ago1548957265
0x72b2670e...089B12576
0.00155 ETH
71548632019-01-31 17:54:252107 days ago1548957265
0x72b2670e...089B12576
0.00155 ETH
71454882019-01-29 20:04:222109 days ago1548792262
0x72b2670e...089B12576
0.00105 ETH
71454882019-01-29 20:04:222109 days ago1548792262
0x72b2670e...089B12576
0.00105 ETH
71450082019-01-29 17:53:482109 days ago1548784428
0x72b2670e...089B12576
0.001 ETH
71450082019-01-29 17:53:482109 days ago1548784428
0x72b2670e...089B12576
0.001 ETH
71408112019-01-28 21:04:012110 days ago1548709441
0x72b2670e...089B12576
0.00767499 ETH
71408112019-01-28 21:04:012110 days ago1548709441
0x72b2670e...089B12576
0.00767499 ETH
71406142019-01-28 20:04:272110 days ago1548705867
0x72b2670e...089B12576
0.0028 ETH
71406142019-01-28 20:04:272110 days ago1548705867
0x72b2670e...089B12576
0.0028 ETH
71364892019-01-27 23:54:592111 days ago1548633299
0x72b2670e...089B12576
0.00575 ETH
71364892019-01-27 23:54:592111 days ago1548633299
0x72b2670e...089B12576
0.00575 ETH
71359022019-01-27 21:03:252111 days ago1548623005
0x72b2670e...089B12576
0.00575 ETH
71359022019-01-27 21:03:252111 days ago1548623005
0x72b2670e...089B12576
0.00575 ETH
71356792019-01-27 20:03:502111 days ago1548619430
0x72b2670e...089B12576
0.00575 ETH
71356792019-01-27 20:03:502111 days ago1548619430
0x72b2670e...089B12576
0.00575 ETH
71257782019-01-25 21:03:442113 days ago1548450224
0x72b2670e...089B12576
0.0013 ETH
71257782019-01-25 21:03:442113 days ago1548450224
0x72b2670e...089B12576
0.0013 ETH
71251142019-01-25 17:53:592113 days ago1548438839
0x72b2670e...089B12576
0.0013 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TakeoutController

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.24;

interface HourglassInterface {
    function buy(address _referredBy) payable external returns(uint256);
    function balanceOf(address _playerAddress) external view returns(uint256);
    function transfer(address _toAddress, uint256 _amountOfTokens) external returns(bool);
    function sell(uint256 _amountOfTokens) external;
    function withdraw() external;
}

contract TakeoutController {
    address owner;
    address takeoutWallet;
    HourglassInterface private Hourglass;
    
    constructor() public {
        Hourglass = HourglassInterface(0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe);
        takeoutWallet = 0xf783A81F046448c38f3c863885D9e99D10209779;
        owner = msg.sender;
    }
    
    modifier onlyOwner {
        require(owner == msg.sender, "Access Denied!");
        _;
    }
    
    function buyTokens() external payable{
        Hourglass.buy.value(msg.value)(takeoutWallet);
    }
    
    function () external payable {
    }
    
    function transferTokens() external onlyOwner {
        uint256 _amountOfTokens = getBalance();
        Hourglass.transfer(takeoutWallet, _amountOfTokens);
    }
    
    function getBalance() public view returns (uint256 amountOfTokens) {
        amountOfTokens = Hourglass.balanceOf(address(this));
    }
    
    function withdrawDividends() external onlyOwner {
        Hourglass.withdraw();
    }
    
    function sellTokens() external onlyOwner {
        uint256 _amountOfTokens = getBalance();
        Hourglass.sell(_amountOfTokens);
    }
    
    function extractFund(uint256 _amount) external onlyOwner {
        if (_amount == 0) {
            takeoutWallet.transfer(address(this).balance);
        } else {
            require(_amount <= address(this).balance);
            takeoutWallet.transfer(_amount);
        }
    }
    
    function changeTakeoutWallet(address _newTakeoutWallet) external onlyOwner {
        takeoutWallet = _newTakeoutWallet;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"getBalance","outputs":[{"name":"amountOfTokens","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"transferTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawDividends","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sellTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newTakeoutWallet","type":"address"}],"name":"changeTakeoutWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"extractFund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

608060405234801561001057600080fd5b5060028054600160a060020a031990811673b3775fb83f7d12a36e0475abdd1fca35c091efbe1790915560018054821673f783a81f046448c38f3c863885d9e99d1020977917905560008054909116331790556106b9806100726000396000f3006080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166312065fe081146100845780631792b0bc146100ab5780632e92abdd146100c05780639904e174146100d5578063b0ed9774146100ea578063d0febe4c1461010b578063fc7fcae114610113575b005b34801561009057600080fd5b5061009961012b565b60408051918252519081900360200190f35b3480156100b757600080fd5b506100826101c1565b3480156100cc57600080fd5b506100826102bd565b3480156100e157600080fd5b50610082610393565b3480156100f657600080fd5b50610082600160a060020a0360043516610470565b6100826104ef565b34801561011f57600080fd5b5061008260043561058b565b600254604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a0823191602480830192602092919082900301818787803b15801561019057600080fd5b505af11580156101a4573d6000803e3d6000fd5b505050506040513d60208110156101ba57600080fd5b5051919050565b60008054600160a060020a03163314610212576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b61021a61012b565b600254600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b15801561028e57600080fd5b505af11580156102a2573d6000803e3d6000fd5b505050506040513d60208110156102b857600080fd5b505050565b600054600160a060020a0316331461030d576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b600260009054906101000a9004600160a060020a0316600160a060020a0316633ccfd60b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15801561037957600080fd5b505af115801561038d573d6000803e3d6000fd5b50505050565b60008054600160a060020a031633146103e4576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b6103ec61012b565b600254604080517fe4849b32000000000000000000000000000000000000000000000000000000008152600481018490529051929350600160a060020a039091169163e4849b329160248082019260009290919082900301818387803b15801561045557600080fd5b505af1158015610469573d6000803e3d6000fd5b5050505050565b600054600160a060020a031633146104c0576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600254600154604080517ff088d547000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051919092169163f088d54791349160248082019260209290919082900301818588803b15801561055c57600080fd5b505af1158015610570573d6000803e3d6000fd5b50505050506040513d602081101561058757600080fd5b5050565b600054600160a060020a031633146105db576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b80151561062257600154604051600160a060020a0390911690303180156108fc02916000818181858888f1935050505015801561061c573d6000803e3d6000fd5b5061066a565b303181111561063057600080fd5b600154604051600160a060020a039091169082156108fc029083906000818181858888f19350505050158015610587573d6000803e3d6000fd5b5056004163636573732044656e69656421000000000000000000000000000000000000a165627a7a723058206a176750fb7cc07c7c26ec4674bac262bdef97ed158fc3e1138575ba4ae828b70029

Deployed Bytecode

0x6080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166312065fe081146100845780631792b0bc146100ab5780632e92abdd146100c05780639904e174146100d5578063b0ed9774146100ea578063d0febe4c1461010b578063fc7fcae114610113575b005b34801561009057600080fd5b5061009961012b565b60408051918252519081900360200190f35b3480156100b757600080fd5b506100826101c1565b3480156100cc57600080fd5b506100826102bd565b3480156100e157600080fd5b50610082610393565b3480156100f657600080fd5b50610082600160a060020a0360043516610470565b6100826104ef565b34801561011f57600080fd5b5061008260043561058b565b600254604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a0823191602480830192602092919082900301818787803b15801561019057600080fd5b505af11580156101a4573d6000803e3d6000fd5b505050506040513d60208110156101ba57600080fd5b5051919050565b60008054600160a060020a03163314610212576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b61021a61012b565b600254600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b15801561028e57600080fd5b505af11580156102a2573d6000803e3d6000fd5b505050506040513d60208110156102b857600080fd5b505050565b600054600160a060020a0316331461030d576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b600260009054906101000a9004600160a060020a0316600160a060020a0316633ccfd60b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15801561037957600080fd5b505af115801561038d573d6000803e3d6000fd5b50505050565b60008054600160a060020a031633146103e4576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b6103ec61012b565b600254604080517fe4849b32000000000000000000000000000000000000000000000000000000008152600481018490529051929350600160a060020a039091169163e4849b329160248082019260009290919082900301818387803b15801561045557600080fd5b505af1158015610469573d6000803e3d6000fd5b5050505050565b600054600160a060020a031633146104c0576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600254600154604080517ff088d547000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051919092169163f088d54791349160248082019260209290919082900301818588803b15801561055c57600080fd5b505af1158015610570573d6000803e3d6000fd5b50505050506040513d602081101561058757600080fd5b5050565b600054600160a060020a031633146105db576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b80151561062257600154604051600160a060020a0390911690303180156108fc02916000818181858888f1935050505015801561061c573d6000803e3d6000fd5b5061066a565b303181111561063057600080fd5b600154604051600160a060020a039091169082156108fc029083906000818181858888f19350505050158015610587573d6000803e3d6000fd5b5056004163636573732044656e69656421000000000000000000000000000000000000a165627a7a723058206a176750fb7cc07c7c26ec4674bac262bdef97ed158fc3e1138575ba4ae828b70029

Swarm Source

bzzr://6a176750fb7cc07c7c26ec4674bac262bdef97ed158fc3e1138575ba4ae828b7

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

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.