ETH Price: $3,343.30 (-1.05%)

Token

Torchain (TORC)
 

Overview

Max Total Supply

10,000,000,000 TORC

Holders

37

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Balance
3,958,852,000 TORC

Value
$0.00
0x731b7ee0f5122535f7da63887d78e0c202f6a082
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
TORCToken

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-09-07
*/

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;
	}


}

/******************************************/
/*       TORCToken STARTS HERE       */
/******************************************/

contract TORCToken is owned, TokenERC20  {

	//Modify these variables
	uint256 _initialSupply=10000000000; 
	string _tokenName="Torchain";
	string _tokenSymbol="TORC";
	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 TORCToken( ) 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 days){ //15% tokens locked first year
				return balanceOf[lockedWallet].sub(_value)>=totalSupply.mul(15).div(100)? true : false;
			}else{ 
				return true;
			}

		}else{
			return true;
		}
	}


}

Contract Security Audit

Contract ABI

[{"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"}]

6003805460ff191660089081179091556402540be40060075560c060405260808190527f546f72636861696e00000000000000000000000000000000000000000000000060a0908152620000559190816200026c565b506040805180820190915260048082527f544f52430000000000000000000000000000000000000000000000000000000060209092019182526200009c916009916200026c565b50600a8054600160a060020a03191673731b7ee0f5122535f7da63887d78e0c202f6a082179055348015620000d057600080fd5b506007546008805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156200015e5780601f1062000132576101008083540402835291602001916200015e565b820191906000526020600020905b8154815290600101906020018083116200014057829003601f168201915b505060098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815295509193509150830182828015620001f05780601f10620001c457610100808354040283529160200191620001f0565b820191906000526020600020905b815481529060010190602001808311620001d257829003601f168201915b505060008054600160a060020a03191633179055505060035460ff16600a0a84026004555081516200022a9060019060208501906200026c565b508051620002409060029060208401906200026c565b505042600b555050600454600a54600160a060020a031660009081526005602052604090205562000311565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002af57805160ff1916838001178555620002df565b82800160010185558215620002df579182015b82811115620002df578251825591602001919060010190620002c2565b50620002ed929150620002f1565b5090565b6200030e91905b80821115620002ed5760008155600101620002f8565b90565b6109c680620003216000396000f3006080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b31461017457806318160ddd146101ac57806323b872dd146101d3578063313ce567146101fd57806342966c68146102285780634387d35a1461024057806370a082311461027157806378e979251461029257806379cc6790146102a75780638da5cb5b146102cb57806395d89b41146102e0578063a9059cbb146102f5578063b414d4b61461031b578063dd62ed3e1461033c578063f2fde38b14610363575b600080fd5b3480156100f657600080fd5b506100ff610384565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a0360043516602435610411565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c1610440565b60408051918252519081900360200190f35b3480156101df57600080fd5b50610198600160a060020a0360043581169060243516604435610446565b34801561020957600080fd5b506102126104b3565b6040805160ff9092168252519081900360200190f35b34801561023457600080fd5b506101986004356104bc565b34801561024c57600080fd5b50610255610540565b60408051600160a060020a039092168252519081900360200190f35b34801561027d57600080fd5b506101c1600160a060020a036004351661054f565b34801561029e57600080fd5b506101c1610561565b3480156102b357600080fd5b50610198600160a060020a0360043516602435610567565b3480156102d757600080fd5b5061025561064f565b3480156102ec57600080fd5b506100ff61065e565b34801561030157600080fd5b50610319600160a060020a03600435166024356106b6565b005b34801561032757600080fd5b50610198600160a060020a03600435166106c5565b34801561034857600080fd5b506101c1600160a060020a03600435811690602435166106da565b34801561036f57600080fd5b50610319600160a060020a03600435166106f7565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b820191906000526020600020905b8154815290600101906020018083116103ec57829003601f168201915b505050505081565b336000908152600660209081526040808320600160a060020a0386168452909152902081905560015b92915050565b60045481565b600160a060020a038316600090815260066020908152604080832033845290915281205461047a908363ffffffff61073d16565b600160a060020a03851660009081526006602090815260408083203384529091529020556104a984848461074f565b5060019392505050565b60035460ff1681565b336000908152600560205260408120546104dc908363ffffffff61073d16565b336000908152600560205260409020556004546104ff908363ffffffff61073d16565b60045560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b600a54600160a060020a031681565b60056020526000908152604090205481565b600b5481565b600160a060020a038216600090815260056020526040812054610590908363ffffffff61073d16565b600160a060020a03841660009081526005602090815260408083209390935560068152828220338352905220546105cd908363ffffffff61073d16565b600160a060020a0384166000908152600660209081526040808320338452909152902055600454610604908363ffffffff61073d16565b600455604080518381529051600160a060020a038516917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a250600192915050565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b6106c133838361074f565b5050565b600c6020526000908152604090205460ff1681565b600660209081526000928352604080842090915290825290205481565b600054600160a060020a0316331461070e57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561074957fe5b50900390565b600080600160a060020a038416151561076757600080fd5b61077185846108ac565b915081151561077f57600080fd5b600160a060020a038085166000908152600560205260408082205492881682529020546107b19163ffffffff61093e16565b600160a060020a0386166000908152600560205260409020549091506107dd908463ffffffff61073d16565b600160a060020a038087166000908152600560205260408082209390935590861681522054610812908463ffffffff61093e16565b600160a060020a0380861660008181526005602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3600160a060020a03808516600090815260056020526040808220549288168252902054829161089e919063ffffffff61093e16565b146108a557fe5b5050505050565b600a54600090600160a060020a038481169116141561093457600b546301e1338001421015610934576108fc60646108f0600f60045461096290919063ffffffff16565b9063ffffffff61098316565b600a54600160a060020a0316600090815260056020526040902054610927908463ffffffff61073d16565b1015610934576000610937565b60015b905061043a565b60008282018381108015906109535750828110155b151561095b57fe5b9392505050565b6000828202831580610953575082848281151561097b57fe5b041461095b57fe5b600080828481151561099157fe5b049493505050505600a165627a7a72305820e74bd25f6ce494403fbfe27767acd2f3f423d2066a6a83bf9b61421de8cccbb00029

