ETH Price: $3,165.78 (-7.57%)

Token

Energy Saving Chain (ENSA)
 

Overview

Max Total Supply

2,100,000,000 ENSA

Holders

1,676

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 ENSA

Value
$0.00
0x0ee2fe4e0ed93f5eb4f9658dee9b5a094c002111
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:
ENSATOKEN

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.18;

contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) public constant returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public constant returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract Ownable {
  address public owner;
  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
  function Ownable() public {
    owner = msg.sender;
  }

  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  function transferOwnership(address newOwner) onlyOwner public {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }
}

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);
    return c;
  }
}

contract ENSATOKEN is ERC20,Ownable{
	using SafeMath for uint256;
	string public constant name="Energy Saving Chain ";
	string public symbol="ENSA";
	string public constant version = "1.0";
	uint256 public constant decimals = 18;
	uint256 public totalSupply;
	uint256 public constant MAX_SUPPLY=2100000000*10**decimals;
  mapping(address => uint256) balances;
	mapping (address => mapping (address => uint256)) allowed;

	event GetETH(address indexed _from, uint256 _value);

	function ENSATOKEN() public {
		totalSupply=MAX_SUPPLY;
		balances[msg.sender] = MAX_SUPPLY;
		Transfer(0x0, msg.sender, MAX_SUPPLY);
	}

	function () payable external
	{
		GetETH(msg.sender,msg.value);
	}

	function etherProceeds() external
		onlyOwner
	{
		if(!msg.sender.send(this.balance)) revert();
	}

  	function transfer(address _to, uint256 _value) public  returns (bool)
 	{
		require(_to != address(0));
		balances[msg.sender] = balances[msg.sender].sub(_value);
		balances[_to] = balances[_to].add(_value);
		Transfer(msg.sender, _to, _value);
		return true;
  	}

  	function balanceOf(address _owner) public constant returns (uint256 balance) 
  	{
		return balances[_owner];
  	}

  	function transferFrom(address _from, address _to, uint256 _value) public returns (bool) 
  	{
		require(_to != address(0));
		uint256 _allowance = allowed[_from][msg.sender];

		balances[_from] = balances[_from].sub(_value);
		balances[_to] = balances[_to].add(_value);
		allowed[_from][msg.sender] = _allowance.sub(_value);
		Transfer(_from, _to, _value);
		return true;
  	}

  	function approve(address _spender, uint256 _value) public returns (bool) 
  	{
		allowed[msg.sender][_spender] = _value;
		Approval(msg.sender, _spender, _value);
		return true;
  	}

  	function allowance(address _owner, address _spender) public constant returns (uint256 remaining) 
  	{
		return allowed[_owner][_spender];
  	}
}

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":"","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"etherProceeds","outputs":[],"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":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"GetETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","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"}]

606060405260408051908101604052600481527f454e5341000000000000000000000000000000000000000000000000000000006020820152600290805161004b9291602001906100d1565b50341561005757600080fd5b60018054600160a060020a03191633600160a060020a03169081179091556b06c9144c1c690d4cb4000000600381905560008281526004602052604080822083905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef915190815260200160405180910390a361016c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011257805160ff191683800117855561013f565b8280016001018555821561013f579182015b8281111561013f578251825591602001919060010190610124565b5061014b92915061014f565b5090565b61016991905b8082111561014b5760008155600101610155565b90565b6108618061017b6000396000f3006060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010e578063095ea7b31461019857806318160ddd146101ce57806323b872dd146101f3578063313ce5671461021b57806332cb6b0c1461022e57806354fd4d501461024157806370a0823114610254578063801aba56146102735780638da5cb5b1461028857806395d89b41146102b7578063a9059cbb146102ca578063dd62ed3e146102ec578063f2fde38b14610311575b33600160a060020a03167f59cbf1251d8592510b5a3df66c42ab0664604d319dcd3202a097a04a1cfbda083460405190815260200160405180910390a2005b341561011957600080fd5b610121610330565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561015d578082015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a357600080fd5b6101ba600160a060020a0360043516602435610367565b604051901515815260200160405180910390f35b34156101d957600080fd5b6101e16103d3565b60405190815260200160405180910390f35b34156101fe57600080fd5b6101ba600160a060020a03600435811690602435166044356103d9565b341561022657600080fd5b6101e1610503565b341561023957600080fd5b6101e1610508565b341561024c57600080fd5b610121610518565b341561025f57600080fd5b6101e1600160a060020a036004351661054f565b341561027e57600080fd5b61028661056a565b005b341561029357600080fd5b61029b6105c4565b604051600160a060020a03909116815260200160405180910390f35b34156102c257600080fd5b6101216105d3565b34156102d557600080fd5b6101ba600160a060020a0360043516602435610671565b34156102f757600080fd5b6101e1600160a060020a0360043581169060243516610747565b341561031c57600080fd5b610286600160a060020a0360043516610772565b60408051908101604052601481527f456e6572677920536176696e6720436861696e20000000000000000000000000602082015281565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600080600160a060020a03841615156103f157600080fd5b50600160a060020a03808516600081815260056020908152604080832033909516835293815283822054928252600490529190912054610437908463ffffffff61080d16565b600160a060020a03808716600090815260046020526040808220939093559086168152205461046c908463ffffffff61081f16565b600160a060020a038516600090815260046020526040902055610495818463ffffffff61080d16565b600160a060020a03808716600081815260056020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b601281565b6b06c9144c1c690d4cb400000081565b60408051908101604052600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a031660009081526004602052604090205490565b60015433600160a060020a0390811691161461058557600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f1935050505015156105c257600080fd5b565b600154600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106695780601f1061063e57610100808354040283529160200191610669565b820191906000526020600020905b81548152906001019060200180831161064c57829003601f168201915b505050505081565b6000600160a060020a038316151561068857600080fd5b600160a060020a0333166000908152600460205260409020546106b1908363ffffffff61080d16565b600160a060020a0333811660009081526004602052604080822093909355908516815220546106e6908363ffffffff61081f16565b600160a060020a0380851660008181526004602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b60015433600160a060020a0390811691161461078d57600080fd5b600160a060020a03811615156107a257600080fd5b600154600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561081957fe5b50900390565b60008282018381101561082e57fe5b93925050505600a165627a7a723058208d8c40dd50cca482b048af06cbad8d0d09a316bb1c7c64a3a39e6e37963de7dc0029

