ERC-20
Overview
Max Total Supply
7,800,150 MEVC3
Holders
3
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2,500,480 MEVC3Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MyTokenEVC
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-12-02 */ pragma solidity ^0.4.18; contract owned { address _owner; function owner() public constant returns (address) { return _owner; } function owned() public { _owner = msg.sender; } modifier onlyOwner { require(msg.sender == _owner); _; } function transferOwnership(address _newOwner) onlyOwner public { require(_newOwner != address(0)); _owner = _newOwner; } } interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract MyTokenEVC is owned { // Internal variables of the token string _name; string _symbol; uint8 _decimals = 18; uint256 _totalSupply; // This creates an array with all balances mapping (address => uint256) _balanceOf; mapping (address => mapping (address => uint256)) _allowance; mapping (address => bool) _frozenAccount; // 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); // This notifies clients frozen accounts event FrozenFunds(address target, bool frozen); /** * Constrctor function * * Initializes contract with initial supply tokens to the creator of the contract */ function MyTokenEVC() public { // Update total supply with the decimal amount _totalSupply = 0 * 10 ** uint256(_decimals); // Give the creator all initial tokens _balanceOf[msg.sender] = _totalSupply; // Set the name for display purposes _name = "MyTokenEVC 3"; // Set the symbol for display purposes _symbol = "MEVC3"; } /** * Returns token's name * */ function name() public constant returns (string) { return _name; } /** * Returns token's symbol * */ function symbol() public constant returns (string) { return _symbol; } /** * Returns token's total supply * */ function decimals() public constant returns (uint8) { return _decimals; } function totalSupply() public constant returns (uint256) { return _totalSupply; } /** * Returns balance of the give address * @param _tokenHolder Tokens holder address */ function balanceOf(address _tokenHolder) public constant returns (uint256) { return _balanceOf[_tokenHolder]; } /** * Returns allowance for the given owner and spender * @param _tokenOwner Tokens owner address * @param _spender Spender address */ function allowance(address _tokenOwner, address _spender) public constant returns (uint256) { return _allowance[_tokenOwner][_spender]; } /** * Check if the address is frozen * @param _account Address to be checked */ function frozenAccount(address _account) public constant returns (bool) { return _frozenAccount[_account]; } /** * Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint256 _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0x0); //Check for negative amount require(_value >= 0); // Check if the sender has enough require(_balanceOf[_from] >= _value); // Check for overflows require(_balanceOf[_to] + _value > _balanceOf[_to]); //Check if FrozenFunds require(!_frozenAccount[msg.sender]); // Save this for an assertion in the future uint previousBalances = _balanceOf[_from] + _balanceOf[_to]; // Subtract from the sender _balanceOf[_from] -= _value; // Add the same to the recipient _balanceOf[_to] += _value; Transfer(_from, _to, _value); // Asserts are used to use static analysis to find bugs in your code. They should never fail assert(_balanceOf[_from] + _balanceOf[_to] == previousBalances); } /** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */ function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); } /** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { // Check allowance if transfer not from own if (msg.sender != _from) { require(_allowance[_from][msg.sender] >= _value); _allowance[_from][msg.sender] -= _value; } _transfer(_from, _to, _value); return true; } /** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */ function approve(address _spender, uint256 _value) public returns (bool success) { //Check for negative amount require(_value >= 0); //Check the balance require(_balanceOf[msg.sender] >= _value); _allowance[msg.sender][_spender] = _value; return true; } /** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to send to the approved contract */ function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } } /** * @notice Destroy tokens from owener account, can be run only by owner * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */ function burn(uint256 _value) onlyOwner public returns (bool success) { burnFrom(_owner, _value); return true; } /** * @notice Destroy tokens from other account, can be run only by owner * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */ function burnFrom(address _from, uint256 _value) onlyOwner public returns (bool success) { //Check for negative amount require(_value >= 0); // Check if the targeted balance is enough require(_balanceOf[_from] >= _value); // Check total Supply require(_totalSupply >= _value); // Subtract from the targeted balance _balanceOf[_from] -= _value; // Update totalSupply _totalSupply -= _value; Burn(_from, _value); return true; } /** * @notice Create `mintedAmount` tokens and send it to `owner`, can be run only by owner * @param mintedAmount the amount of tokens it will receive */ function mintToken(uint256 mintedAmount) onlyOwner public { //Check for positive amount require(mintedAmount >= 0); _balanceOf[_owner] += mintedAmount; _totalSupply += mintedAmount; Transfer(0, _owner, mintedAmount); } /** * @notice Freeze or unfreeze account, can be run only by owner * @param target Account * @param freeze True to freeze, False to unfreeze */ function freezeAccount (address target, bool freeze) onlyOwner public { _frozenAccount[target] = freeze; FrozenFunds(target, freeze); } }
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":"_tokenHolder","type":"address"}],"name":"balanceOf","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":"_account","type":"address"}],"name":"frozenAccount","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"mintedAmount","type":"uint256"}],"name":"mintToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenOwner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","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":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"},{"anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","type":"event"}]
Contract Creation Code
60606040526003805460ff19166012179055341561001c57600080fd5b60008054600160a060020a03191633600160a060020a031690811782556004829055815260056020526040808220919091558051908101604052600c81527f4d79546f6b656e45564320330000000000000000000000000000000000000000602082015260019080516100939291602001906100e1565b5060408051908101604052600581527f4d45564333000000000000000000000000000000000000000000000000000000602082015260029080516100db9291602001906100e1565b5061017c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012257805160ff191683800117855561014f565b8280016001018555821561014f579182015b8281111561014f578251825591602001919060010190610134565b5061015b92915061015f565b5090565b61017991905b8082111561015b5760008155600101610165565b90565b610bb58061018b6000396000f3006060604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b557806323b872dd146101da578063313ce5671461020257806342966c681461022b57806370a082311461024157806379cc6790146102605780638da5cb5b1461028257806395d89b41146102b1578063a9059cbb146102c4578063b414d4b6146102e8578063c634d03214610307578063cae9ca511461031d578063dd62ed3e14610382578063e724529c146103a7578063f2fde38b146103cb575b600080fd5b341561010057600080fd5b6101086103ea565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014457808201518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018a57600080fd5b6101a1600160a060020a0360043516602435610492565b604051901515815260200160405180910390f35b34156101c057600080fd5b6101c86104f8565b60405190815260200160405180910390f35b34156101e557600080fd5b6101a1600160a060020a03600435811690602435166044356104fe565b341561020d57600080fd5b610215610592565b60405160ff909116815260200160405180910390f35b341561023657600080fd5b6101a160043561059b565b341561024c57600080fd5b6101c8600160a060020a03600435166105d6565b341561026b57600080fd5b6101a1600160a060020a03600435166024356105f1565b341561028d57600080fd5b6102956106b7565b604051600160a060020a03909116815260200160405180910390f35b34156102bc57600080fd5b6101086106c6565b34156102cf57600080fd5b6102e6600160a060020a0360043516602435610739565b005b34156102f357600080fd5b6101a1600160a060020a0360043516610748565b341561031257600080fd5b6102e6600435610766565b341561032857600080fd5b6101a160048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506107f595505050505050565b341561038d57600080fd5b6101c8600160a060020a0360043581169060243516610927565b34156103b257600080fd5b6102e6600160a060020a03600435166024351515610952565b34156103d657600080fd5b6102e6600160a060020a03600435166109de565b6103f2610b77565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104885780601f1061045d57610100808354040283529160200191610488565b820191906000526020600020905b81548152906001019060200180831161046b57829003601f168201915b5050505050905090565b6000808210156104a157600080fd5b600160a060020a033316600090815260056020526040902054829010156104c757600080fd5b50600160a060020a033381166000908152600660209081526040808320938616835292905220819055600192915050565b60045490565b600083600160a060020a031633600160a060020a031614151561057d57600160a060020a03808516600090815260066020908152604080832033909416835292905220548290101561054f57600080fd5b600160a060020a03808516600090815260066020908152604080832033909416835292905220805483900390555b610588848484610a3d565b5060019392505050565b60035460ff1690565b6000805433600160a060020a039081169116146105b757600080fd5b6000546105cd90600160a060020a0316836105f1565b50600192915050565b600160a060020a031660009081526005602052604090205490565b6000805433600160a060020a0390811691161461060d57600080fd5b600082101561061b57600080fd5b600160a060020a0383166000908152600560205260409020548290101561064157600080fd5b6004548290101561065157600080fd5b600160a060020a03831660008181526005602052604090819020805485900390556004805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a250600192915050565b600054600160a060020a031690565b6106ce610b77565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104885780601f1061045d57610100808354040283529160200191610488565b610744338383610a3d565b5050565b600160a060020a031660009081526007602052604090205460ff1690565b60005433600160a060020a0390811691161461078157600080fd5b600081101561078f57600080fd5b60008054600160a060020a039081168252600560205260408083208054850190556004805485019055825490911691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a350565b6000836108028185610492565b1561091f5780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156108b85780820151838201526020016108a0565b50505050905090810190601f1680156108e55780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b151561090657600080fd5b6102c65a03f1151561091757600080fd5b505050600191505b509392505050565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205490565b60005433600160a060020a0390811691161461096d57600080fd5b600160a060020a03821660009081526007602052604090819020805460ff19168315151790557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a5908390839051600160a060020a039092168252151560208201526040908101905180910390a15050565b60005433600160a060020a039081169116146109f957600080fd5b600160a060020a0381161515610a0e57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000600160a060020a0383161515610a5457600080fd5b6000821015610a6257600080fd5b600160a060020a03841660009081526005602052604090205482901015610a8857600080fd5b600160a060020a03831660009081526005602052604090205482810111610aae57600080fd5b600160a060020a03331660009081526007602052604090205460ff1615610ad457600080fd5b50600160a060020a0380831660008181526005602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a03808416600090815260056020526040808220549287168252902054018114610b7157fe5b50505050565b602060405190810160405260008152905600a165627a7a723058209c8a5ecfce7722dfde0fe1b7614344df6f385faa5bf44bf723562bbeeeb05a6a0029
Deployed Bytecode
0x6060604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b557806323b872dd146101da578063313ce5671461020257806342966c681461022b57806370a082311461024157806379cc6790146102605780638da5cb5b1461028257806395d89b41146102b1578063a9059cbb146102c4578063b414d4b6146102e8578063c634d03214610307578063cae9ca511461031d578063dd62ed3e14610382578063e724529c146103a7578063f2fde38b146103cb575b600080fd5b341561010057600080fd5b6101086103ea565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014457808201518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018a57600080fd5b6101a1600160a060020a0360043516602435610492565b604051901515815260200160405180910390f35b34156101c057600080fd5b6101c86104f8565b60405190815260200160405180910390f35b34156101e557600080fd5b6101a1600160a060020a03600435811690602435166044356104fe565b341561020d57600080fd5b610215610592565b60405160ff909116815260200160405180910390f35b341561023657600080fd5b6101a160043561059b565b341561024c57600080fd5b6101c8600160a060020a03600435166105d6565b341561026b57600080fd5b6101a1600160a060020a03600435166024356105f1565b341561028d57600080fd5b6102956106b7565b604051600160a060020a03909116815260200160405180910390f35b34156102bc57600080fd5b6101086106c6565b34156102cf57600080fd5b6102e6600160a060020a0360043516602435610739565b005b34156102f357600080fd5b6101a1600160a060020a0360043516610748565b341561031257600080fd5b6102e6600435610766565b341561032857600080fd5b6101a160048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506107f595505050505050565b341561038d57600080fd5b6101c8600160a060020a0360043581169060243516610927565b34156103b257600080fd5b6102e6600160a060020a03600435166024351515610952565b34156103d657600080fd5b6102e6600160a060020a03600435166109de565b6103f2610b77565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104885780601f1061045d57610100808354040283529160200191610488565b820191906000526020600020905b81548152906001019060200180831161046b57829003601f168201915b5050505050905090565b6000808210156104a157600080fd5b600160a060020a033316600090815260056020526040902054829010156104c757600080fd5b50600160a060020a033381166000908152600660209081526040808320938616835292905220819055600192915050565b60045490565b600083600160a060020a031633600160a060020a031614151561057d57600160a060020a03808516600090815260066020908152604080832033909416835292905220548290101561054f57600080fd5b600160a060020a03808516600090815260066020908152604080832033909416835292905220805483900390555b610588848484610a3d565b5060019392505050565b60035460ff1690565b6000805433600160a060020a039081169116146105b757600080fd5b6000546105cd90600160a060020a0316836105f1565b50600192915050565b600160a060020a031660009081526005602052604090205490565b6000805433600160a060020a0390811691161461060d57600080fd5b600082101561061b57600080fd5b600160a060020a0383166000908152600560205260409020548290101561064157600080fd5b6004548290101561065157600080fd5b600160a060020a03831660008181526005602052604090819020805485900390556004805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a250600192915050565b600054600160a060020a031690565b6106ce610b77565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104885780601f1061045d57610100808354040283529160200191610488565b610744338383610a3d565b5050565b600160a060020a031660009081526007602052604090205460ff1690565b60005433600160a060020a0390811691161461078157600080fd5b600081101561078f57600080fd5b60008054600160a060020a039081168252600560205260408083208054850190556004805485019055825490911691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a350565b6000836108028185610492565b1561091f5780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156108b85780820151838201526020016108a0565b50505050905090810190601f1680156108e55780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b151561090657600080fd5b6102c65a03f1151561091757600080fd5b505050600191505b509392505050565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205490565b60005433600160a060020a0390811691161461096d57600080fd5b600160a060020a03821660009081526007602052604090819020805460ff19168315151790557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a5908390839051600160a060020a039092168252151560208201526040908101905180910390a15050565b60005433600160a060020a039081169116146109f957600080fd5b600160a060020a0381161515610a0e57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000600160a060020a0383161515610a5457600080fd5b6000821015610a6257600080fd5b600160a060020a03841660009081526005602052604090205482901015610a8857600080fd5b600160a060020a03831660009081526005602052604090205482810111610aae57600080fd5b600160a060020a03331660009081526007602052604090205460ff1615610ad457600080fd5b50600160a060020a0380831660008181526005602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a03808416600090815260056020526040808220549287168252902054018114610b7157fe5b50505050565b602060405190810160405260008152905600a165627a7a723058209c8a5ecfce7722dfde0fe1b7614344df6f385faa5bf44bf723562bbeeeb05a6a0029
Swarm Source
bzzr://9c8a5ecfce7722dfde0fe1b7614344df6f385faa5bf44bf723562bbeeeb05a6a
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.