Deployed Bytecode

0x6080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b31461017457806318160ddd146101ac57806323b872dd146101d3578063313ce567146101fd57806342966c68146102285780634387d35a1461024057806370a082311461027157806378e979251461029257806379cc6790146102a75780638da5cb5b146102cb57806395d89b41146102e0578063a9059cbb146102f5578063b414d4b61461031b578063dd62ed3e1461033c578063f2fde38b14610363575b600080fd5b3480156100f657600080fd5b506100ff610384565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a0360043516602435610411565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c1610440565b60408051918252519081900360200190f35b3480156101df57600080fd5b50610198600160a060020a0360043581169060243516604435610446565b34801561020957600080fd5b506102126104b3565b6040805160ff9092168252519081900360200190f35b34801561023457600080fd5b506101986004356104bc565b34801561024c57600080fd5b50610255610540565b60408051600160a060020a039092168252519081900360200190f35b34801561027d57600080fd5b506101c1600160a060020a036004351661054f565b34801561029e57600080fd5b506101c1610561565b3480156102b357600080fd5b50610198600160a060020a0360043516602435610567565b3480156102d757600080fd5b5061025561064f565b3480156102ec57600080fd5b506100ff61065e565b34801561030157600080fd5b50610319600160a060020a03600435166024356106b6565b005b34801561032757600080fd5b50610198600160a060020a03600435166106c5565b34801561034857600080fd5b506101c1600160a060020a03600435811690602435166106da565b34801561036f57600080fd5b50610319600160a060020a03600435166106f7565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b820191906000526020600020905b8154815290600101906020018083116103ec57829003601f168201915b505050505081565b336000908152600660209081526040808320600160a060020a0386168452909152902081905560015b92915050565b60045481565b600160a060020a038316600090815260066020908152604080832033845290915281205461047a908363ffffffff61073d16565b600160a060020a03851660009081526006602090815260408083203384529091529020556104a984848461074f565b5060019392505050565b60035460ff1681565b336000908152600560205260408120546104dc908363ffffffff61073d16565b336000908152600560205260409020556004546104ff908363ffffffff61073d16565b60045560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b600a54600160a060020a031681565b60056020526000908152604090205481565b600b5481565b600160a060020a038216600090815260056020526040812054610590908363ffffffff61073d16565b600160a060020a03841660009081526005602090815260408083209390935560068152828220338352905220546105cd908363ffffffff61073d16565b600160a060020a0384166000908152600660209081526040808320338452909152902055600454610604908363ffffffff61073d16565b600455604080518381529051600160a060020a038516917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a250600192915050565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b6106c133838361074f565b5050565b600c6020526000908152604090205460ff1681565b600660209081526000928352604080842090915290825290205481565b600054600160a060020a0316331461070e57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561074957fe5b50900390565b600080600160a060020a038416151561076757600080fd5b61077185846108ac565b915081151561077f57600080fd5b600160a060020a038085166000908152600560205260408082205492881682529020546107b19163ffffffff61093e16565b600160a060020a0386166000908152600560205260409020549091506107dd908463ffffffff61073d16565b600160a060020a038087166000908152600560205260408082209390935590861681522054610812908463ffffffff61093e16565b600160a060020a0380861660008181526005602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3600160a060020a03808516600090815260056020526040808220549288168252902054829161089e919063ffffffff61093e16565b146108a557fe5b5050505050565b600a54600090600160a060020a038481169116141561093457600b546301e1338001421015610934576108fc60646108f0600f60045461096290919063ffffffff16565b9063ffffffff61098316565b600a54600160a060020a0316600090815260056020526040902054610927908463ffffffff61073d16565b1015610934576000610937565b60015b905061043a565b60008282018381108015906109535750828110155b151561095b57fe5b9392505050565b6000828202831580610953575082848281151561097b57fe5b041461095b57fe5b600080828481151561099157fe5b049493505050505600a165627a7a72305820e74bd25f6ce494403fbfe27767acd2f3f423d2066a6a83bf9b61421de8cccbb00029

Swarm Source

bzzr://e74bd25f6ce494403fbfe27767acd2f3f423d2066a6a83bf9b61421de8cccbb0
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.