ERC-20
Overview
Max Total Supply
10,000,000,000 MANX
Holders
35
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MANXERC20
Compiler Version
v0.4.25-nightly.2018.8.16+commit.a9e7ae29
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-08-23 */ pragma solidity ^0.4.24; contract ERC20Token{ //ERC20 base standard uint256 public totalSupply; function balanceOf(address _owner) public view returns (uint256 balance); 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); function allowance(address _owner, address _spender) public view returns (uint256 remaining); event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } contract Owned{ address public owner; address public newOwner; event OwnerUpdate(address _prevOwner, address _newOwner); /** @dev constructor */ constructor() public { owner = msg.sender; } // allows execution by the owner only modifier onlyOwner { assert(msg.sender == owner); _; } /** @dev allows transferring the contract ownership the new owner still need to accept the transfer can only be called by the contract owner @param _newOwner new contract owner */ function transferOwnership(address _newOwner) public onlyOwner { require(_newOwner != owner); newOwner = _newOwner; } /** @dev used by a new owner to accept an ownership transfer */ function acceptOwnership() public { require(msg.sender == newOwner); emit OwnerUpdate(owner, newOwner); owner = newOwner; newOwner = address(0); } } /* Overflow protected math functions */ contract SafeMath { /** constructor */ constructor() public{ } // Check if it is safe to add two numbers function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) { uint c = a + b; assert(c >= a && c >= b); return c; } // Check if it is safe to subtract two numbers function safeSub(uint256 a, uint256 b) internal pure returns (uint256) { uint c = a - b; assert(b <= a && c <= a); return c; } function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { uint c = a * b; assert(a == 0 || (c / a) == b); return c; } } contract MANXERC20 is SafeMath, ERC20Token, Owned { string public constant name = 'MacroChain Computing And Networking System'; // Set the token name for display string public constant symbol = 'MANX'; // Set the token symbol for display uint8 public constant decimals = 18; // Set the number of decimals for display uint256 public constant INITIAL_SUPPLY = 10000000000 * 10 ** uint256(decimals); uint256 public totalSupply; string public version = '2'; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; modifier rejectTokensToContract(address _to) { require(_to != address(this)); _; } constructor() public { totalSupply = INITIAL_SUPPLY; // Set the total supply balances[msg.sender] = INITIAL_SUPPLY; // Creator address is assigned all emit Transfer(address(0), msg.sender, INITIAL_SUPPLY); } function transfer(address _to, uint256 _value) rejectTokensToContract(_to) public returns (bool success) { require(_to != address(0)); require(_value <= balances[msg.sender]); balances[msg.sender] = safeSub(balances[msg.sender], _value); balances[_to] = safeAdd(balances[_to], _value); emit Transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) rejectTokensToContract(_to) public returns (bool success) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = safeSub(balances[_from],_value); balances[_to] = safeAdd(balances[_to],_value); allowed[_from][msg.sender] = safeSub(allowed[_from][msg.sender],_value); emit Transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { require((_value == 0) || (allowed[msg.sender][_spender] == 0)); allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowed[_owner][_spender]; } function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } function approveAndCallN(address _spender, uint256 _value, uint256 _extraNum) public returns (bool success) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); //to avoid the EVM decoding bug, the passed value set to a number if(!_spender.call(abi.encodeWithSelector(bytes4(bytes32(keccak256("receiveApproval(address,uint256,address,uint256)"))), msg.sender, _value, this, _extraNum))) { revert(); } return true; } function claimTokens(address _token) onlyOwner public { require(_token != address(0)); ERC20Token token = ERC20Token(_token); uint balance = token.balanceOf(address(this)); token.transfer(owner, balance); } }
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":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraNum","type":"uint256"}],"name":"approveAndCallN","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"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":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"_token","type":"address"}],"name":"claimTokens","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":"_prevOwner","type":"address"},{"indexed":false,"name":"_newOwner","type":"address"}],"name":"OwnerUpdate","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
60c0604052600160808190527f320000000000000000000000000000000000000000000000000000000000000060a090815261003e91600491906100bf565b5034801561004b57600080fd5b5060018054600160a060020a031916339081179091556b204fce5e3e250261100000006003819055600082815260056020908152604080832084905580519384525191927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a361015a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010057805160ff191683800117855561012d565b8280016001018555821561012d579182015b8281111561012d578251825591602001919060010190610112565b5061013992915061013d565b5090565b61015791905b808211156101395760008155600101610143565b90565b610d69806101696000396000f3fe6080604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101cc57806323b872dd146101f35780632ff2e9dc14610236578063313ce5671461024b5780634024eb2a1461027657806354fd4d50146102b557806370a08231146102ca57806379ba5097146102fd5780638da5cb5b1461031457806395d89b4114610345578063a9059cbb1461035a578063d4ee1d9014610393578063dd62ed3e146103a8578063df8de3e7146103e3578063f2fde38b14610416575b600080fd5b34801561010157600080fd5b5061010a610449565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014457818101518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018b57600080fd5b506101b8600480360360408110156101a257600080fd5b50600160a060020a0381351690602001356104a9565b604080519115158252519081900360200190f35b3480156101d857600080fd5b506101e161054b565b60408051918252519081900360200190f35b3480156101ff57600080fd5b506101b86004803603606081101561021657600080fd5b50600160a060020a03813581169160208101359091169060400135610551565b34801561024257600080fd5b506101e16106d0565b34801561025757600080fd5b506102606106e0565b6040805160ff9092168252519081900360200190f35b34801561028257600080fd5b506101b86004803603606081101561029957600080fd5b50600160a060020a0381351690602081013590604001356106e5565b3480156102c157600080fd5b5061010a610896565b3480156102d657600080fd5b506101e1600480360360208110156102ed57600080fd5b5035600160a060020a0316610924565b34801561030957600080fd5b5061031261093f565b005b34801561032057600080fd5b506103296109d6565b60408051600160a060020a039092168252519081900360200190f35b34801561035157600080fd5b5061010a6109e5565b34801561036657600080fd5b506101b86004803603604081101561037d57600080fd5b50600160a060020a038135169060200135610a1c565b34801561039f57600080fd5b50610329610b0b565b3480156103b457600080fd5b506101e1600480360360408110156103cb57600080fd5b50600160a060020a0381358116916020013516610b1a565b3480156103ef57600080fd5b506103126004803603602081101561040657600080fd5b5035600160a060020a0316610b45565b34801561042257600080fd5b506103126004803603602081101561043957600080fd5b5035600160a060020a0316610ca1565b606060405190810160405280602a81526020017f4d6163726f436861696e20436f6d707574696e6720416e64204e6574776f726b81526020017f696e672053797374656d0000000000000000000000000000000000000000000081525081565b60008115806104d95750336000908152600660209081526040808320600160a060020a0387168452909152902054155b15156104e457600080fd5b336000818152600660209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60035481565b600082600160a060020a03811630141561056a57600080fd5b600160a060020a038416151561057f57600080fd5b600160a060020a0385166000908152600560205260409020548311156105a457600080fd5b600160a060020a03851660009081526006602090815260408083203384529091529020548311156105d457600080fd5b600160a060020a0385166000908152600560205260409020546105f79084610cff565b600160a060020a0380871660009081526005602052604080822093909355908616815220546106269084610d23565b600160a060020a0380861660009081526005602090815260408083209490945591881681526006825282812033825290915220546106649084610cff565b600160a060020a03808716600081815260066020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b6b204fce5e3e2502611000000081565b601281565b336000818152600660209081526040808320600160a060020a038816808552908352818420879055815187815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a3604080517f72656365697665417070726f76616c28616464726573732c75696e743235362c81527f616464726573732c75696e74323536290000000000000000000000000000000060208083019190915282519182900360300182203360248401526044830187905230606484015260848084018790528451808503909101815260a4909301845290820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090921691909117815291518151600160a060020a0388169382918083835b6020831061084b5780518252601f19909201916020918201910161082c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af1915050151561088c57600080fd5b5060019392505050565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561091c5780601f106108f15761010080835404028352916020019161091c565b820191906000526020600020905b8154815290600101906020018083116108ff57829003601f168201915b505050505081565b600160a060020a031660009081526005602052604090205490565b600254600160a060020a0316331461095657600080fd5b60015460025460408051600160a060020a03938416815292909116602083015280517f343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a9281900390910190a1600280546001805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600154600160a060020a031681565b60408051808201909152600481527f4d414e5800000000000000000000000000000000000000000000000000000000602082015281565b600082600160a060020a038116301415610a3557600080fd5b600160a060020a0384161515610a4a57600080fd5b33600090815260056020526040902054831115610a6657600080fd5b33600090815260056020526040902054610a809084610cff565b3360009081526005602052604080822092909255600160a060020a03861681522054610aac9084610d23565b600160a060020a0385166000818152600560209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b600254600160a060020a031681565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205490565b600154600160a060020a03163314610b5957fe5b600160a060020a0381161515610b6e57600080fd5b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290518291600091600160a060020a038416916370a08231916024808301926020929190829003018186803b158015610bd257600080fd5b505afa158015610be6573d6000803e3d6000fd5b505050506040513d6020811015610bfc57600080fd5b5051600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810184905290519293509084169163a9059cbb916044808201926020929091908290030181600087803b158015610c7057600080fd5b505af1158015610c84573d6000803e3d6000fd5b505050506040513d6020811015610c9a57600080fd5b5050505050565b600154600160a060020a03163314610cb557fe5b600154600160a060020a0382811691161415610cd057600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000818303838311801590610d145750838111155b1515610d1c57fe5b9392505050565b6000828201838110801590610d14575082811015610d1c57fefea165627a7a72305820cb8ebc6c9f7e5dc9d3c0380d6988caecf384fcce9a35f71db614ed52d336b2060029
Deployed Bytecode
0x6080604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101cc57806323b872dd146101f35780632ff2e9dc14610236578063313ce5671461024b5780634024eb2a1461027657806354fd4d50146102b557806370a08231146102ca57806379ba5097146102fd5780638da5cb5b1461031457806395d89b4114610345578063a9059cbb1461035a578063d4ee1d9014610393578063dd62ed3e146103a8578063df8de3e7146103e3578063f2fde38b14610416575b600080fd5b34801561010157600080fd5b5061010a610449565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014457818101518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018b57600080fd5b506101b8600480360360408110156101a257600080fd5b50600160a060020a0381351690602001356104a9565b604080519115158252519081900360200190f35b3480156101d857600080fd5b506101e161054b565b60408051918252519081900360200190f35b3480156101ff57600080fd5b506101b86004803603606081101561021657600080fd5b50600160a060020a03813581169160208101359091169060400135610551565b34801561024257600080fd5b506101e16106d0565b34801561025757600080fd5b506102606106e0565b6040805160ff9092168252519081900360200190f35b34801561028257600080fd5b506101b86004803603606081101561029957600080fd5b50600160a060020a0381351690602081013590604001356106e5565b3480156102c157600080fd5b5061010a610896565b3480156102d657600080fd5b506101e1600480360360208110156102ed57600080fd5b5035600160a060020a0316610924565b34801561030957600080fd5b5061031261093f565b005b34801561032057600080fd5b506103296109d6565b60408051600160a060020a039092168252519081900360200190f35b34801561035157600080fd5b5061010a6109e5565b34801561036657600080fd5b506101b86004803603604081101561037d57600080fd5b50600160a060020a038135169060200135610a1c565b34801561039f57600080fd5b50610329610b0b565b3480156103b457600080fd5b506101e1600480360360408110156103cb57600080fd5b50600160a060020a0381358116916020013516610b1a565b3480156103ef57600080fd5b506103126004803603602081101561040657600080fd5b5035600160a060020a0316610b45565b34801561042257600080fd5b506103126004803603602081101561043957600080fd5b5035600160a060020a0316610ca1565b606060405190810160405280602a81526020017f4d6163726f436861696e20436f6d707574696e6720416e64204e6574776f726b81526020017f696e672053797374656d0000000000000000000000000000000000000000000081525081565b60008115806104d95750336000908152600660209081526040808320600160a060020a0387168452909152902054155b15156104e457600080fd5b336000818152600660209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60035481565b600082600160a060020a03811630141561056a57600080fd5b600160a060020a038416151561057f57600080fd5b600160a060020a0385166000908152600560205260409020548311156105a457600080fd5b600160a060020a03851660009081526006602090815260408083203384529091529020548311156105d457600080fd5b600160a060020a0385166000908152600560205260409020546105f79084610cff565b600160a060020a0380871660009081526005602052604080822093909355908616815220546106269084610d23565b600160a060020a0380861660009081526005602090815260408083209490945591881681526006825282812033825290915220546106649084610cff565b600160a060020a03808716600081815260066020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b6b204fce5e3e2502611000000081565b601281565b336000818152600660209081526040808320600160a060020a038816808552908352818420879055815187815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a3604080517f72656365697665417070726f76616c28616464726573732c75696e743235362c81527f616464726573732c75696e74323536290000000000000000000000000000000060208083019190915282519182900360300182203360248401526044830187905230606484015260848084018790528451808503909101815260a4909301845290820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090921691909117815291518151600160a060020a0388169382918083835b6020831061084b5780518252601f19909201916020918201910161082c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af1915050151561088c57600080fd5b5060019392505050565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561091c5780601f106108f15761010080835404028352916020019161091c565b820191906000526020600020905b8154815290600101906020018083116108ff57829003601f168201915b505050505081565b600160a060020a031660009081526005602052604090205490565b600254600160a060020a0316331461095657600080fd5b60015460025460408051600160a060020a03938416815292909116602083015280517f343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a9281900390910190a1600280546001805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600154600160a060020a031681565b60408051808201909152600481527f4d414e5800000000000000000000000000000000000000000000000000000000602082015281565b600082600160a060020a038116301415610a3557600080fd5b600160a060020a0384161515610a4a57600080fd5b33600090815260056020526040902054831115610a6657600080fd5b33600090815260056020526040902054610a809084610cff565b3360009081526005602052604080822092909255600160a060020a03861681522054610aac9084610d23565b600160a060020a0385166000818152600560209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b600254600160a060020a031681565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205490565b600154600160a060020a03163314610b5957fe5b600160a060020a0381161515610b6e57600080fd5b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290518291600091600160a060020a038416916370a08231916024808301926020929190829003018186803b158015610bd257600080fd5b505afa158015610be6573d6000803e3d6000fd5b505050506040513d6020811015610bfc57600080fd5b5051600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810184905290519293509084169163a9059cbb916044808201926020929091908290030181600087803b158015610c7057600080fd5b505af1158015610c84573d6000803e3d6000fd5b505050506040513d6020811015610c9a57600080fd5b5050505050565b600154600160a060020a03163314610cb557fe5b600154600160a060020a0382811691161415610cd057600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000818303838311801590610d145750838111155b1515610d1c57fe5b9392505050565b6000828201838110801590610d14575082811015610d1c57fefea165627a7a72305820cb8ebc6c9f7e5dc9d3c0380d6988caecf384fcce9a35f71db614ed52d336b2060029
Swarm Source
bzzr://cb8ebc6c9f7e5dc9d3c0380d6988caecf384fcce9a35f71db614ed52d336b206
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.