ERC-20
Overview
Max Total Supply
50,000,000 EOG
Holders
1,317
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Balance
888 EOGValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CustomToken
Compiler Version
v0.4.19+commit.c4cbbb05
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-02-16 */ pragma solidity ^0.4.19; contract BaseToken { string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function _transfer(address _from, address _to, uint _value) internal { require(_to != 0x0); require(balanceOf[_from] >= _value); require(balanceOf[_to] + _value > balanceOf[_to]); uint previousBalances = balanceOf[_from] + balanceOf[_to]; balanceOf[_from] -= _value; balanceOf[_to] += _value; assert(balanceOf[_from] + balanceOf[_to] == previousBalances); Transfer(_from, _to, _value); } function transfer(address _to, uint256 _value) public returns (bool success) { _transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } } contract ICOToken is BaseToken { // 1 ether = icoRatio token uint256 public icoRatio; uint256 public icoEndtime; address public icoSender; address public icoHolder; event ICO(address indexed from, uint256 indexed value, uint256 tokenValue); event Withdraw(address indexed from, address indexed holder, uint256 value); modifier onlyBefore() { if (now > icoEndtime) { revert(); } _; } function() public payable onlyBefore { uint256 tokenValue = (msg.value * icoRatio * 10 ** uint256(decimals)) / (1 ether / 1 wei); if (tokenValue == 0 || balanceOf[icoSender] < tokenValue) { revert(); } _transfer(icoSender, msg.sender, tokenValue); ICO(msg.sender, msg.value, tokenValue); } function withdraw() { uint256 balance = this.balance; icoHolder.transfer(balance); Withdraw(msg.sender, icoHolder, balance); } } contract CustomToken is BaseToken, ICOToken { function CustomToken() public { totalSupply = 5000000000000000; balanceOf[0x1dd91123acc8a51392b35b310b2f0bed6ff082f2] = totalSupply; name = 'EOGcurrency'; symbol = 'EOG'; decimals = 8; icoRatio = 100000; icoEndtime = 1547049600; icoSender = 0x3a0a355972b4cfdf627e04432432b859a6c245b5; icoHolder = 0x3a0a355972b4cfdf627e04432432b859a6c245b5; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","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":true,"inputs":[],"name":"icoHolder","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"icoRatio","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoEndtime","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"},{"constant":true,"inputs":[],"name":"icoSender","outputs":[{"name":"","type":"address"}],"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":"value","type":"uint256"},{"indexed":false,"name":"tokenValue","type":"uint256"}],"name":"ICO","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"holder","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Withdraw","type":"event"},{"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":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
6060604052341561000f57600080fd5b6611c37937e080006003819055731dd91123acc8a51392b35b310b2f0bed6ff082f260005260046020527fec03e6713dec1ed8507edcf8c7c34bc922b034feccd12bc640cd405df37492b25560408051908101604052600b81527f454f4763757272656e6379000000000000000000000000000000000000000000602082015260009080516100a2929160200190610144565b5060408051908101604052600381527f454f470000000000000000000000000000000000000000000000000000000000602082015260019080516100ea929160200190610144565b506002805460ff19166008908117909155620186a0600655635c361a806007558054600160a060020a0319908116733a0a355972b4cfdf627e04432432b859a6c245b59081179092556009805490911690911790556101df565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061018557805160ff19168380011785556101b2565b828001600101855582156101b2579182015b828111156101b2578251825591602001919060010190610197565b506101be9291506101c2565b5090565b6101dc91905b808211156101be57600081556001016101c8565b90565b6107b9806101ee6000396000f3006060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610187578063095ea7b31461021157806318160ddd1461024757806323b872dd1461026c578063313ce567146102945780633ccfd60b146102bd57806370a08231146102d257806395d89b41146102f1578063a2ebb20b14610304578063a9059cbb14610333578063b3b8c62014610355578063d211fe8614610368578063dd62ed3e1461037b578063de28fc1d146103a0575b60006007544211156100e057600080fd5b600254600654670de0b6b3a76400009160ff16600a0a34909102020490508015806101255750600854600160a060020a03166000908152600460205260409020548190105b1561012f57600080fd5b60085461014690600160a060020a031633836103b3565b3433600160a060020a03167f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac08360405190815260200160405180910390a350005b341561019257600080fd5b61019a6104a4565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101d65780820151838201526020016101be565b50505050905090810190601f1680156102035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561021c57600080fd5b610233600160a060020a0360043516602435610542565b604051901515815260200160405180910390f35b341561025257600080fd5b61025a6105ae565b60405190815260200160405180910390f35b341561027757600080fd5b610233600160a060020a03600435811690602435166044356105b4565b341561029f57600080fd5b6102a761062b565b60405160ff909116815260200160405180910390f35b34156102c857600080fd5b6102d0610634565b005b34156102dd57600080fd5b61025a600160a060020a03600435166106b3565b34156102fc57600080fd5b61019a6106c5565b341561030f57600080fd5b610317610730565b604051600160a060020a03909116815260200160405180910390f35b341561033e57600080fd5b610233600160a060020a036004351660243561073f565b341561036057600080fd5b61025a610755565b341561037357600080fd5b61025a61075b565b341561038657600080fd5b61025a600160a060020a0360043581169060243516610761565b34156103ab57600080fd5b61031761077e565b6000600160a060020a03831615156103ca57600080fd5b600160a060020a038416600090815260046020526040902054829010156103f057600080fd5b600160a060020a0383166000908152600460205260409020548281011161041657600080fd5b50600160a060020a03828116600090815260046020526040808220805493871683529120805484810382558254850192839055905492019101811461045757fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a350505050565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561053a5780601f1061050f5761010080835404028352916020019161053a565b820191906000526020600020905b81548152906001019060200180831161051d57829003601f168201915b505050505081565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a038084166000908152600560209081526040808320339094168352929052908120548211156105e957600080fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220805483900390556106218484846103b3565b5060019392505050565b60025460ff1681565b600954600160a060020a0330811631911681156108fc0282604051600060405180830381858888f19350505050151561066c57600080fd5b600954600160a060020a039081169033167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8360405190815260200160405180910390a350565b60046020526000908152604090205481565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561053a5780601f1061050f5761010080835404028352916020019161053a565b600954600160a060020a031681565b600061074c3384846103b3565b50600192915050565b60065481565b60075481565b600560209081526000928352604080842090915290825290205481565b600854600160a060020a0316815600a165627a7a72305820f246ad5823caab298d6bac7f7c28b316456320dce19554d55fac5b69b35d44170029
Deployed Bytecode
0x6060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610187578063095ea7b31461021157806318160ddd1461024757806323b872dd1461026c578063313ce567146102945780633ccfd60b146102bd57806370a08231146102d257806395d89b41146102f1578063a2ebb20b14610304578063a9059cbb14610333578063b3b8c62014610355578063d211fe8614610368578063dd62ed3e1461037b578063de28fc1d146103a0575b60006007544211156100e057600080fd5b600254600654670de0b6b3a76400009160ff16600a0a34909102020490508015806101255750600854600160a060020a03166000908152600460205260409020548190105b1561012f57600080fd5b60085461014690600160a060020a031633836103b3565b3433600160a060020a03167f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac08360405190815260200160405180910390a350005b341561019257600080fd5b61019a6104a4565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101d65780820151838201526020016101be565b50505050905090810190601f1680156102035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561021c57600080fd5b610233600160a060020a0360043516602435610542565b604051901515815260200160405180910390f35b341561025257600080fd5b61025a6105ae565b60405190815260200160405180910390f35b341561027757600080fd5b610233600160a060020a03600435811690602435166044356105b4565b341561029f57600080fd5b6102a761062b565b60405160ff909116815260200160405180910390f35b34156102c857600080fd5b6102d0610634565b005b34156102dd57600080fd5b61025a600160a060020a03600435166106b3565b34156102fc57600080fd5b61019a6106c5565b341561030f57600080fd5b610317610730565b604051600160a060020a03909116815260200160405180910390f35b341561033e57600080fd5b610233600160a060020a036004351660243561073f565b341561036057600080fd5b61025a610755565b341561037357600080fd5b61025a61075b565b341561038657600080fd5b61025a600160a060020a0360043581169060243516610761565b34156103ab57600080fd5b61031761077e565b6000600160a060020a03831615156103ca57600080fd5b600160a060020a038416600090815260046020526040902054829010156103f057600080fd5b600160a060020a0383166000908152600460205260409020548281011161041657600080fd5b50600160a060020a03828116600090815260046020526040808220805493871683529120805484810382558254850192839055905492019101811461045757fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a350505050565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561053a5780601f1061050f5761010080835404028352916020019161053a565b820191906000526020600020905b81548152906001019060200180831161051d57829003601f168201915b505050505081565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a038084166000908152600560209081526040808320339094168352929052908120548211156105e957600080fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220805483900390556106218484846103b3565b5060019392505050565b60025460ff1681565b600954600160a060020a0330811631911681156108fc0282604051600060405180830381858888f19350505050151561066c57600080fd5b600954600160a060020a039081169033167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8360405190815260200160405180910390a350565b60046020526000908152604090205481565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561053a5780601f1061050f5761010080835404028352916020019161053a565b600954600160a060020a031681565b600061074c3384846103b3565b50600192915050565b60065481565b60075481565b600560209081526000928352604080842090915290825290205481565b600854600160a060020a0316815600a165627a7a72305820f246ad5823caab298d6bac7f7c28b316456320dce19554d55fac5b69b35d44170029
Swarm Source
bzzr://f246ad5823caab298d6bac7f7c28b316456320dce19554d55fac5b69b35d4417
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.