Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 88 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 10611522 | 1549 days ago | IN | 0 ETH | 0.00310035 | ||||
Transfer | 6763458 | 2171 days ago | IN | 0 ETH | 0.00041884 | ||||
Transfer | 6668070 | 2186 days ago | IN | 0 ETH | 0.00011817 | ||||
Transfer | 6498495 | 2214 days ago | IN | 0.01 ETH | 0.00008418 | ||||
Transfer | 6496318 | 2214 days ago | IN | 0 ETH | 0.00008508 | ||||
Transfer | 6496013 | 2214 days ago | IN | 0 ETH | 0.0002318 | ||||
Transfer | 6489337 | 2215 days ago | IN | 0.01 ETH | 0.00012627 | ||||
Transfer | 6485519 | 2216 days ago | IN | 0 ETH | 0.000042 | ||||
Transfer | 6482930 | 2216 days ago | IN | 0.01 ETH | 0.0010523 | ||||
Transfer | 6479081 | 2217 days ago | IN | 0 ETH | 0.000089 | ||||
Transfer | 6468101 | 2219 days ago | IN | 0 ETH | 0.00003869 | ||||
Transfer | 6440318 | 2223 days ago | IN | 0 ETH | 0.00057989 | ||||
Transfer | 6437139 | 2224 days ago | IN | 0 ETH | 0.00038972 | ||||
Transfer | 6377517 | 2234 days ago | IN | 0 ETH | 0.00030907 | ||||
Transfer | 6374597 | 2234 days ago | IN | 0.01 ETH | 0.00012627 | ||||
Transfer | 6367941 | 2235 days ago | IN | 0 ETH | 0.00011785 | ||||
Transfer | 6350284 | 2238 days ago | IN | 0 ETH | 0.00026932 | ||||
Transfer | 6349588 | 2238 days ago | IN | 0 ETH | 0.00019432 | ||||
Transfer | 6349582 | 2238 days ago | IN | 0 ETH | 0.00019432 | ||||
Transfer | 6348764 | 2238 days ago | IN | 0 ETH | 0.00023356 | ||||
Transfer | 6340826 | 2240 days ago | IN | 0 ETH | 0.00011678 | ||||
Transfer | 6339568 | 2240 days ago | IN | 0 ETH | 0.00007924 | ||||
Transfer | 6339519 | 2240 days ago | IN | 0 ETH | 0.00015438 | ||||
Transfer | 6336638 | 2240 days ago | IN | 0 ETH | 0.00015571 | ||||
Transfer | 6334714 | 2241 days ago | IN | 0 ETH | 0.00026964 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TOCHToken
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-09-11 */ pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; 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 && c >= b); return c; } function max64(uint64 a, uint64 b) internal pure returns (uint64) { return a >= b ? a : b; } function min64(uint64 a, uint64 b) internal pure returns (uint64) { return a < b ? a : b; } function max256(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } function min256(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } } contract owned { //Contract used to only allow the owner to call some functions address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } contract TokenERC20 { using SafeMath for uint256; // Public variables of the token string public name; string public symbol; uint8 public decimals = 8; uint256 public totalSupply; // This creates an array with all balances mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; // This generates a public event on the blockchain that will notify clients event Transfer(address indexed from, address indexed to, uint256 value); // This notifies clients about the amount burnt event Burn(address indexed from, uint256 value); function TokenERC20(uint256 initialSupply, string tokenName, string tokenSymbol) public { totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount name = tokenName; // Set the name for display purposes symbol = tokenSymbol; // Set the symbol for display purposes } function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0x0); // Check for overflows // Save this for an assertion in the future uint previousBalances = balanceOf[_from].add(balanceOf[_to]); // Subtract from the sender balanceOf[_from] = balanceOf[_from].sub(_value); // Add the same to the recipient balanceOf[_to] = balanceOf[_to].add(_value); emit Transfer(_from, _to, _value); // Asserts are used to use static analysis to find bugs in your code. They should never fail assert(balanceOf[_from].add(balanceOf[_to]) == previousBalances); } function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value); _transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; } function burn(uint256 _value) public returns (bool success) { balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value); // Subtract from the sender totalSupply = totalSupply.sub(_value); // Updates totalSupply emit Burn(msg.sender, _value); return true; } function burnFrom(address _from, uint256 _value) public returns (bool success) { balanceOf[_from] = balanceOf[_from].sub(_value); // Subtract from the targeted balance allowance[_from][msg.sender] =allowance[_from][msg.sender].sub(_value); // Subtract from the sender's allowance totalSupply = totalSupply.sub(_value); // Update totalSupply emit Burn(_from, _value); return true; } } /******************************************/ /* TOCHToken STARTS HERE */ /******************************************/ contract TOCHToken is owned, TokenERC20 { //Modify these variables uint256 _initialSupply=10000000000; string _tokenName="Torchain"; string _tokenSymbol="TOCH"; address public lockedWallet = 0x731b7Ee0f5122535f7dA63887d78E0C202f6a082; uint256 public startTime; mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes contract with initial supply tokens to the creator of the contract */ function TOCHToken( ) TokenERC20(_initialSupply, _tokenName, _tokenSymbol) public { startTime = now; balanceOf[lockedWallet] = totalSupply; } function _transfer(address _from, address _to, uint _value) internal { require(_to != 0x0); bool lockedBalance = checkLockedBalance(_from,_value); require(lockedBalance); uint previousBalances = balanceOf[_from].add(balanceOf[_to]); balanceOf[_from] = balanceOf[_from].sub(_value); balanceOf[_to] = balanceOf[_to].add(_value); emit Transfer(_from, _to, _value); assert(balanceOf[_from].add(balanceOf[_to]) == previousBalances); } function checkLockedBalance(address wallet, uint256 _value) internal returns (bool){ if(wallet==lockedWallet){ if(now<startTime + 365 * 1 seconds){ return balanceOf[lockedWallet].sub(_value)>=totalSupply.mul(15).div(100)? true : false; }else{ return true; } }else{ return true; } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lockedWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"}],"name":"burnFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"frozenAccount","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]
Contract Creation Code
6003805460ff191660089081179091556402540be40060075560c060405260808190527f546f72636861696e00000000000000000000000000000000000000000000000060a0908152620000559190816200026c565b506040805180820190915260048082527f544f43480000000000000000000000000000000000000000000000000000000060209092019182526200009c916009916200026c565b50600a8054600160a060020a03191673731b7ee0f5122535f7da63887d78e0c202f6a082179055348015620000d057600080fd5b506007546008805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156200015e5780601f1062000132576101008083540402835291602001916200015e565b820191906000526020600020905b8154815290600101906020018083116200014057829003601f168201915b505060098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815295509193509150830182828015620001f05780601f10620001c457610100808354040283529160200191620001f0565b820191906000526020600020905b815481529060010190602001808311620001d257829003601f168201915b505060008054600160a060020a03191633179055505060035460ff16600a0a84026004555081516200022a9060019060208501906200026c565b508051620002409060029060208401906200026c565b505042600b555050600454600a54600160a060020a031660009081526005602052604090205562000311565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002af57805160ff1916838001178555620002df565b82800160010185558215620002df579182015b82811115620002df578251825591602001919060010190620002c2565b50620002ed929150620002f1565b5090565b6200030e91905b80821115620002ed5760008155600101620002f8565b90565b6109c480620003216000396000f3006080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b31461017457806318160ddd146101ac57806323b872dd146101d3578063313ce567146101fd57806342966c68146102285780634387d35a1461024057806370a082311461027157806378e979251461029257806379cc6790146102a75780638da5cb5b146102cb57806395d89b41146102e0578063a9059cbb146102f5578063b414d4b61461031b578063dd62ed3e1461033c578063f2fde38b14610363575b600080fd5b3480156100f657600080fd5b506100ff610384565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a0360043516602435610411565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c1610440565b60408051918252519081900360200190f35b3480156101df57600080fd5b50610198600160a060020a0360043581169060243516604435610446565b34801561020957600080fd5b506102126104b3565b6040805160ff9092168252519081900360200190f35b34801561023457600080fd5b506101986004356104bc565b34801561024c57600080fd5b50610255610540565b60408051600160a060020a039092168252519081900360200190f35b34801561027d57600080fd5b506101c1600160a060020a036004351661054f565b34801561029e57600080fd5b506101c1610561565b3480156102b357600080fd5b50610198600160a060020a0360043516602435610567565b3480156102d757600080fd5b5061025561064f565b3480156102ec57600080fd5b506100ff61065e565b34801561030157600080fd5b50610319600160a060020a03600435166024356106b6565b005b34801561032757600080fd5b50610198600160a060020a03600435166106c5565b34801561034857600080fd5b506101c1600160a060020a03600435811690602435166106da565b34801561036f57600080fd5b50610319600160a060020a03600435166106f7565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b820191906000526020600020905b8154815290600101906020018083116103ec57829003601f168201915b505050505081565b336000908152600660209081526040808320600160a060020a0386168452909152902081905560015b92915050565b60045481565b600160a060020a038316600090815260066020908152604080832033845290915281205461047a908363ffffffff61073d16565b600160a060020a03851660009081526006602090815260408083203384529091529020556104a984848461074f565b5060019392505050565b60035460ff1681565b336000908152600560205260408120546104dc908363ffffffff61073d16565b336000908152600560205260409020556004546104ff908363ffffffff61073d16565b60045560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b600a54600160a060020a031681565b60056020526000908152604090205481565b600b5481565b600160a060020a038216600090815260056020526040812054610590908363ffffffff61073d16565b600160a060020a03841660009081526005602090815260408083209390935560068152828220338352905220546105cd908363ffffffff61073d16565b600160a060020a0384166000908152600660209081526040808320338452909152902055600454610604908363ffffffff61073d16565b600455604080518381529051600160a060020a038516917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a250600192915050565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b6106c133838361074f565b5050565b600c6020526000908152604090205460ff1681565b600660209081526000928352604080842090915290825290205481565b600054600160a060020a0316331461070e57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561074957fe5b50900390565b600080600160a060020a038416151561076757600080fd5b61077185846108ac565b915081151561077f57600080fd5b600160a060020a038085166000908152600560205260408082205492881682529020546107b19163ffffffff61093c16565b600160a060020a0386166000908152600560205260409020549091506107dd908463ffffffff61073d16565b600160a060020a038087166000908152600560205260408082209390935590861681522054610812908463ffffffff61093c16565b600160a060020a0380861660008181526005602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3600160a060020a03808516600090815260056020526040808220549288168252902054829161089e919063ffffffff61093c16565b146108a557fe5b5050505050565b600a54600090600160a060020a038481169116141561093257600b5461016d01421015610932576108fa60646108ee600f60045461096090919063ffffffff16565b9063ffffffff61098116565b600a54600160a060020a0316600090815260056020526040902054610925908463ffffffff61073d16565b1015610932576000610935565b60015b905061043a565b60008282018381108015906109515750828110155b151561095957fe5b9392505050565b6000828202831580610951575082848281151561097957fe5b041461095957fe5b600080828481151561098f57fe5b049493505050505600a165627a7a72305820f5d6390eeda06064497c33ffa7a9cc9015f1dcf1f75a180668acf7761e80f7770029
Deployed Bytecode
0x6080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b31461017457806318160ddd146101ac57806323b872dd146101d3578063313ce567146101fd57806342966c68146102285780634387d35a1461024057806370a082311461027157806378e979251461029257806379cc6790146102a75780638da5cb5b146102cb57806395d89b41146102e0578063a9059cbb146102f5578063b414d4b61461031b578063dd62ed3e1461033c578063f2fde38b14610363575b600080fd5b3480156100f657600080fd5b506100ff610384565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a0360043516602435610411565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c1610440565b60408051918252519081900360200190f35b3480156101df57600080fd5b50610198600160a060020a0360043581169060243516604435610446565b34801561020957600080fd5b506102126104b3565b6040805160ff9092168252519081900360200190f35b34801561023457600080fd5b506101986004356104bc565b34801561024c57600080fd5b50610255610540565b60408051600160a060020a039092168252519081900360200190f35b34801561027d57600080fd5b506101c1600160a060020a036004351661054f565b34801561029e57600080fd5b506101c1610561565b3480156102b357600080fd5b50610198600160a060020a0360043516602435610567565b3480156102d757600080fd5b5061025561064f565b3480156102ec57600080fd5b506100ff61065e565b34801561030157600080fd5b50610319600160a060020a03600435166024356106b6565b005b34801561032757600080fd5b50610198600160a060020a03600435166106c5565b34801561034857600080fd5b506101c1600160a060020a03600435811690602435166106da565b34801561036f57600080fd5b50610319600160a060020a03600435166106f7565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b820191906000526020600020905b8154815290600101906020018083116103ec57829003601f168201915b505050505081565b336000908152600660209081526040808320600160a060020a0386168452909152902081905560015b92915050565b60045481565b600160a060020a038316600090815260066020908152604080832033845290915281205461047a908363ffffffff61073d16565b600160a060020a03851660009081526006602090815260408083203384529091529020556104a984848461074f565b5060019392505050565b60035460ff1681565b336000908152600560205260408120546104dc908363ffffffff61073d16565b336000908152600560205260409020556004546104ff908363ffffffff61073d16565b60045560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b600a54600160a060020a031681565b60056020526000908152604090205481565b600b5481565b600160a060020a038216600090815260056020526040812054610590908363ffffffff61073d16565b600160a060020a03841660009081526005602090815260408083209390935560068152828220338352905220546105cd908363ffffffff61073d16565b600160a060020a0384166000908152600660209081526040808320338452909152902055600454610604908363ffffffff61073d16565b600455604080518381529051600160a060020a038516917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a250600192915050565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b6106c133838361074f565b5050565b600c6020526000908152604090205460ff1681565b600660209081526000928352604080842090915290825290205481565b600054600160a060020a0316331461070e57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561074957fe5b50900390565b600080600160a060020a038416151561076757600080fd5b61077185846108ac565b915081151561077f57600080fd5b600160a060020a038085166000908152600560205260408082205492881682529020546107b19163ffffffff61093c16565b600160a060020a0386166000908152600560205260409020549091506107dd908463ffffffff61073d16565b600160a060020a038087166000908152600560205260408082209390935590861681522054610812908463ffffffff61093c16565b600160a060020a0380861660008181526005602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3600160a060020a03808516600090815260056020526040808220549288168252902054829161089e919063ffffffff61093c16565b146108a557fe5b5050505050565b600a54600090600160a060020a038481169116141561093257600b5461016d01421015610932576108fa60646108ee600f60045461096090919063ffffffff16565b9063ffffffff61098116565b600a54600160a060020a0316600090815260056020526040902054610925908463ffffffff61073d16565b1015610932576000610935565b60015b905061043a565b60008282018381108015906109515750828110155b151561095957fe5b9392505050565b6000828202831580610951575082848281151561097957fe5b041461095957fe5b600080828481151561098f57fe5b049493505050505600a165627a7a72305820f5d6390eeda06064497c33ffa7a9cc9015f1dcf1f75a180668acf7761e80f7770029
Swarm Source
bzzr://f5d6390eeda06064497c33ffa7a9cc9015f1dcf1f75a180668acf7761e80f777
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.