Overview
ETH Balance
0.000369533932967402 ETH
Eth Value
$1.29 (@ $3,478.90/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,616 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 16012296 | 765 days ago | IN | 0 ETH | 0.00105996 | ||||
Transfer | 16012296 | 765 days ago | IN | 0.013 ETH | 0.00143674 | ||||
Buy | 15983916 | 769 days ago | IN | 0.01 ETH | 0.00137721 | ||||
Withdraw Stock | 10468052 | 1622 days ago | IN | 0 ETH | 0.00064629 | ||||
Buy | 10467887 | 1622 days ago | IN | 0.03 ETH | 0.00223713 | ||||
Transfer | 10291221 | 1650 days ago | IN | 0 ETH | 0.00078818 | ||||
Transfer | 10284996 | 1651 days ago | IN | 0 ETH | 0.00059113 | ||||
Transfer | 10282930 | 1651 days ago | IN | 0 ETH | 0.00091954 | ||||
Transfer | 10281778 | 1651 days ago | IN | 0 ETH | 0.00098523 | ||||
Transfer | 10281757 | 1651 days ago | IN | 0 ETH | 0.00100712 | ||||
Transfer | 10278468 | 1652 days ago | IN | 0.01 ETH | 0.00244183 | ||||
Withdraw | 9931735 | 1705 days ago | IN | 0 ETH | 0.00024652 | ||||
Withdraw Stock | 9931730 | 1705 days ago | IN | 0 ETH | 0.00004457 | ||||
Withdraw | 9931445 | 1705 days ago | IN | 0 ETH | 0.00024652 | ||||
Withdraw | 9931435 | 1705 days ago | IN | 0 ETH | 0.00024652 | ||||
Buy | 9930378 | 1706 days ago | IN | 0.02 ETH | 0.00046359 | ||||
Withdraw | 9930366 | 1706 days ago | IN | 0 ETH | 0.00051571 | ||||
Buy | 9928749 | 1706 days ago | IN | 0.02 ETH | 0.00046359 | ||||
Withdraw | 9928744 | 1706 days ago | IN | 0 ETH | 0.00051571 | ||||
Buy | 9925478 | 1706 days ago | IN | 0.02 ETH | 0.00067113 | ||||
Bounty | 8691049 | 1905 days ago | IN | 0 ETH | 0.00002218 | ||||
Bounty | 8691043 | 1905 days ago | IN | 0 ETH | 0.00002218 | ||||
Bounty | 6491194 | 2267 days ago | IN | 0 ETH | 0.00008874 | ||||
Withdraw | 6491187 | 2267 days ago | IN | 0 ETH | 0.0001215 | ||||
Withdraw | 6482057 | 2268 days ago | IN | 0 ETH | 0.0002187 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
16012296 | 765 days ago | 0.07926388 ETH | ||||
16012296 | 765 days ago | 0.00065 ETH | ||||
15983916 | 769 days ago | 0.0005 ETH | ||||
10467887 | 1622 days ago | 0.0015 ETH | ||||
10278468 | 1652 days ago | 0.0005 ETH | ||||
9930378 | 1706 days ago | 0.001 ETH | ||||
9930378 | 1706 days ago | 0.00016666 ETH | ||||
9930366 | 1706 days ago | 0.02005555 ETH | ||||
9928749 | 1706 days ago | 0.001 ETH | ||||
9928749 | 1706 days ago | 0.00002777 ETH | ||||
9928744 | 1706 days ago | 0.02013888 ETH | ||||
9925478 | 1706 days ago | 0.001 ETH | ||||
6467750 | 2270 days ago | 0.02731944 ETH | ||||
6459296 | 2272 days ago | 0.0005 ETH | ||||
6412849 | 2279 days ago | 0.01216666 ETH | ||||
6412629 | 2279 days ago | 0.005625 ETH | ||||
6412279 | 2279 days ago | 0.00333333 ETH | ||||
6412065 | 2279 days ago | 0.00381944 ETH | ||||
6411914 | 2279 days ago | 0.05061111 ETH | ||||
6411829 | 2279 days ago | 0.17020833 ETH | ||||
6411724 | 2279 days ago | 0.014 ETH | ||||
6408623 | 2280 days ago | 0.02625 ETH | ||||
6408594 | 2280 days ago | 0.01291666 ETH | ||||
6408500 | 2280 days ago | 0.04958333 ETH | ||||
6408481 | 2280 days ago | 0.00520833 ETH |
Loading...
Loading
Contract Name:
TwelveHourTrains
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-09-25 */ pragma solidity ^0.4.25; /** * 12HourTrains - 100% each 12 hours https://12hourtrains.github.io/ */ contract TwelveHourTrains { using SafeMath for uint256; mapping(address => uint256) investments; mapping(address => uint256) joined; mapping(address => uint256) withdrawals; mapping(address => uint256) referrer; uint256 public step = 100; uint256 public minimum = 10 finney; uint256 public stakingRequirement = 2 ether; address public ownerWallet; address public owner; event Invest(address investor, uint256 amount); event Withdraw(address investor, uint256 amount); event Bounty(address hunter, uint256 amount); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Сonstructor Sets the original roles of the contract */ constructor() public { owner = msg.sender; ownerWallet = msg.sender; } /** * @dev Modifiers */ modifier onlyOwner() { require(msg.sender == owner); _; } /** * @dev Allows current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. * @param newOwnerWallet The address to transfer ownership to. */ function transferOwnership(address newOwner, address newOwnerWallet) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; ownerWallet = newOwnerWallet; } /** * @dev Investments */ function () public payable { buy(0x0); } function buy(address _referredBy) public payable { require(msg.value >= minimum); address _customerAddress = msg.sender; if( // is this a referred purchase? _referredBy != 0x0000000000000000000000000000000000000000 && // no cheating! _referredBy != _customerAddress && // does the referrer have at least X whole tokens? // i.e is the referrer a godly chad masternode investments[_referredBy] >= stakingRequirement ){ // wealth redistribution referrer[_referredBy] = referrer[_referredBy].add(msg.value.mul(5).div(100)); } if (investments[msg.sender] > 0){ if (withdraw()){ withdrawals[msg.sender] = 0; } } investments[msg.sender] = investments[msg.sender].add(msg.value); joined[msg.sender] = block.timestamp; ownerWallet.transfer(msg.value.mul(5).div(100)); emit Invest(msg.sender, msg.value); } /** * @dev Evaluate current balance * @param _address Address of investor */ function getBalance(address _address) view public returns (uint256) { uint256 minutesCount = now.sub(joined[_address]).div(1 minutes); uint256 percent = investments[_address].mul(step).div(100); uint256 different = percent.mul(minutesCount).div(720); uint256 balance = different.sub(withdrawals[_address]); return balance; } /** * @dev Withdraw dividends from contract */ function withdraw() public returns (bool){ require(joined[msg.sender] > 0); uint256 balance = getBalance(msg.sender); if (address(this).balance > balance){ if (balance > 0){ withdrawals[msg.sender] = withdrawals[msg.sender].add(balance); msg.sender.transfer(balance); emit Withdraw(msg.sender, balance); } return true; } else { return false; } } /** * @dev Bounty reward */ function bounty() public { uint256 refBalance = checkReferral(msg.sender); if(refBalance >= minimum) { if (address(this).balance > refBalance) { referrer[msg.sender] = 0; msg.sender.transfer(refBalance); emit Bounty(msg.sender, refBalance); } } } /** * @dev Gets balance of the sender address. * @return An uint256 representing the amount owned by the msg.sender. */ function checkBalance() public view returns (uint256) { return getBalance(msg.sender); } /** * @dev Gets withdrawals of the specified address. * @param _investor The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */ function checkWithdrawals(address _investor) public view returns (uint256) { return withdrawals[_investor]; } /** * @dev Gets investments of the specified address. * @param _investor The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */ function checkInvestments(address _investor) public view returns (uint256) { return investments[_investor]; } /** * @dev Gets referrer balance of the specified address. * @param _hunter The address of the referrer * @return An uint256 representing the referral earnings. */ function checkReferral(address _hunter) public view returns (uint256) { return referrer[_hunter]; } } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"_hunter","type":"address"}],"name":"checkReferral","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minimum","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingRequirement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"},{"name":"newOwnerWallet","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_investor","type":"address"}],"name":"checkInvestments","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":true,"inputs":[],"name":"ownerWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"bounty","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_investor","type":"address"}],"name":"checkWithdrawals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"checkBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"step","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"}],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"getBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"investor","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Invest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"investor","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"hunter","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Bounty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
60806040526064600455662386f26fc10000600555671bc16d674ec8000060065534801561002c57600080fd5b506008805433600160a060020a031991821681179092556007805490911690911790556108598061005e6000396000f3006080604052600436106100cf5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630c19f80e81146100db5780633ccfd60b1461010e57806352d6804d1461013757806356d399e81461014c5780636d43542114610161578063835c1154146101885780638da5cb5b146101a95780639335dcb7146101da578063943dfef1146101ef5780639d9fcc7214610204578063c71daccb14610225578063e25fe1751461023a578063f088d5471461024f578063f8b2cb4f14610263575b6100d96000610284565b005b3480156100e757600080fd5b506100fc600160a060020a036004351661044d565b60408051918252519081900360200190f35b34801561011a57600080fd5b50610123610468565b604080519115158252519081900360200190f35b34801561014357600080fd5b506100fc61054f565b34801561015857600080fd5b506100fc610555565b34801561016d57600080fd5b506100d9600160a060020a036004358116906024351661055b565b34801561019457600080fd5b506100fc600160a060020a03600435166105fc565b3480156101b557600080fd5b506101be610617565b60408051600160a060020a039092168252519081900360200190f35b3480156101e657600080fd5b506101be610626565b3480156101fb57600080fd5b506100d9610635565b34801561021057600080fd5b506100fc600160a060020a03600435166106d0565b34801561023157600080fd5b506100fc6106eb565b34801561024657600080fd5b506100fc6106fb565b6100d9600160a060020a0360043516610284565b34801561026f57600080fd5b506100fc600160a060020a0360043516610701565b60055460009034101561029657600080fd5b5033600160a060020a038216158015906102c2575080600160a060020a031682600160a060020a031614155b80156102e85750600654600160a060020a03831660009081526020819052604090205410155b1561035157610337610312606461030634600563ffffffff6107bf16565b9063ffffffff6107f516565b600160a060020a0384166000908152600360205260409020549063ffffffff61080c16565b600160a060020a0383166000908152600360205260409020555b3360009081526020819052604081205411156103855761036f610468565b1561038557336000908152600260205260408120555b336000908152602081905260409020546103a5903463ffffffff61080c16565b33600090815260208181526040808320939093556001905220429055600754600160a060020a03166108fc6103e6606461030634600563ffffffff6107bf16565b6040518115909202916000818181858888f1935050505015801561040e573d6000803e3d6000fd5b506040805133815234602082015281517fd90d253a9de34d2fdd5a75ae49ea17fcb43af32fc8ea08cc6d2341991dd3872e929181900390910190a15050565b600160a060020a031660009081526003602052604090205490565b336000908152600160205260408120548190811061048557600080fd5b61048e33610701565b9050303181101561054657600081111561053d57336000908152600260205260409020546104c2908263ffffffff61080c16565b33600081815260026020526040808220939093559151909183156108fc02918491818181858888f19350505050158015610500573d6000803e3d6000fd5b50604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a15b6001915061054b565b600091505b5090565b60055481565b60065481565b600854600160a060020a0316331461057257600080fd5b600160a060020a038216151561058757600080fd5b600854604051600160a060020a038085169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360088054600160a060020a0393841673ffffffffffffffffffffffffffffffffffffffff199182161790915560078054929093169116179055565b600160a060020a031660009081526020819052604090205490565b600854600160a060020a031681565b600754600160a060020a031681565b60006106403361044d565b60055490915081106106cd5730318110156106cd57336000818152600360205260408082208290555183156108fc0291849190818181858888f19350505050158015610690573d6000803e3d6000fd5b50604080513381526020810183905281517f4cc4e2a1284006914465e82a99bce908c3ad5b5d4b08fbef40faf68169cee2a8929181900390910190a15b50565b600160a060020a031660009081526002602052604090205490565b60006106f633610701565b905090565b60045481565b600160a060020a038116600090815260016020526040812054819081908190819061073a90603c9061030690429063ffffffff61081b16565b600454600160a060020a03881660009081526020819052604090205491955061077091606491610306919063ffffffff6107bf16565b92506107886102d0610306858763ffffffff6107bf16565b600160a060020a0387166000908152600260205260409020549092506107b590839063ffffffff61081b16565b9695505050505050565b6000808315156107d257600091506107ee565b508282028284828115156107e257fe5b04146107ea57fe5b8091505b5092915050565b600080828481151561080357fe5b04949350505050565b6000828201838110156107ea57fe5b60008282111561082757fe5b509003905600a165627a7a7230582052c9acf35edd8cbea48c3cf0c517a9752ce7ace4e7bfe3b121e3c490e7bf6c3b0029
Deployed Bytecode
0x6080604052600436106100cf5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630c19f80e81146100db5780633ccfd60b1461010e57806352d6804d1461013757806356d399e81461014c5780636d43542114610161578063835c1154146101885780638da5cb5b146101a95780639335dcb7146101da578063943dfef1146101ef5780639d9fcc7214610204578063c71daccb14610225578063e25fe1751461023a578063f088d5471461024f578063f8b2cb4f14610263575b6100d96000610284565b005b3480156100e757600080fd5b506100fc600160a060020a036004351661044d565b60408051918252519081900360200190f35b34801561011a57600080fd5b50610123610468565b604080519115158252519081900360200190f35b34801561014357600080fd5b506100fc61054f565b34801561015857600080fd5b506100fc610555565b34801561016d57600080fd5b506100d9600160a060020a036004358116906024351661055b565b34801561019457600080fd5b506100fc600160a060020a03600435166105fc565b3480156101b557600080fd5b506101be610617565b60408051600160a060020a039092168252519081900360200190f35b3480156101e657600080fd5b506101be610626565b3480156101fb57600080fd5b506100d9610635565b34801561021057600080fd5b506100fc600160a060020a03600435166106d0565b34801561023157600080fd5b506100fc6106eb565b34801561024657600080fd5b506100fc6106fb565b6100d9600160a060020a0360043516610284565b34801561026f57600080fd5b506100fc600160a060020a0360043516610701565b60055460009034101561029657600080fd5b5033600160a060020a038216158015906102c2575080600160a060020a031682600160a060020a031614155b80156102e85750600654600160a060020a03831660009081526020819052604090205410155b1561035157610337610312606461030634600563ffffffff6107bf16565b9063ffffffff6107f516565b600160a060020a0384166000908152600360205260409020549063ffffffff61080c16565b600160a060020a0383166000908152600360205260409020555b3360009081526020819052604081205411156103855761036f610468565b1561038557336000908152600260205260408120555b336000908152602081905260409020546103a5903463ffffffff61080c16565b33600090815260208181526040808320939093556001905220429055600754600160a060020a03166108fc6103e6606461030634600563ffffffff6107bf16565b6040518115909202916000818181858888f1935050505015801561040e573d6000803e3d6000fd5b506040805133815234602082015281517fd90d253a9de34d2fdd5a75ae49ea17fcb43af32fc8ea08cc6d2341991dd3872e929181900390910190a15050565b600160a060020a031660009081526003602052604090205490565b336000908152600160205260408120548190811061048557600080fd5b61048e33610701565b9050303181101561054657600081111561053d57336000908152600260205260409020546104c2908263ffffffff61080c16565b33600081815260026020526040808220939093559151909183156108fc02918491818181858888f19350505050158015610500573d6000803e3d6000fd5b50604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a15b6001915061054b565b600091505b5090565b60055481565b60065481565b600854600160a060020a0316331461057257600080fd5b600160a060020a038216151561058757600080fd5b600854604051600160a060020a038085169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360088054600160a060020a0393841673ffffffffffffffffffffffffffffffffffffffff199182161790915560078054929093169116179055565b600160a060020a031660009081526020819052604090205490565b600854600160a060020a031681565b600754600160a060020a031681565b60006106403361044d565b60055490915081106106cd5730318110156106cd57336000818152600360205260408082208290555183156108fc0291849190818181858888f19350505050158015610690573d6000803e3d6000fd5b50604080513381526020810183905281517f4cc4e2a1284006914465e82a99bce908c3ad5b5d4b08fbef40faf68169cee2a8929181900390910190a15b50565b600160a060020a031660009081526002602052604090205490565b60006106f633610701565b905090565b60045481565b600160a060020a038116600090815260016020526040812054819081908190819061073a90603c9061030690429063ffffffff61081b16565b600454600160a060020a03881660009081526020819052604090205491955061077091606491610306919063ffffffff6107bf16565b92506107886102d0610306858763ffffffff6107bf16565b600160a060020a0387166000908152600260205260409020549092506107b590839063ffffffff61081b16565b9695505050505050565b6000808315156107d257600091506107ee565b508282028284828115156107e257fe5b04146107ea57fe5b8091505b5092915050565b600080828481151561080357fe5b04949350505050565b6000828201838110156107ea57fe5b60008282111561082757fe5b509003905600a165627a7a7230582052c9acf35edd8cbea48c3cf0c517a9752ce7ace4e7bfe3b121e3c490e7bf6c3b0029
Swarm Source
bzzr://52c9acf35edd8cbea48c3cf0c517a9752ce7ace4e7bfe3b121e3c490e7bf6c3b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,478.9 | 0.00036953 | $1.29 |
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.