Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000 MKC
Holders
1,263
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MKC
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-08-21 */ pragma solidity ^0.4.17; /* Utilities & Common Modifiers */ contract Utils { constructor() public { } // verifies that an amount is greater than zero modifier greaterThanZero(uint256 _amount) { require(_amount > 0); _; } // validates an address - currently only checks that it isn't null modifier validAddress(address _address) { require(_address != 0x0); _; } // verifies that the address is different than this contract address modifier notThis(address _address) { require(_address != address(this)); _; } // Overflow protected math functions /** @dev returns the sum of _x and _y, asserts if the calculation overflows @param _x value 1 @param _y value 2 @return sum */ function safeAdd(uint256 _x, uint256 _y) internal pure returns (uint256) { uint256 z = _x + _y; assert(z >= _x); return z; } /** @dev returns the difference of _x minus _y, asserts if the subtraction results in a negative number @param _x minuend @param _y subtrahend @return difference */ function safeSub(uint256 _x, uint256 _y) internal pure returns (uint256) { assert(_x >= _y); return _x - _y; } /** @dev returns the product of multiplying _x by _y, asserts if the calculation overflows @param _x factor 1 @param _y factor 2 @return product */ function safeMul(uint256 _x, uint256 _y) internal pure returns (uint256) { uint256 z = _x * _y; assert(_x == 0 || z / _x == _y); return z; } } contract IOwned { // this function isn't abstract since the compiler emits automatically generated getter functions as external function owner() public pure returns (address) {} function transferOwnership(address _newOwner) public; function acceptOwnership() public; } contract Owned is IOwned { address public owner; address public newOwner; event OwnershipTransferred(address _prevOwner, address _newOwner); constructor() public { owner = msg.sender; } modifier onlyOwner { assert(msg.sender == owner); _; } function transferOwnership(address _newOwner) public onlyOwner { require(_newOwner != owner); newOwner = _newOwner; } function acceptOwnership() public { require(msg.sender == newOwner); emit OwnershipTransferred(owner, newOwner); owner = newOwner; newOwner = address(0); } } contract IToken { // these functions aren't abstract since the compiler emits automatically generated getter functions as external function name() public pure returns (string) {} function symbol() public pure returns (string) {} function decimals() public pure returns (uint8) {} function totalSupply() public pure returns (uint256) {} function balanceOf(address _owner) public pure returns (uint256) { _owner; } function allowance(address _owner, address _spender) public pure returns (uint256) { _owner; _spender; } function _transfer(address _from, address _to, uint256 _value) internal; function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _from, address _to, uint256 _value) public returns (bool success); function approve(address _spender, uint256 _value) public returns (bool success); } contract Token is IToken, Owned, Utils { string public standard = ''; string public name = ''; string public symbol = ''; uint8 public decimals = 0; uint256 public totalSupply = 0; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); constructor() public { name = 'MKC'; symbol = 'MKC'; decimals = 8; totalSupply = 1000000000 * 10 ** uint256(decimals); balanceOf[owner] = totalSupply; } function _transfer(address _from, address _to, uint256 _value) internal validAddress(_from) validAddress(_to) { require(balanceOf[_from] >= _value); require(balanceOf[_to] + _value > balanceOf[_to]); uint previousBalances = safeAdd(balanceOf[_from], balanceOf[_to]); balanceOf[_from] = safeSub(balanceOf[_from], _value); balanceOf[_to] += safeAdd(balanceOf[_to], _value); emit Transfer(_from, _to, _value); assert(balanceOf[_from] + balanceOf[_to] == previousBalances); } function transfer(address _to, uint256 _value) public validAddress(_to) returns (bool) { _transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) public validAddress(_from) validAddress(_to) returns (bool) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= safeSub(allowance[_from][msg.sender], _value); _transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public validAddress(_spender) returns (bool success) { require(_value == 0 || allowance[msg.sender][_spender] == 0); allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } } contract IMKC { function _transfer(address _from, address _to, uint256 _value) internal; function freezeAccount(address target, bool freeze) public; } contract SmartToken is Owned, Token { string public version = '1.0'; event NewSmartToken(address _token); constructor() public Token () { emit NewSmartToken(address(this)); } } contract MKC is IMKC, Token { mapping (address => bool) public frozenAccount; event FrozenFunds(address target, bool frozen); // triggered when a smart token is deployed - the _token address is defined for forward compatibility, in case we want to trigger the event from a factory event NewSmartToken(address _token); constructor() public Token () { emit NewSmartToken(address(this)); } function _transfer(address _from, address _to, uint _value) validAddress(_from) validAddress(_to) internal { require (balanceOf[_from] > _value); require (balanceOf[_to] + _value > balanceOf[_to]); require(!frozenAccount[_from]); require(!frozenAccount[_to]); balanceOf[_from] = safeSub(balanceOf[_from], _value); balanceOf[_to] = safeAdd(balanceOf[_to], _value); emit Transfer(_from, _to, _value); } function freezeAccount(address target, bool freeze) validAddress(target) public onlyOwner { frozenAccount[target] = freeze; emit 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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"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":false,"inputs":[],"name":"acceptOwnership","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":"","type":"address"}],"name":"frozenAccount","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"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":"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":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_token","type":"address"}],"name":"NewSmartToken","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"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_prevOwner","type":"address"},{"indexed":false,"name":"_newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
60a060408190526000608081905261001991600291610187565b5060408051602081019182905260009081905261003891600391610187565b5060408051602081019182905260009081905261005791600491610187565b506005805460ff19169055600060065534801561007357600080fd5b5060008054600160a060020a031916331790556040805180820190915260038082527f4d4b43000000000000000000000000000000000000000000000000000000000060209092019182526100c89181610187565b506040805180820190915260038082527f4d4b430000000000000000000000000000000000000000000000000000000000602090920191825261010d91600491610187565b5060058054600860ff19909116179081905560ff16600a0a633b9aca0002600681905560008054600160a060020a031681526007602090815260409182902092909255805130815290517ff4cd1f8571e8d9c97ffcb81558807ab73f9803d54de5da6a0420593c82a4a9f0929181900390910190a1610222565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101c857805160ff19168380011785556101f5565b828001600101855582156101f5579182015b828111156101f55782518255916020019190600101906101da565b50610201929150610205565b5090565b61021f91905b80821115610201576000815560010161020b565b90565b610a33806102316000396000f3006080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b31461017457806318160ddd146101ac57806323b872dd146101d3578063313ce567146101fd5780635a3b7e421461022857806370a082311461023d57806379ba50971461025e5780638da5cb5b1461027557806395d89b41146102a6578063a9059cbb146102bb578063b414d4b6146102df578063d4ee1d9014610300578063dd62ed3e14610315578063e724529c1461033c578063f2fde38b14610362575b600080fd5b3480156100f657600080fd5b506100ff610383565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a0360043516602435610411565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c16104ca565b60408051918252519081900360200190f35b3480156101df57600080fd5b50610198600160a060020a03600435811690602435166044356104d0565b34801561020957600080fd5b5061021261059e565b6040805160ff9092168252519081900360200190f35b34801561023457600080fd5b506100ff6105a7565b34801561024957600080fd5b506101c1600160a060020a03600435166105ff565b34801561026a57600080fd5b50610273610611565b005b34801561028157600080fd5b5061028a6106a8565b60408051600160a060020a039092168252519081900360200190f35b3480156102b257600080fd5b506100ff6106b7565b3480156102c757600080fd5b50610198600160a060020a0360043516602435610712565b3480156102eb57600080fd5b50610198600160a060020a036004351661073f565b34801561030c57600080fd5b5061028a610754565b34801561032157600080fd5b506101c1600160a060020a0360043581169060243516610763565b34801561034857600080fd5b50610273600160a060020a03600435166024351515610780565b34801561036e57600080fd5b50610273600160a060020a036004351661080f565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b820191906000526020600020905b8154815290600101906020018083116103ec57829003601f168201915b505050505081565b600082600160a060020a038116151561042957600080fd5b8215806104575750336000908152600860209081526040808320600160a060020a0388168452909152902054155b151561046257600080fd5b336000818152600860209081526040808320600160a060020a03891680855290835292819020879055805187815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b60065481565b600083600160a060020a03811615156104e857600080fd5b83600160a060020a03811615156104fe57600080fd5b600160a060020a038616600090815260086020908152604080832033845290915290205484111561052e57600080fd5b600160a060020a038616600090815260086020908152604080832033845290915290205461055c908561086d565b600160a060020a03871660009081526008602090815260408083203384529091529020805491909103905561059286868661087f565b50600195945050505050565b60055460ff1681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b60076020526000908152604090205481565b600154600160a060020a0316331461062857600080fd5b60005460015460408051600160a060020a03938416815292909116602083015280517f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09281900390910190a1600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600054600160a060020a031681565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b600082600160a060020a038116151561072a57600080fd5b61073533858561087f565b5060019392505050565b60096020526000908152604090205460ff1681565b600154600160a060020a031681565b600860209081526000928352604080842090915290825290205481565b81600160a060020a038116151561079657600080fd5b600054600160a060020a031633146107aa57fe5b600160a060020a038316600081815260096020908152604091829020805460ff191686151590811790915582519384529083015280517f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59281900390910190a1505050565b600054600160a060020a0316331461082357fe5b600054600160a060020a038281169116141561083e57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008183101561087957fe5b50900390565b82600160a060020a038116151561089557600080fd5b82600160a060020a03811615156108ab57600080fd5b600160a060020a03851660009081526007602052604090205483106108cf57600080fd5b600160a060020a038416600090815260076020526040902054838101116108f557600080fd5b600160a060020a03851660009081526009602052604090205460ff161561091b57600080fd5b600160a060020a03841660009081526009602052604090205460ff161561094157600080fd5b600160a060020a038516600090815260076020526040902054610964908461086d565b600160a060020a03808716600090815260076020526040808220939093559086168152205461099390846109f1565b600160a060020a0380861660008181526007602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35050505050565b600082820183811015610a0057fe5b93925050505600a165627a7a72305820881aca7d14f0ad5e69d10dad20187c032f68e7db0caa4a9cf30b726df1aa4a670029
Deployed Bytecode
0x6080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b31461017457806318160ddd146101ac57806323b872dd146101d3578063313ce567146101fd5780635a3b7e421461022857806370a082311461023d57806379ba50971461025e5780638da5cb5b1461027557806395d89b41146102a6578063a9059cbb146102bb578063b414d4b6146102df578063d4ee1d9014610300578063dd62ed3e14610315578063e724529c1461033c578063f2fde38b14610362575b600080fd5b3480156100f657600080fd5b506100ff610383565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a0360043516602435610411565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c16104ca565b60408051918252519081900360200190f35b3480156101df57600080fd5b50610198600160a060020a03600435811690602435166044356104d0565b34801561020957600080fd5b5061021261059e565b6040805160ff9092168252519081900360200190f35b34801561023457600080fd5b506100ff6105a7565b34801561024957600080fd5b506101c1600160a060020a03600435166105ff565b34801561026a57600080fd5b50610273610611565b005b34801561028157600080fd5b5061028a6106a8565b60408051600160a060020a039092168252519081900360200190f35b3480156102b257600080fd5b506100ff6106b7565b3480156102c757600080fd5b50610198600160a060020a0360043516602435610712565b3480156102eb57600080fd5b50610198600160a060020a036004351661073f565b34801561030c57600080fd5b5061028a610754565b34801561032157600080fd5b506101c1600160a060020a0360043581169060243516610763565b34801561034857600080fd5b50610273600160a060020a03600435166024351515610780565b34801561036e57600080fd5b50610273600160a060020a036004351661080f565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b820191906000526020600020905b8154815290600101906020018083116103ec57829003601f168201915b505050505081565b600082600160a060020a038116151561042957600080fd5b8215806104575750336000908152600860209081526040808320600160a060020a0388168452909152902054155b151561046257600080fd5b336000818152600860209081526040808320600160a060020a03891680855290835292819020879055805187815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b60065481565b600083600160a060020a03811615156104e857600080fd5b83600160a060020a03811615156104fe57600080fd5b600160a060020a038616600090815260086020908152604080832033845290915290205484111561052e57600080fd5b600160a060020a038616600090815260086020908152604080832033845290915290205461055c908561086d565b600160a060020a03871660009081526008602090815260408083203384529091529020805491909103905561059286868661087f565b50600195945050505050565b60055460ff1681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b60076020526000908152604090205481565b600154600160a060020a0316331461062857600080fd5b60005460015460408051600160a060020a03938416815292909116602083015280517f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09281900390910190a1600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600054600160a060020a031681565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104095780601f106103de57610100808354040283529160200191610409565b600082600160a060020a038116151561072a57600080fd5b61073533858561087f565b5060019392505050565b60096020526000908152604090205460ff1681565b600154600160a060020a031681565b600860209081526000928352604080842090915290825290205481565b81600160a060020a038116151561079657600080fd5b600054600160a060020a031633146107aa57fe5b600160a060020a038316600081815260096020908152604091829020805460ff191686151590811790915582519384529083015280517f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59281900390910190a1505050565b600054600160a060020a0316331461082357fe5b600054600160a060020a038281169116141561083e57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008183101561087957fe5b50900390565b82600160a060020a038116151561089557600080fd5b82600160a060020a03811615156108ab57600080fd5b600160a060020a03851660009081526007602052604090205483106108cf57600080fd5b600160a060020a038416600090815260076020526040902054838101116108f557600080fd5b600160a060020a03851660009081526009602052604090205460ff161561091b57600080fd5b600160a060020a03841660009081526009602052604090205460ff161561094157600080fd5b600160a060020a038516600090815260076020526040902054610964908461086d565b600160a060020a03808716600090815260076020526040808220939093559086168152205461099390846109f1565b600160a060020a0380861660008181526007602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35050505050565b600082820183811015610a0057fe5b93925050505600a165627a7a72305820881aca7d14f0ad5e69d10dad20187c032f68e7db0caa4a9cf30b726df1aa4a670029
Swarm Source
bzzr://881aca7d14f0ad5e69d10dad20187c032f68e7db0caa4a9cf30b726df1aa4a67
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.