More Info
Private Name Tags
ContractCreator
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
7160401 | 2106 days ago | 0.00205 ETH | ||||
7160401 | 2106 days ago | 0.00205 ETH | ||||
7160196 | 2106 days ago | 0.0014 ETH | ||||
7160196 | 2106 days ago | 0.0014 ETH | ||||
7159735 | 2106 days ago | 0.00155 ETH | ||||
7159735 | 2106 days ago | 0.00155 ETH | ||||
7154863 | 2107 days ago | 0.00155 ETH | ||||
7154863 | 2107 days ago | 0.00155 ETH | ||||
7145488 | 2109 days ago | 0.00105 ETH | ||||
7145488 | 2109 days ago | 0.00105 ETH | ||||
7145008 | 2109 days ago | 0.001 ETH | ||||
7145008 | 2109 days ago | 0.001 ETH | ||||
7140811 | 2110 days ago | 0.00767499 ETH | ||||
7140811 | 2110 days ago | 0.00767499 ETH | ||||
7140614 | 2110 days ago | 0.0028 ETH | ||||
7140614 | 2110 days ago | 0.0028 ETH | ||||
7136489 | 2111 days ago | 0.00575 ETH | ||||
7136489 | 2111 days ago | 0.00575 ETH | ||||
7135902 | 2111 days ago | 0.00575 ETH | ||||
7135902 | 2111 days ago | 0.00575 ETH | ||||
7135679 | 2111 days ago | 0.00575 ETH | ||||
7135679 | 2111 days ago | 0.00575 ETH | ||||
7125778 | 2113 days ago | 0.0013 ETH | ||||
7125778 | 2113 days ago | 0.0013 ETH | ||||
7125114 | 2113 days ago | 0.0013 ETH |
Loading...
Loading
Contract Name:
TakeoutController
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
608060405234801561001057600080fd5b5060028054600160a060020a031990811673b3775fb83f7d12a36e0475abdd1fca35c091efbe1790915560018054821673f783a81f046448c38f3c863885d9e99d1020977917905560008054909116331790556106b9806100726000396000f3006080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166312065fe081146100845780631792b0bc146100ab5780632e92abdd146100c05780639904e174146100d5578063b0ed9774146100ea578063d0febe4c1461010b578063fc7fcae114610113575b005b34801561009057600080fd5b5061009961012b565b60408051918252519081900360200190f35b3480156100b757600080fd5b506100826101c1565b3480156100cc57600080fd5b506100826102bd565b3480156100e157600080fd5b50610082610393565b3480156100f657600080fd5b50610082600160a060020a0360043516610470565b6100826104ef565b34801561011f57600080fd5b5061008260043561058b565b600254604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a0823191602480830192602092919082900301818787803b15801561019057600080fd5b505af11580156101a4573d6000803e3d6000fd5b505050506040513d60208110156101ba57600080fd5b5051919050565b60008054600160a060020a03163314610212576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b61021a61012b565b600254600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b15801561028e57600080fd5b505af11580156102a2573d6000803e3d6000fd5b505050506040513d60208110156102b857600080fd5b505050565b600054600160a060020a0316331461030d576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b600260009054906101000a9004600160a060020a0316600160a060020a0316633ccfd60b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15801561037957600080fd5b505af115801561038d573d6000803e3d6000fd5b50505050565b60008054600160a060020a031633146103e4576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b6103ec61012b565b600254604080517fe4849b32000000000000000000000000000000000000000000000000000000008152600481018490529051929350600160a060020a039091169163e4849b329160248082019260009290919082900301818387803b15801561045557600080fd5b505af1158015610469573d6000803e3d6000fd5b5050505050565b600054600160a060020a031633146104c0576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600254600154604080517ff088d547000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051919092169163f088d54791349160248082019260209290919082900301818588803b15801561055c57600080fd5b505af1158015610570573d6000803e3d6000fd5b50505050506040513d602081101561058757600080fd5b5050565b600054600160a060020a031633146105db576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b80151561062257600154604051600160a060020a0390911690303180156108fc02916000818181858888f1935050505015801561061c573d6000803e3d6000fd5b5061066a565b303181111561063057600080fd5b600154604051600160a060020a039091169082156108fc029083906000818181858888f19350505050158015610587573d6000803e3d6000fd5b5056004163636573732044656e69656421000000000000000000000000000000000000a165627a7a723058206a176750fb7cc07c7c26ec4674bac262bdef97ed158fc3e1138575ba4ae828b70029
Deployed Bytecode
0x6080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166312065fe081146100845780631792b0bc146100ab5780632e92abdd146100c05780639904e174146100d5578063b0ed9774146100ea578063d0febe4c1461010b578063fc7fcae114610113575b005b34801561009057600080fd5b5061009961012b565b60408051918252519081900360200190f35b3480156100b757600080fd5b506100826101c1565b3480156100cc57600080fd5b506100826102bd565b3480156100e157600080fd5b50610082610393565b3480156100f657600080fd5b50610082600160a060020a0360043516610470565b6100826104ef565b34801561011f57600080fd5b5061008260043561058b565b600254604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a0823191602480830192602092919082900301818787803b15801561019057600080fd5b505af11580156101a4573d6000803e3d6000fd5b505050506040513d60208110156101ba57600080fd5b5051919050565b60008054600160a060020a03163314610212576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b61021a61012b565b600254600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b15801561028e57600080fd5b505af11580156102a2573d6000803e3d6000fd5b505050506040513d60208110156102b857600080fd5b505050565b600054600160a060020a0316331461030d576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b600260009054906101000a9004600160a060020a0316600160a060020a0316633ccfd60b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15801561037957600080fd5b505af115801561038d573d6000803e3d6000fd5b50505050565b60008054600160a060020a031633146103e4576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b6103ec61012b565b600254604080517fe4849b32000000000000000000000000000000000000000000000000000000008152600481018490529051929350600160a060020a039091169163e4849b329160248082019260009290919082900301818387803b15801561045557600080fd5b505af1158015610469573d6000803e3d6000fd5b5050505050565b600054600160a060020a031633146104c0576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600254600154604080517ff088d547000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201529051919092169163f088d54791349160248082019260209290919082900301818588803b15801561055c57600080fd5b505af1158015610570573d6000803e3d6000fd5b50505050506040513d602081101561058757600080fd5b5050565b600054600160a060020a031633146105db576040805160e560020a62461bcd02815260206004820152600e602482015260008051602061066e833981519152604482015290519081900360640190fd5b80151561062257600154604051600160a060020a0390911690303180156108fc02916000818181858888f1935050505015801561061c573d6000803e3d6000fd5b5061066a565b303181111561063057600080fd5b600154604051600160a060020a039091169082156108fc029083906000818181858888f19350505050158015610587573d6000803e3d6000fd5b5056004163636573732044656e69656421000000000000000000000000000000000000a165627a7a723058206a176750fb7cc07c7c26ec4674bac262bdef97ed158fc3e1138575ba4ae828b70029
Swarm Source
bzzr://6a176750fb7cc07c7c26ec4674bac262bdef97ed158fc3e1138575ba4ae828b7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.