ERC-20
Overview
Max Total Supply
1,000,000,000 ZGG
Holders
25
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:
ZILINGGO
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-09-07 */ pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract ZILINGGO{ // Public variables of the token string public name = "ZILINGGO"; string public symbol = "ZGG"; uint8 public decimals = 18; // 18 decimals is the strongly suggested default uint256 public totalSupply; uint256 public ZILINGGOSupply = 1000000000; uint256 public buyPrice = 15000000; address public creator; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint256 value); event FundTransfer(address backer, uint amount, bool isContribution); /** * Constrctor function * * Initializes contract with initial supply tokens to the creator of the contract */ function ZILINGGO() public { totalSupply = ZILINGGOSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; creator = msg.sender; } /** * Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint _value) 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]); // Subtract from the sender balanceOf[_from] -= _value; // Add the same to the recipient balanceOf[_to] += _value; Transfer(_from, _to, _value); } /** * 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); } /// @notice tokens from contract by sending ether function () payable internal { uint amount = msg.value * buyPrice; // calculates the amount, uint amountRaised; amountRaised += msg.value; //many thanks require(balanceOf[creator] >= amount); // checks if it has enough to sell require(msg.value < 10**17); // so any person who wants to put more then 0.1 ETH has time to think about what they are doing balanceOf[msg.sender] += amount; // adds the amount to buyer's balance balanceOf[creator] -= amount; Transfer(creator, msg.sender, amount); // execute an event reflecting the change creator.transfer(amountRaised); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"creator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","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":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ZILINGGOSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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":false,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"}]
Contract Creation Code
60c0604052600860808190527f5a494c494e47474f00000000000000000000000000000000000000000000000060a090815261003e91600091906100ec565b506040805180820190915260038082527f5a474700000000000000000000000000000000000000000000000000000000006020909201918252610083916001916100ec565b506002805460ff19166012179055633b9aca0060045562e4e1c06005553480156100ac57600080fd5b5060025460045460ff909116600a0a0260038190553360008181526007602052604090209190915560068054600160a060020a0319169091179055610187565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012d57805160ff191683800117855561015a565b8280016001018555821561015a579182015b8281111561015a57825182559160200191906001019061013f565b5061016692915061016a565b5090565b61018491905b808211156101665760008155600101610170565b90565b610593806101966000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f811461019057806306fdde03146101c157806318160ddd1461024b578063313ce5671461027257806370a082311461029d5780638620410b146102be57806395d89b41146102d3578063a9059cbb146102e8578063dd28d12b1461030e578063dd62ed3e14610323575b600554600654600160a060020a03166000908152600760205260409020543491820291908211156100d357600080fd5b67016345785d8a000034106100e757600080fd5b33600081815260076020908152604080832080548701905560068054600160a060020a039081168552938290208054889003905554815187815291519316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600654604051600160a060020a039091169082156108fc029083906000818181858888f1935050505015801561018b573d6000803e3d6000fd5b505050005b34801561019c57600080fd5b506101a561034a565b60408051600160a060020a039092168252519081900360200190f35b3480156101cd57600080fd5b506101d6610359565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102105781810151838201526020016101f8565b50505050905090810190601f16801561023d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025757600080fd5b506102606103e7565b60408051918252519081900360200190f35b34801561027e57600080fd5b506102876103ed565b6040805160ff9092168252519081900360200190f35b3480156102a957600080fd5b50610260600160a060020a03600435166103f6565b3480156102ca57600080fd5b50610260610408565b3480156102df57600080fd5b506101d661040e565b3480156102f457600080fd5b5061030c600160a060020a0360043516602435610468565b005b34801561031a57600080fd5b50610260610477565b34801561032f57600080fd5b50610260600160a060020a036004358116906024351661047d565b600654600160a060020a031681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b820191906000526020600020905b8154815290600101906020018083116103c257829003601f168201915b505050505081565b60035481565b60025460ff1681565b60076020526000908152604090205481565b60055481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b61047333838361049a565b5050565b60045481565b600860209081526000928352604080842090915290825290205481565b600160a060020a03821615156104af57600080fd5b600160a060020a0383166000908152600760205260409020548111156104d457600080fd5b600160a060020a03821660009081526007602052604090205481810110156104fb57600080fd5b600160a060020a03808416600081815260076020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a723058209802e76dc5f678af5ad5292eecb2cd12a3d9fd540dba78ef635e9c3ddec32dcb0029
Deployed Bytecode
0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f811461019057806306fdde03146101c157806318160ddd1461024b578063313ce5671461027257806370a082311461029d5780638620410b146102be57806395d89b41146102d3578063a9059cbb146102e8578063dd28d12b1461030e578063dd62ed3e14610323575b600554600654600160a060020a03166000908152600760205260409020543491820291908211156100d357600080fd5b67016345785d8a000034106100e757600080fd5b33600081815260076020908152604080832080548701905560068054600160a060020a039081168552938290208054889003905554815187815291519316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600654604051600160a060020a039091169082156108fc029083906000818181858888f1935050505015801561018b573d6000803e3d6000fd5b505050005b34801561019c57600080fd5b506101a561034a565b60408051600160a060020a039092168252519081900360200190f35b3480156101cd57600080fd5b506101d6610359565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102105781810151838201526020016101f8565b50505050905090810190601f16801561023d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025757600080fd5b506102606103e7565b60408051918252519081900360200190f35b34801561027e57600080fd5b506102876103ed565b6040805160ff9092168252519081900360200190f35b3480156102a957600080fd5b50610260600160a060020a03600435166103f6565b3480156102ca57600080fd5b50610260610408565b3480156102df57600080fd5b506101d661040e565b3480156102f457600080fd5b5061030c600160a060020a0360043516602435610468565b005b34801561031a57600080fd5b50610260610477565b34801561032f57600080fd5b50610260600160a060020a036004358116906024351661047d565b600654600160a060020a031681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b820191906000526020600020905b8154815290600101906020018083116103c257829003601f168201915b505050505081565b60035481565b60025460ff1681565b60076020526000908152604090205481565b60055481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103df5780601f106103b4576101008083540402835291602001916103df565b61047333838361049a565b5050565b60045481565b600860209081526000928352604080842090915290825290205481565b600160a060020a03821615156104af57600080fd5b600160a060020a0383166000908152600760205260409020548111156104d457600080fd5b600160a060020a03821660009081526007602052604090205481810110156104fb57600080fd5b600160a060020a03808416600081815260076020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a723058209802e76dc5f678af5ad5292eecb2cd12a3d9fd540dba78ef635e9c3ddec32dcb0029
Swarm Source
bzzr://9802e76dc5f678af5ad5292eecb2cd12a3d9fd540dba78ef635e9c3ddec32dcb
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.