ERC-20
Overview
Max Total Supply
300,000,000 ECN
Holders
490
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 2 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EtherCarbon
Compiler Version
v0.4.13+commit.fb4cb1a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-07-18 */ /** * Ether Carbon Token, ERC20 compliant (see https://github.com/ethereum/EIPs/issues/20) * * Code is based on multiple sources: * https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/token/ERC20.sol * https://github.com/ConsenSys/Tokens/blob/master/Token_Contracts/contracts/HumanStandardToken.sol */ pragma solidity ^0.4.13; contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public getter functions are not currently recognised as an implementation of the matching abstract function by the compiler. */ /// total amount of tokens uint256 public totalSupply; /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance); /// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transfer(address _to, uint256 _value) returns (bool success); /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transferFrom(address _from, address _to, uint256 _value) returns (bool success); /// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not function approve(address _spender, uint256 _value) returns (bool success); /// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent function allowance(address _owner, address _spender) constant returns (uint256 remaining); event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } contract StandardToken is Token { function transfer(address _to, uint256 _value) returns (bool success) { require(_to != 0x00); if (balances[msg.sender] >= _value && _value > 0) { balances[msg.sender] -= _value; balances[_to] += _value; Transfer(msg.sender, _to, _value); return true; } else { return false; } } function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) { balances[_to] += _value; balances[_from] -= _value; allowed[_from][msg.sender] -= _value; Transfer(_from, _to, _value); return true; } else { return false; } } function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; } function approve(address _spender, uint256 _value) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowed[_owner][_spender]; } mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; address owner; } contract EtherCarbon is StandardToken { /* Public variables of the token */ string public name = " EtherCarbon"; uint256 public decimals = 2; string public symbol = "ECN"; event Mint(address indexed owner,uint amount); function EtherCarbon() { owner = 0x9362586f90abad2D25309033320C9Affc97AEb7D; /* Total supply is Five million (5,000,000)*/ balances[0x9362586f90abad2D25309033320C9Affc97AEb7D] = 5000000 * 10**decimals; totalSupply = 5000000 * 10**decimals; } function mint(uint amount) onlyOwner returns(bool minted ){ if (amount > 0){ totalSupply += amount; balances[owner] += amount; Mint(msg.sender,amount); return true; } return false; } modifier onlyOwner() { if (msg.sender != owner) revert(); _; } function setOwner(address _owner) onlyOwner{ balances[_owner] = balances[owner]; balances[owner] = 0; owner = _owner; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"mint","outputs":[{"name":"minted","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Mint","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":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
606060405260408051908101604052600c81527f204574686572436172626f6e00000000000000000000000000000000000000006020820152600490805161004b929160200190610110565b50600260055560408051908101604052600381527f45434e000000000000000000000000000000000000000000000000000000000060208201526006908051610098929160200190610110565b5034156100a457600080fd5b5b60038054739362586f90abad2d25309033320c9affc97aeb7d600160a060020a0319909116811790915560055460009182526001602052600a0a624c4b40027fcb0cb9e8020e4d617bf857e553d88b2b216da0832cb05e8bbf9f9a48d01ccf8381905590555b6101b0565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061015157805160ff191683800117855561017e565b8280016001018555821561017e579182015b8281111561017e578251825591602001919060010190610163565b5b5061018b92915061018f565b5090565b6101ad91905b8082111561018b5760008155600101610195565b5090565b90565b61085d806101bf6000396000f300606060405236156100ac5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b1578063095ea7b31461013c57806313af40351461017257806318160ddd1461019357806323b872dd146101b8578063313ce567146101f457806370a082311461021957806395d89b411461024a578063a0712d68146102d5578063a9059cbb146102ff578063dd62ed3e14610335575b600080fd5b34156100bc57600080fd5b6100c461036c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101015780820151818401525b6020016100e8565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014757600080fd5b61015e600160a060020a036004351660243561040a565b604051901515815260200160405180910390f35b341561017d57600080fd5b610191600160a060020a0360043516610477565b005b341561019e57600080fd5b6101a66104e9565b60405190815260200160405180910390f35b34156101c357600080fd5b61015e600160a060020a03600435811690602435166044356104ef565b604051901515815260200160405180910390f35b34156101ff57600080fd5b6101a66105e8565b60405190815260200160405180910390f35b341561022457600080fd5b6101a6600160a060020a03600435166105ee565b60405190815260200160405180910390f35b341561025557600080fd5b6100c461060d565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101015780820151818401525b6020016100e8565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102e057600080fd5b61015e6004356106ab565b604051901515815260200160405180910390f35b341561030a57600080fd5b61015e600160a060020a0360043516602435610743565b604051901515815260200160405180910390f35b341561034057600080fd5b6101a6600160a060020a0360043581169060243516610804565b60405190815260200160405180910390f35b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b505050505081565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035433600160a060020a0390811691161461049257600080fd5b60038054600160a060020a03908116600090815260016020526040808220548584168084528284209190915584549093168252812055815473ffffffffffffffffffffffffffffffffffffffff19161790555b5b50565b60005481565b600160a060020a03831660009081526001602052604081205482901080159061053f5750600160a060020a0380851660009081526002602090815260408083203390941683529290522054829010155b801561054b5750600082115b156105dc57600160a060020a03808416600081815260016020908152604080832080548801905588851680845281842080548990039055600283528184203390961684529490915290819020805486900390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016105e0565b5060005b5b9392505050565b60055481565b600160a060020a0381166000908152600160205260409020545b919050565b60068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b505050505081565b60035460009033600160a060020a039081169116146106c957600080fd5b6000821115610739576000805483018155600354600160a060020a03908116825260016020526040918290208054850190553316907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a2506001610608565b5060005b5b919050565b6000600160a060020a038316151561075a57600080fd5b600160a060020a0333166000908152600160205260409020548290108015906107835750600082115b156107f557600160a060020a033381166000818152600160205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3506001610471565b506000610471565b5b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b929150505600a165627a7a72305820f83bee81f5843b75c19e384f5e2676318f70a4b5b2df47147a53e87091c5eef30029
Deployed Bytecode
0x606060405236156100ac5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b1578063095ea7b31461013c57806313af40351461017257806318160ddd1461019357806323b872dd146101b8578063313ce567146101f457806370a082311461021957806395d89b411461024a578063a0712d68146102d5578063a9059cbb146102ff578063dd62ed3e14610335575b600080fd5b34156100bc57600080fd5b6100c461036c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101015780820151818401525b6020016100e8565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014757600080fd5b61015e600160a060020a036004351660243561040a565b604051901515815260200160405180910390f35b341561017d57600080fd5b610191600160a060020a0360043516610477565b005b341561019e57600080fd5b6101a66104e9565b60405190815260200160405180910390f35b34156101c357600080fd5b61015e600160a060020a03600435811690602435166044356104ef565b604051901515815260200160405180910390f35b34156101ff57600080fd5b6101a66105e8565b60405190815260200160405180910390f35b341561022457600080fd5b6101a6600160a060020a03600435166105ee565b60405190815260200160405180910390f35b341561025557600080fd5b6100c461060d565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101015780820151818401525b6020016100e8565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102e057600080fd5b61015e6004356106ab565b604051901515815260200160405180910390f35b341561030a57600080fd5b61015e600160a060020a0360043516602435610743565b604051901515815260200160405180910390f35b341561034057600080fd5b6101a6600160a060020a0360043581169060243516610804565b60405190815260200160405180910390f35b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b505050505081565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035433600160a060020a0390811691161461049257600080fd5b60038054600160a060020a03908116600090815260016020526040808220548584168084528284209190915584549093168252812055815473ffffffffffffffffffffffffffffffffffffffff19161790555b5b50565b60005481565b600160a060020a03831660009081526001602052604081205482901080159061053f5750600160a060020a0380851660009081526002602090815260408083203390941683529290522054829010155b801561054b5750600082115b156105dc57600160a060020a03808416600081815260016020908152604080832080548801905588851680845281842080548990039055600283528184203390961684529490915290819020805486900390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016105e0565b5060005b5b9392505050565b60055481565b600160a060020a0381166000908152600160205260409020545b919050565b60068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b505050505081565b60035460009033600160a060020a039081169116146106c957600080fd5b6000821115610739576000805483018155600354600160a060020a03908116825260016020526040918290208054850190553316907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a2506001610608565b5060005b5b919050565b6000600160a060020a038316151561075a57600080fd5b600160a060020a0333166000908152600160205260409020548290108015906107835750600082115b156107f557600160a060020a033381166000818152600160205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3506001610471565b506000610471565b5b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b929150505600a165627a7a72305820f83bee81f5843b75c19e384f5e2676318f70a4b5b2df47147a53e87091c5eef30029
Swarm Source
bzzr://f83bee81f5843b75c19e384f5e2676318f70a4b5b2df47147a53e87091c5eef3
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.