ERC-20
Overview
Max Total Supply
10,000 GUC
Holders
149
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:
TokenTRC20
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-22 */ pragma solidity ^0.5.16; interface AirDrop { function doAirdrop(address,address) external returns(bool); } contract TokenTRC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; address _governance ; // This creates an array with all balances mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; // This generates a public event on the blockchain that will notify clients event Transfer(address indexed from, address indexed to, uint256 value); /** * Constructor function * * Initializes contract with initial supply tokens to the creator of the contract */ constructor( address _gov ) public { totalSupply = 10000 * 10 ** uint256(18); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens name = "GUC"; // Set the name for display purposes symbol = "GUC"; // Set the symbol for display purposes _governance=_gov; } /** * Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint _value) airnow(_from,_to) internal { // Prevent transfer to 0x0 address. Use burn() instead // require(_to != 0x0); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value >= balanceOf[_to]); // Save this for an assertion in the future uint previousBalances = balanceOf[_from] + balanceOf[_to]; // Subtract from the sender balanceOf[_from] -= _value; // Add the same to the recipient balanceOf[_to] += _value; emit Transfer(_from, _to, _value); // Asserts are used to use static analysis to find bugs in your code. They should never fail assert(balanceOf[_from] + balanceOf[_to] == previousBalances); } /** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */ function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); } /** * Transfer tokens from other address * * Send `_value` tokens to `_to` on behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; } modifier airnow(address sender,address recipient) { require(AirDrop(_governance).doAirdrop(sender,recipient)); _; } /** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens on your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */ function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"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"},{"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"},{"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":"","type":"address"}],"name":"balanceOf","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":"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":[],"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
60806040526002805460ff1916601217905534801561001d57600080fd5b5060405161075a38038061075a8339818101604052602081101561004057600080fd5b505169021e19e0c9bab240000060038181553360009081526005602090815260408083209490945583518085019094528284526247554360e81b930192835261008a9290916100db565b506040805180820190915260038082526247554360e81b60209092019182526100b5916001916100db565b50600480546001600160a01b0319166001600160a01b0392909216919091179055610176565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011c57805160ff1916838001178555610149565b82800160010185558215610149579182015b8281111561014957825182559160200191906001019061012e565b50610155929150610159565b5090565b61017391905b80821115610155576000815560010161015f565b90565b6105d5806101856000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce567146101a557806370a08231146101c357806395d89b41146101e9578063a9059cbb146101f1578063dd62ed3e1461021f57610093565b806306fdde0314610098578063095ea7b31461011557806318160ddd1461015557806323b872dd1461016f575b600080fd5b6100a061024d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100da5781810151838201526020016100c2565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101416004803603604081101561012b57600080fd5b506001600160a01b0381351690602001356102db565b604080519115158252519081900360200190f35b61015d610308565b60408051918252519081900360200190f35b6101416004803603606081101561018557600080fd5b506001600160a01b0381358116916020810135909116906040013561030e565b6101ad61037d565b6040805160ff9092168252519081900360200190f35b61015d600480360360208110156101d957600080fd5b50356001600160a01b0316610386565b6100a0610398565b61021d6004803603604081101561020757600080fd5b506001600160a01b0381351690602001356103f2565b005b61015d6004803603604081101561023557600080fd5b506001600160a01b0381358116916020013516610401565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d35780601f106102a8576101008083540402835291602001916102d3565b820191906000526020600020905b8154815290600101906020018083116102b657829003601f168201915b505050505081565b3360009081526006602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b6001600160a01b038316600090815260066020908152604080832033845290915281205482111561033e57600080fd5b6001600160a01b038416600090815260066020908152604080832033845290915290208054839003905561037384848461041e565b5060019392505050565b60025460ff1681565b60056020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d35780601f106102a8576101008083540402835291602001916102d3565b6103fd33838361041e565b5050565b600660209081526000928352604080842090915290825290205481565b600480546040805163747a798360e11b81526001600160a01b03808816948201949094528386166024820152905186938693169163e8f4f3069160448083019260209291908290030181600087803b15801561047957600080fd5b505af115801561048d573d6000803e3d6000fd5b505050506040513d60208110156104a357600080fd5b50516104ae57600080fd5b6001600160a01b0385166000908152600560205260409020548311156104d357600080fd5b6001600160a01b03841660009081526005602052604090205483810110156104fa57600080fd5b6001600160a01b0380851660008181526005602090815260408083208054958b1680855282852080548b81039091559486905281548a01909155815189815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b0380861660009081526005602052604080822054928916825290205401811461059857fe5b50505050505056fea265627a7a72315820e42de5808600f8d7a2bf62c5604f162e2a31ab9bf217eb4a9b98300055926ccf64736f6c63430005110032000000000000000000000000dd59033032a86998d55bc619f82d890151a4b96c
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce567146101a557806370a08231146101c357806395d89b41146101e9578063a9059cbb146101f1578063dd62ed3e1461021f57610093565b806306fdde0314610098578063095ea7b31461011557806318160ddd1461015557806323b872dd1461016f575b600080fd5b6100a061024d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100da5781810151838201526020016100c2565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101416004803603604081101561012b57600080fd5b506001600160a01b0381351690602001356102db565b604080519115158252519081900360200190f35b61015d610308565b60408051918252519081900360200190f35b6101416004803603606081101561018557600080fd5b506001600160a01b0381358116916020810135909116906040013561030e565b6101ad61037d565b6040805160ff9092168252519081900360200190f35b61015d600480360360208110156101d957600080fd5b50356001600160a01b0316610386565b6100a0610398565b61021d6004803603604081101561020757600080fd5b506001600160a01b0381351690602001356103f2565b005b61015d6004803603604081101561023557600080fd5b506001600160a01b0381358116916020013516610401565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d35780601f106102a8576101008083540402835291602001916102d3565b820191906000526020600020905b8154815290600101906020018083116102b657829003601f168201915b505050505081565b3360009081526006602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b6001600160a01b038316600090815260066020908152604080832033845290915281205482111561033e57600080fd5b6001600160a01b038416600090815260066020908152604080832033845290915290208054839003905561037384848461041e565b5060019392505050565b60025460ff1681565b60056020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d35780601f106102a8576101008083540402835291602001916102d3565b6103fd33838361041e565b5050565b600660209081526000928352604080842090915290825290205481565b600480546040805163747a798360e11b81526001600160a01b03808816948201949094528386166024820152905186938693169163e8f4f3069160448083019260209291908290030181600087803b15801561047957600080fd5b505af115801561048d573d6000803e3d6000fd5b505050506040513d60208110156104a357600080fd5b50516104ae57600080fd5b6001600160a01b0385166000908152600560205260409020548311156104d357600080fd5b6001600160a01b03841660009081526005602052604090205483810110156104fa57600080fd5b6001600160a01b0380851660008181526005602090815260408083208054958b1680855282852080548b81039091559486905281548a01909155815189815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b0380861660009081526005602052604080822054928916825290205401811461059857fe5b50505050505056fea265627a7a72315820e42de5808600f8d7a2bf62c5604f162e2a31ab9bf217eb4a9b98300055926ccf64736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dd59033032a86998d55bc619f82d890151a4b96c
-----Decoded View---------------
Arg [0] : _gov (address): 0xDD59033032A86998D55Bc619F82d890151A4b96c
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000dd59033032a86998d55bc619f82d890151a4b96c
Deployed Bytecode Sourcemap
121:3671:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;121:3671:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;186:18;;;:::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;186:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3618:171;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3618:171:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;344:26;;;:::i;:::-;;;;;;;;;;;;;;;;2907:296;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2907:296:0;;;;;;;;;;;;;;;;;:::i;238:26::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;453:45;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;453:45:0;-1:-1:-1;;;;;453:45:0;;:::i;211:20::-;;;:::i;2520:107::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2520:107:0;;;;;;;;:::i;:::-;;505:66;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;505:66:0;;;;;;;;;;:::i;186:18::-;;;;;;;;;;;;;;;-1:-1:-1;;186:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3618:171::-;3729:10;3694:12;3719:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;3719:31:0;;;;;;;;;;;;;:40;3777:4;;3618:171::o;344:26::-;;;;:::o;2907:296::-;-1:-1:-1;;;;;3032:16:0;;2989:12;3032:16;;;:9;:16;;;;;;;;3049:10;3032:28;;;;;;;;3022:38;;;3014:47;;;;;;-1:-1:-1;;;;;3095:16:0;;;;;;:9;:16;;;;;;;;3112:10;3095:28;;;;;;;:38;;;;;;;3144:29;3105:5;3161:3;3127:6;3144:9;:29::i;:::-;-1:-1:-1;3191:4:0;2907:296;;;;;:::o;238:26::-;;;;;;:::o;453:45::-;;;;;;;;;;;;;:::o;211:20::-;;;;;;;;;;;;;;;-1:-1:-1;;211:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2520:107;2585:34;2595:10;2607:3;2612:6;2585:9;:34::i;:::-;2520:107;;:::o;505:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;1444:865::-;3288:11;;;3280:48;;;-1:-1:-1;;;3280:48:0;;-1:-1:-1;;;;;3280:48:0;;;;;;;;;;;;;;;;;;;1512:5;;1518:3;;3288:11;;3280:30;;:48;;;;;;;;;;;;;;3288:11;;3280:48;;;5:2:-1;;;;30:1;27;20:12;5:2;3280:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3280:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3280:48:0;3272:57;;;;;;-1:-1:-1;;;;;1691:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;1691:26:0;1683:35;;;;;;-1:-1:-1;;;;;1796:14:0;;;;;;:9;:14;;;;;;1769:23;;;:41;;1761:50;;;;;;-1:-1:-1;;;;;1918:14:0;;;1875:21;1918:14;;;:9;:14;;;;;;;;;;1899:16;;;;;;;;;;;1980:26;;;;;;2059:14;;;;:24;;;;;;;2099:28;;;;;;;1899:33;;;;;:16;2099:28;;;;;;;;;;;-1:-1:-1;;;;;2266:14:0;;;;;;;:9;:14;;;;;;;2247:16;;;;;;;;:33;:53;;2240:61;;;;3340:1;1444:865;;;;;:::o
Swarm Source
bzzr://e42de5808600f8d7a2bf62c5604f162e2a31ab9bf217eb4a9b98300055926ccf
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.