Deployed Bytecode

0x6060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010e578063095ea7b31461019857806318160ddd146101ce57806323b872dd146101f3578063313ce5671461021b57806332cb6b0c1461022e57806354fd4d501461024157806370a0823114610254578063801aba56146102735780638da5cb5b1461028857806395d89b41146102b7578063a9059cbb146102ca578063dd62ed3e146102ec578063f2fde38b14610311575b33600160a060020a03167f59cbf1251d8592510b5a3df66c42ab0664604d319dcd3202a097a04a1cfbda083460405190815260200160405180910390a2005b341561011957600080fd5b610121610330565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561015d578082015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a357600080fd5b6101ba600160a060020a0360043516602435610367565b604051901515815260200160405180910390f35b34156101d957600080fd5b6101e16103d3565b60405190815260200160405180910390f35b34156101fe57600080fd5b6101ba600160a060020a03600435811690602435166044356103d9565b341561022657600080fd5b6101e1610503565b341561023957600080fd5b6101e1610508565b341561024c57600080fd5b610121610518565b341561025f57600080fd5b6101e1600160a060020a036004351661054f565b341561027e57600080fd5b61028661056a565b005b341561029357600080fd5b61029b6105c4565b604051600160a060020a03909116815260200160405180910390f35b34156102c257600080fd5b6101216105d3565b34156102d557600080fd5b6101ba600160a060020a0360043516602435610671565b34156102f757600080fd5b6101e1600160a060020a0360043581169060243516610747565b341561031c57600080fd5b610286600160a060020a0360043516610772565b60408051908101604052601481527f456e6572677920536176696e6720436861696e20000000000000000000000000602082015281565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600080600160a060020a03841615156103f157600080fd5b50600160a060020a03808516600081815260056020908152604080832033909516835293815283822054928252600490529190912054610437908463ffffffff61080d16565b600160a060020a03808716600090815260046020526040808220939093559086168152205461046c908463ffffffff61081f16565b600160a060020a038516600090815260046020526040902055610495818463ffffffff61080d16565b600160a060020a03808716600081815260056020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b601281565b6b06c9144c1c690d4cb400000081565b60408051908101604052600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a031660009081526004602052604090205490565b60015433600160a060020a0390811691161461058557600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f1935050505015156105c257600080fd5b565b600154600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106695780601f1061063e57610100808354040283529160200191610669565b820191906000526020600020905b81548152906001019060200180831161064c57829003601f168201915b505050505081565b6000600160a060020a038316151561068857600080fd5b600160a060020a0333166000908152600460205260409020546106b1908363ffffffff61080d16565b600160a060020a0333811660009081526004602052604080822093909355908516815220546106e6908363ffffffff61081f16565b600160a060020a0380851660008181526004602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b60015433600160a060020a0390811691161461078d57600080fd5b600160a060020a03811615156107a257600080fd5b600154600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561081957fe5b50900390565b60008282018381101561082e57fe5b93925050505600a165627a7a723058208d8c40dd50cca482b048af06cbad8d0d09a316bb1c7c64a3a39e6e37963de7dc0029

Swarm Source

bzzr://8d8c40dd50cca482b048af06cbad8d0d09a316bb1c7c64a3a39e6e37963de7dc
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.