Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
300,000,000 GICC
Holders
113
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:
Token
Compiler Version
v0.5.16+commit.9c3226ce
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-04-14 */ // File: contracts/SafeMath.sol pragma solidity 0.5.16; /** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } /** * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } /** * @dev Adds two unsigned integers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } /** * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } } // File: contracts/IERC20.sol pragma solidity 0.5.16; /** * @title ERC20 interface * @dev see https://eips.ethereum.org/EIPS/eip-20 */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/Token.sol pragma solidity 0.5.16; contract Token is IERC20 { using SafeMath for uint256; string public constant name = "GICCOIN"; string public constant symbol = "GICC"; uint256 public constant decimals = 18; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; constructor(address banker) public { uint256 amount = 3 * (10 ** 8) * (10 ** decimals); _totalSupply = _totalSupply.add(amount); _balances[banker] = amount; emit Transfer(address(0), banker, amount); } /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev Gets the balance of the specified address. * @param owner The address to query the balance of. * @return A uint256 representing the amount owned by the passed address. */ function balanceOf(address owner) public view returns (uint256) { return _balances[owner]; } /** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param owner address The address which owns the funds. * @param spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowed[owner][spender]; } /** * @dev Transfer token to a specified address * @param to The address to transfer to. * @param value The amount to be transferred. */ function transfer(address to, uint256 value) public returns (bool) { _transfer(msg.sender, to, value); return true; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. */ function approve(address spender, uint256 value) public returns (bool) { _approve(msg.sender, spender, value); return true; } /** * @dev Transfer tokens from one address to another. * Note that while this function emits an Approval event, this is not required as per the specification, * and other compliant implementations may not emit the event. * @param from address The address which you want to send tokens from * @param to address The address which you want to transfer to * @param value uint256 the amount of tokens to be transferred */ function transferFrom(address from, address to, uint256 value) public returns (bool) { _transfer(from, to, value); _approve(from, msg.sender, _allowed[from][msg.sender].sub(value)); return true; } /** * @dev Increase the amount of tokens that an owner allowed to a spender. * approve should be called when _allowed[msg.sender][spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approval event. * @param spender The address which will spend the funds. * @param addedValue The amount of tokens to increase the allowance by. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(msg.sender, spender, _allowed[msg.sender][spender].add(addedValue)); return true; } /** * @dev Decrease the amount of tokens that an owner allowed to a spender. * approve should be called when _allowed[msg.sender][spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approval event. * @param spender The address which will spend the funds. * @param subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(msg.sender, spender, _allowed[msg.sender][spender].sub(subtractedValue)); return true; } /** * @dev Transfer token for a specified addresses * @param from The address to transfer from. * @param to The address to transfer to. * @param value The amount to be transferred. */ function _transfer(address from, address to, uint256 value) internal { require(to != address(0)); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); } /** * @dev Approve an address to spend another addresses' tokens. * @param owner The address that owns the tokens. * @param spender The address that will spend the tokens. * @param value The number of tokens that can be spent. */ function _approve(address owner, address spender, uint256 value) internal { require(spender != address(0)); require(owner != address(0)); _allowed[owner][spender] = value; emit Approval(owner, spender, value); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"banker","type":"address"}],"payable":false,"stateMutability":"nonpayable","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"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516106b93803806106b98339818101604052602081101561003357600080fd5b50516002546af8277896582678ac0000009061005a90826100b2602090811b61059117901c565b6002556001600160a01b038216600081815260208181526040808320859055805185815290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350506100cb565b6000828201838110156100c457600080fd5b9392505050565b6105df806100da6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101c357806370a08231146101ef57806395d89b4114610215578063a457c2d71461021d578063a9059cbb14610249578063dd62ed3e14610275576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102a3565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b0381351690602001356102c6565b604080519115158252519081900360200190f35b6101736102dc565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b038135811691602081013590911690604001356102e2565b610173610339565b610157600480360360408110156101d957600080fd5b506001600160a01b03813516906020013561033e565b6101736004803603602081101561020557600080fd5b50356001600160a01b031661037a565b6100b6610395565b6101576004803603604081101561023357600080fd5b506001600160a01b0381351690602001356103b5565b6101576004803603604081101561025f57600080fd5b506001600160a01b0381351690602001356103f1565b6101736004803603604081101561028b57600080fd5b506001600160a01b03813581169160200135166103fe565b6040518060400160405280600781526020016623a4a1a1a7a4a760c91b81525081565b60006102d3338484610429565b50600192915050565b60025490565b60006102ef8484846104b1565b6001600160a01b03841660009081526001602090815260408083203380855292529091205461032f91869161032a908663ffffffff61057c16565b610429565b5060019392505050565b601281565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102d391859061032a908663ffffffff61059116565b6001600160a01b031660009081526020819052604090205490565b604051806040016040528060048152602001634749434360e01b81525081565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102d391859061032a908663ffffffff61057c16565b60006102d33384846104b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03821661043c57600080fd5b6001600160a01b03831661044f57600080fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0382166104c457600080fd5b6001600160a01b0383166000908152602081905260409020546104ed908263ffffffff61057c16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610522908263ffffffff61059116565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008282111561058b57600080fd5b50900390565b6000828201838110156105a357600080fd5b939250505056fea265627a7a72315820fe85284af70a7db7a4e4c6638e7cf6e3157abdc6f5c0beef93872488ebe0c78364736f6c634300051000320000000000000000000000008d33cb55f2b3d71c91f99a99e3798278534051b2
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101c357806370a08231146101ef57806395d89b4114610215578063a457c2d71461021d578063a9059cbb14610249578063dd62ed3e14610275576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102a3565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b0381351690602001356102c6565b604080519115158252519081900360200190f35b6101736102dc565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b038135811691602081013590911690604001356102e2565b610173610339565b610157600480360360408110156101d957600080fd5b506001600160a01b03813516906020013561033e565b6101736004803603602081101561020557600080fd5b50356001600160a01b031661037a565b6100b6610395565b6101576004803603604081101561023357600080fd5b506001600160a01b0381351690602001356103b5565b6101576004803603604081101561025f57600080fd5b506001600160a01b0381351690602001356103f1565b6101736004803603604081101561028b57600080fd5b506001600160a01b03813581169160200135166103fe565b6040518060400160405280600781526020016623a4a1a1a7a4a760c91b81525081565b60006102d3338484610429565b50600192915050565b60025490565b60006102ef8484846104b1565b6001600160a01b03841660009081526001602090815260408083203380855292529091205461032f91869161032a908663ffffffff61057c16565b610429565b5060019392505050565b601281565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102d391859061032a908663ffffffff61059116565b6001600160a01b031660009081526020819052604090205490565b604051806040016040528060048152602001634749434360e01b81525081565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102d391859061032a908663ffffffff61057c16565b60006102d33384846104b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03821661043c57600080fd5b6001600160a01b03831661044f57600080fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0382166104c457600080fd5b6001600160a01b0383166000908152602081905260409020546104ed908263ffffffff61057c16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610522908263ffffffff61059116565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008282111561058b57600080fd5b50900390565b6000828201838110156105a357600080fd5b939250505056fea265627a7a72315820fe85284af70a7db7a4e4c6638e7cf6e3157abdc6f5c0beef93872488ebe0c78364736f6c63430005100032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008d33cb55f2b3d71c91f99a99e3798278534051b2
-----Decoded View---------------
Arg [0] : banker (address): 0x8d33CB55f2B3D71c91f99a99E3798278534051b2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008d33cb55f2b3d71c91f99a99e3798278534051b2
Deployed Bytecode Sourcemap
2844:5874:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2844:5874:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2911:39;;;:::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;2911:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5377:148;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;5377:148:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3530:91;;;:::i;:::-;;;;;;;;;;;;;;;;5998:228;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;5998:228:0;;;;;;;;;;;;;;;;;:::i;3002:37::-;;;:::i;6752:203::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;6752:203:0;;;;;;;;:::i;3840:106::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3840:106:0;-1:-1:-1;;;;;3840:106:0;;:::i;2957:38::-;;;:::i;7486:213::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;7486:213:0;;;;;;;;:::i;4590:140::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4590:140:0;;;;;;;;:::i;4285:131::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4285:131:0;;;;;;;;;;:::i;2911:39::-;;;;;;;;;;;;;;-1:-1:-1;;;2911:39:0;;;;:::o;5377:148::-;5442:4;5459:36;5468:10;5480:7;5489:5;5459:8;:36::i;:::-;-1:-1:-1;5513:4:0;5377:148;;;;:::o;3530:91::-;3601:12;;3530:91;:::o;5998:228::-;6077:4;6094:26;6104:4;6110:2;6114:5;6094:9;:26::i;:::-;-1:-1:-1;;;;;6158:14:0;;;;;;:8;:14;;;;;;;;6146:10;6158:26;;;;;;;;;6131:65;;6140:4;;6158:37;;6189:5;6158:37;:30;:37;:::i;:::-;6131:8;:65::i;:::-;-1:-1:-1;6214:4:0;5998:228;;;;;:::o;3002:37::-;3037:2;3002:37;:::o;6752:203::-;6858:10;6832:4;6879:20;;;:8;:20;;;;;;;;-1:-1:-1;;;;;6879:29:0;;;;;;;;;;6832:4;;6849:76;;6870:7;;6879:45;;6913:10;6879:45;:33;:45;:::i;3840:106::-;-1:-1:-1;;;;;3922:16:0;3895:7;3922:16;;;;;;;;;;;;3840:106::o;2957:38::-;;;;;;;;;;;;;;-1:-1:-1;;;2957:38:0;;;;:::o;7486:213::-;7597:10;7571:4;7618:20;;;:8;:20;;;;;;;;-1:-1:-1;;;;;7618:29:0;;;;;;;;;;7571:4;;7588:81;;7609:7;;7618:50;;7652:15;7618:50;:33;:50;:::i;4590:140::-;4651:4;4668:32;4678:10;4690:2;4694:5;4668:9;:32::i;4285:131::-;-1:-1:-1;;;;;4384:15:0;;;4357:7;4384:15;;;:8;:15;;;;;;;;:24;;;;;;;;;;;;;4285:131::o;8461:254::-;-1:-1:-1;;;;;8554:21:0;;8546:30;;;;;;-1:-1:-1;;;;;8595:19:0;;8587:28;;;;;;-1:-1:-1;;;;;8628:15:0;;;;;;;:8;:15;;;;;;;;:24;;;;;;;;;;;;;:32;;;8676:31;;;;;;;;;;;;;;;;;8461:254;;;:::o;7926:262::-;-1:-1:-1;;;;;8014:16:0;;8006:25;;;;;;-1:-1:-1;;;;;8062:15:0;;:9;:15;;;;;;;;;;;:26;;8082:5;8062:26;:19;:26;:::i;:::-;-1:-1:-1;;;;;8044:15:0;;;:9;:15;;;;;;;;;;;:44;;;;8115:13;;;;;;;:24;;8133:5;8115:24;:17;:24;:::i;:::-;-1:-1:-1;;;;;8099:13:0;;;:9;:13;;;;;;;;;;;;:40;;;;8155:25;;;;;;;8099:13;;8155:25;;;;;;;;;;;;;7926:262;;;:::o;1285:150::-;1343:7;1376:1;1371;:6;;1363:15;;;;;;-1:-1:-1;1401:5:0;;;1285:150::o;1523:::-;1581:7;1613:5;;;1637:6;;;;1629:15;;;;;;1664:1;1523:150;-1:-1:-1;;;1523:150:0:o
Swarm Source
bzzr://fe85284af70a7db7a4e4c6638e7cf6e3157abdc6f5c0beef93872488ebe0c783
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.