ERC-20
Overview
Max Total Supply
5,000,000,000 GBC
Holders
61
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 Source Code Verified (Exact Match)
Contract Name:
GlobalCoin
Compiler Version
v0.5.11+commit.c082d0b4
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-04-22 */ pragma solidity 0.5.11; contract ITokenRecipient { function tokenFallback(address from, uint value) public; } contract SafeMath { uint256 constant public MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; function safeAdd(uint256 x, uint256 y) pure internal returns (uint256 z) { if (x > MAX_UINT256 - y) revert(); return x + y; } function safeSub(uint256 x, uint256 y) pure internal returns (uint256 z) { if (x < y) revert(); return x - y; } } contract GlobalCoin is SafeMath { mapping(address => uint) public balances; mapping (address => mapping (address => uint256)) public allowance; string public name = "Global Coin"; string public symbol = "GBC"; uint8 public decimals = 18; uint256 public totalSupply = 5000000000000000000000000000; event Transfer(address indexed from, address indexed to, uint value); event Burn(address indexed from, uint256 value); constructor() public { balances[msg.sender] = totalSupply; } function isContract(address ethAddress) private view returns (bool) { uint length; assembly { length := extcodesize(ethAddress) } return (length > 0); } function transfer(address to, uint value) public returns (bool success) { require(value > 0); balances[msg.sender] = safeSub(balances[msg.sender], value); balances[to] = safeAdd(balances[to], value); if(isContract(to)) { ITokenRecipient receiver = ITokenRecipient(to); receiver.tokenFallback(msg.sender, value); } emit Transfer(msg.sender, to, value); return true; } function approve(address spender, uint256 value) public returns (bool success) { require(value > 0); allowance[msg.sender][spender] = value; return true; } function transferFrom(address fromAddress, address toAddress, uint256 value) public returns (bool success) { require(uint256(toAddress) != 0 && value > 0); balances[fromAddress] = safeSub(balances[fromAddress], value); balances[toAddress] = safeAdd(balances[toAddress], value); allowance[fromAddress][msg.sender] = safeSub(allowance[fromAddress][msg.sender], value); emit Transfer(fromAddress, toAddress, value); return true; } function burn(uint256 value) public returns (bool success) { require(value > 0); balances[msg.sender] = safeSub(balances[msg.sender], value); totalSupply = safeSub(totalSupply,value); emit Burn(msg.sender, value); return true; } function balanceOf(address ethAddress) public view returns (uint balance) { return balances[ethAddress]; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"fromAddress","type":"address"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","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":"MAX_UINT256","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"ethAddress","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Burn","type":"event"}]
Contract Creation Code
60c0604052600b60808190527f476c6f62616c20436f696e00000000000000000000000000000000000000000060a090815261003e91600291906100c4565b506040805180820190915260038082527f4742430000000000000000000000000000000000000000000000000000000000602090920191825261008191816100c4565b506004805460ff191660121790556b1027e72f1f128130880000006005553480156100ab57600080fd5b506005543360009081526020819052604090205561015f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010557805160ff1916838001178555610132565b82800160010185558215610132579182015b82811115610132578251825591602001919060010190610117565b5061013e929150610142565b5090565b61015c91905b8082111561013e5760008155600101610148565b90565b61076b8061016e6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806333a581d21161007157806333a581d21461020a57806342966c681461021257806370a082311461022f57806395d89b4114610255578063a9059cbb1461025d578063dd62ed3e14610289576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd1461019057806327e235e3146101c6578063313ce567146101ec575b600080fd5b6100c16102b7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610342565b604080519115158252519081900360200190f35b61017e61037b565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b03813581169160208101359091169060400135610381565b61017e600480360360208110156101dc57600080fd5b50356001600160a01b031661049d565b6101f46104af565b6040805160ff9092168252519081900360200190f35b61017e6104b8565b6101626004803603602081101561022857600080fd5b50356104be565b61017e6004803603602081101561024557600080fd5b50356001600160a01b0316610544565b6100c161055f565b6101626004803603604081101561027357600080fd5b506001600160a01b0381351690602001356105ba565b61017e6004803603604081101561029f57600080fd5b506001600160a01b03813581169160200135166106e9565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561033a5780601f1061030f5761010080835404028352916020019161033a565b820191906000526020600020905b81548152906001019060200180831161031d57829003601f168201915b505050505081565b600080821161035057600080fd5b503360009081526001602081815260408084206001600160a01b039690961684529490529290205590565b60055481565b60006001600160a01b0383161580159061039b5750600082115b6103a457600080fd5b6001600160a01b0384166000908152602081905260409020546103c79083610706565b6001600160a01b0380861660009081526020819052604080822093909355908516815220546103f6908361071b565b6001600160a01b038085166000908152602081815260408083209490945591871681526001825282812033825290915220546104329083610706565b6001600160a01b03808616600081815260016020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60006020819052908152604090205481565b60045460ff1681565b60001981565b60008082116104cc57600080fd5b336000908152602081905260409020546104e69083610706565b336000908152602081905260409020556005546105039083610706565b60055560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b6001600160a01b031660009081526020819052604090205490565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561033a5780601f1061030f5761010080835404028352916020019161033a565b60008082116105c857600080fd5b336000908152602081905260409020546105e29083610706565b33600090815260208190526040808220929092556001600160a01b0385168152205461060e908361071b565b6001600160a01b03841660009081526020819052604090205561063083610730565b156106a05760408051633b66d02b60e01b815233600482015260248101849052905184916001600160a01b03831691633b66d02b9160448082019260009290919082900301818387803b15801561068657600080fd5b505af115801561069a573d6000803e3d6000fd5b50505050505b6040805183815290516001600160a01b0385169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b600160209081526000928352604080842090915290825290205481565b60008183101561071557600080fd5b50900390565b6000811983111561072b57600080fd5b500190565b3b15159056fea265627a7a72315820fceecfa300ead19aaad1268222ea89c342401083c86774bf726ceb392d28c0e864736f6c634300050b0032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806333a581d21161007157806333a581d21461020a57806342966c681461021257806370a082311461022f57806395d89b4114610255578063a9059cbb1461025d578063dd62ed3e14610289576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd1461019057806327e235e3146101c6578063313ce567146101ec575b600080fd5b6100c16102b7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610342565b604080519115158252519081900360200190f35b61017e61037b565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b03813581169160208101359091169060400135610381565b61017e600480360360208110156101dc57600080fd5b50356001600160a01b031661049d565b6101f46104af565b6040805160ff9092168252519081900360200190f35b61017e6104b8565b6101626004803603602081101561022857600080fd5b50356104be565b61017e6004803603602081101561024557600080fd5b50356001600160a01b0316610544565b6100c161055f565b6101626004803603604081101561027357600080fd5b506001600160a01b0381351690602001356105ba565b61017e6004803603604081101561029f57600080fd5b506001600160a01b03813581169160200135166106e9565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561033a5780601f1061030f5761010080835404028352916020019161033a565b820191906000526020600020905b81548152906001019060200180831161031d57829003601f168201915b505050505081565b600080821161035057600080fd5b503360009081526001602081815260408084206001600160a01b039690961684529490529290205590565b60055481565b60006001600160a01b0383161580159061039b5750600082115b6103a457600080fd5b6001600160a01b0384166000908152602081905260409020546103c79083610706565b6001600160a01b0380861660009081526020819052604080822093909355908516815220546103f6908361071b565b6001600160a01b038085166000908152602081815260408083209490945591871681526001825282812033825290915220546104329083610706565b6001600160a01b03808616600081815260016020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60006020819052908152604090205481565b60045460ff1681565b60001981565b60008082116104cc57600080fd5b336000908152602081905260409020546104e69083610706565b336000908152602081905260409020556005546105039083610706565b60055560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b6001600160a01b031660009081526020819052604090205490565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561033a5780601f1061030f5761010080835404028352916020019161033a565b60008082116105c857600080fd5b336000908152602081905260409020546105e29083610706565b33600090815260208190526040808220929092556001600160a01b0385168152205461060e908361071b565b6001600160a01b03841660009081526020819052604090205561063083610730565b156106a05760408051633b66d02b60e01b815233600482015260248101849052905184916001600160a01b03831691633b66d02b9160448082019260009290919082900301818387803b15801561068657600080fd5b505af115801561069a573d6000803e3d6000fd5b50505050505b6040805183815290516001600160a01b0385169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b600160209081526000928352604080842090915290825290205481565b60008183101561071557600080fd5b50900390565b6000811983111561072b57600080fd5b500190565b3b15159056fea265627a7a72315820fceecfa300ead19aaad1268222ea89c342401083c86774bf726ceb392d28c0e864736f6c634300050b0032
Deployed Bytecode Sourcemap
534:2326:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;534:2326:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;699:34;;;:::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;699:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1749:187;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1749:187:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;808:57;;;:::i;:::-;;;;;;;;;;;;;;;;1948:486;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1948:486:0;;;;;;;;;;;;;;;;;:::i;573:40::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;573:40:0;-1:-1:-1;;;;;573:40:0;;:::i;775:26::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;142:104;;;:::i;2446:279::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2446:279:0;;:::i;2737:120::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2737:120:0;-1:-1:-1;;;;;2737:120:0;;:::i;740:28::-;;;:::i;1277:460::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1277:460:0;;;;;;;;:::i;620:66::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;620:66:0;;;;;;;;;;:::i;699:34::-;;;;;;;;;;;;;;-1:-1:-1;;699:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1749:187::-;1814:12;1855:1;1847:5;:9;1839:18;;;;;;-1:-1:-1;1878:10:0;1868:21;;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1868:30:0;;;;;;;;;;;;:38;:9;1749:187::o;808:57::-;;;;:::o;1948:486::-;2041:12;-1:-1:-1;;;;;2074:18:0;;:23;;;;:36;;;2109:1;2101:5;:9;2074:36;2066:45;;;;;;-1:-1:-1;;;;;2154:21:0;;:8;:21;;;;;;;;;;;2146:37;;2177:5;2146:7;:37::i;:::-;-1:-1:-1;;;;;2122:21:0;;;:8;:21;;;;;;;;;;;:61;;;;2224:19;;;;;;;2216:35;;2245:5;2216:7;:35::i;:::-;-1:-1:-1;;;;;2194:19:0;;;:8;:19;;;;;;;;;;;:57;;;;2307:22;;;;;:9;:22;;;;;2330:10;2307:34;;;;;;;2299:50;;2343:5;2299:7;:50::i;:::-;-1:-1:-1;;;;;2262:22:0;;;;;;;:9;:22;;;;;;;;2285:10;2262:34;;;;;;;;:87;;;;2365:39;;;;;;;;;;;2262:22;;2365:39;;;;;;;;;;;-1:-1:-1;2422:4:0;1948:486;;;;;:::o;573:40::-;;;;;;;;;;;;;;:::o;775:26::-;;;;;;:::o;142:104::-;-1:-1:-1;;142:104:0;:::o;2446:279::-;2491:12;2532:1;2524:5;:9;2516:18;;;;;;2585:10;2576:8;:20;;;;;;;;;;;2568:36;;2598:5;2568:7;:36::i;:::-;2554:10;2545:8;:20;;;;;;;;;;:59;2637:11;;2629:26;;2649:5;2629:7;:26::i;:::-;2615:11;:40;2672:23;;;;;;;;2677:10;;2672:23;;;;;;;;;;-1:-1:-1;2713:4:0;2446:279;;;:::o;2737:120::-;-1:-1:-1;;;;;2829:20:0;2797:12;2829:20;;;;;;;;;;;;2737:120::o;740:28::-;;;;;;;;;;;;;;;-1:-1:-1;;740:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1277:460;1335:12;1376:1;1368:5;:9;1360:18;;;;;;1429:10;1420:8;:20;;;;;;;;;;;1412:36;;1442:5;1412:7;:36::i;:::-;1398:10;1389:8;:20;;;;;;;;;;;:59;;;;-1:-1:-1;;;;;1482:12:0;;;;;;1474:28;;1496:5;1474:7;:28::i;:::-;-1:-1:-1;;;;;1459:12:0;;:8;:12;;;;;;;;;;:43;1516:14;1468:2;1516:10;:14::i;:::-;1513:148;;;1608:41;;;-1:-1:-1;;;1608:41:0;;1631:10;1608:41;;;;;;;;;;;;1590:2;;-1:-1:-1;;;;;1608:22:0;;;;;:41;;;;;1547:24;;1608:41;;;;;;;;1547:24;1608:22;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;1608:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1608:41:0;;;;1513:148;;1676:31;;;;;;;;-1:-1:-1;;;;;1676:31:0;;;1685:10;;1676:31;;;;;;;;;-1:-1:-1;1725:4:0;1277:460;;;;:::o;620:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;396:131::-;458:9;488:1;484;:5;480:19;;;491:8;;;480:19;-1:-1:-1;517:5:0;;;396:131::o;252:139::-;314:9;344:15;;340:19;;336:33;;;361:8;;;336:33;-1:-1:-1;381:5:0;;252:139::o;1081:184::-;1203:23;1246:10;;;1081:184::o
Swarm Source
bzzr://fceecfa300ead19aaad1268222ea89c342401083c86774bf726ceb392d28c0e8
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.