ERC-20
Website Down
Overview
Max Total Supply
38,000,000,000 GENT
Holders
2,450 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
70,000 GENTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Genesis
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-12-20 */ 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 AirdropToken is BaseToken { uint256 public airAmount; uint256 public airBegintime; uint256 public airEndtime; address public airSender; uint32 public airLimitCount; mapping (address => uint32) public airCountOf; event Airdrop(address indexed from, uint32 indexed count, uint256 tokenValue); function airdrop() public payable { require(now >= airBegintime && now <= airEndtime); require(msg.value == 0); if (airLimitCount > 0 && airCountOf[msg.sender] >= airLimitCount) { revert(); } _transfer(airSender, msg.sender, airAmount); airCountOf[msg.sender] += 1; Airdrop(msg.sender, airCountOf[msg.sender], airAmount); } } contract ICOToken is BaseToken { // 1 ether = icoRatio token uint256 public icoRatio; uint256 public icoBegintime; 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); function ico() public payable { require(now >= icoBegintime && now <= icoEndtime); 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() public { uint256 balance = this.balance; icoHolder.transfer(balance); Withdraw(msg.sender, icoHolder, balance); } } contract Genesis is BaseToken, AirdropToken, ICOToken { function Genesis() public { totalSupply = 38000000000000000000000000000; name = 'Genesis'; symbol = 'GENT'; decimals = 18; balanceOf[0x74f554Fff05AA87495264555a1be5Ca18D4195AC] = totalSupply; Transfer(address(0), 0x74f554Fff05AA87495264555a1be5Ca18D4195AC, totalSupply); airAmount = 1000000000000000000; airBegintime = 1542005999; airEndtime = 1548806399; airSender = 0xCB52c65c53ec7E6F029504c895049A8fB80391Cd; airLimitCount = 1; icoRatio = 20000000; icoBegintime = 1542005999; icoEndtime = 1548806399; icoSender = 0x5F820B4D5d1fEEb6b45e48d49D0E39cDEF8Bbaa4; icoHolder = 0x5F820B4D5d1fEEb6b45e48d49D0E39cDEF8Bbaa4; } function() public payable { if (msg.value == 0) { airdrop(); } else { ico(); } } }
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":true,"inputs":[],"name":"airAmount","outputs":[{"name":"","type":"uint256"}],"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":"airdrop","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"ico","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airSender","outputs":[{"name":"","type":"address"}],"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":true,"inputs":[{"name":"","type":"address"}],"name":"airCountOf","outputs":[{"name":"","type":"uint32"}],"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":"airEndtime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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"},{"constant":true,"inputs":[],"name":"icoBegintime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airBegintime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airLimitCount","outputs":[{"name":"","type":"uint32"}],"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":"count","type":"uint32"},{"indexed":false,"name":"tokenValue","type":"uint256"}],"name":"Airdrop","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
608060405234801561001057600080fd5b506b7ac8dcffb8f3090a700000006003556040805180820190915260078082527f47656e65736973000000000000000000000000000000000000000000000000006020909201918252610065916000916101e4565b506040805180820190915260048082527f47454e540000000000000000000000000000000000000000000000000000000060209092019182526100aa916001916101e4565b506002805460ff191660121790556003547374f554fff05aa87495264555a1be5ca18d4195ac6000818152600460209081527f7b3b6dce0c266ee5b53042ce2c910439106b8d0cb0eb6f3564ad46e46722a8708490556040805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3670de0b6b3a7640000600655635be924ef6007819055635c50e8ff60088190556009805460a060020a63ffffffff0219600160a060020a031991821673cb52c65c53ec7e6f029504c895049a8fb80391cd171674010000000000000000000000000000000000000000179091556301312d00600b55600c92909255600d55600e80548216735f820b4d5d1feeb6b45e48d49d0e39cdef8bbaa4908117909155600f805490921617905561027f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061022557805160ff1916838001178555610252565b82800160010185558215610252579182015b82811115610252578251825591602001919060010190610237565b5061025e929150610262565b5090565b61027c91905b8082111561025e5760008155600101610268565b90565b610a718061028e6000396000f3006080604052600436106101325763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461015057806307cc6051146101da578063095ea7b31461020157806318160ddd1461023957806323b872dd1461024e578063313ce567146102785780633884d635146102a35780633ccfd60b146102ab5780635d4522011461014657806370a08231146102c05780637d720296146102e157806395d89b4114610312578063a2ebb20b14610327578063a3fe1ade1461033c578063a9059cbb14610376578063b0f85a101461039a578063b3b8c620146103af578063d211fe86146103c4578063dd62ed3e146103d9578063de28fc1d14610400578063e6136d8414610415578063e67ad2541461042a578063e779a8cf1461043f575b34151561014657610141610454565b61014e565b61014e61056f565b005b34801561015c57600080fd5b5061016561062f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e657600080fd5b506101ef6106bd565b60408051918252519081900360200190f35b34801561020d57600080fd5b50610225600160a060020a03600435166024356106c3565b604080519115158252519081900360200190f35b34801561024557600080fd5b506101ef610729565b34801561025a57600080fd5b50610225600160a060020a036004358116906024351660443561072f565b34801561028457600080fd5b5061028d61079e565b6040805160ff9092168252519081900360200190f35b61014e610454565b3480156102b757600080fd5b5061014e6107a7565b3480156102cc57600080fd5b506101ef600160a060020a036004351661082b565b3480156102ed57600080fd5b506102f661083d565b60408051600160a060020a039092168252519081900360200190f35b34801561031e57600080fd5b5061016561084c565b34801561033357600080fd5b506102f66108a6565b34801561034857600080fd5b5061035d600160a060020a03600435166108b5565b6040805163ffffffff9092168252519081900360200190f35b34801561038257600080fd5b50610225600160a060020a03600435166024356108cd565b3480156103a657600080fd5b506101ef6108e3565b3480156103bb57600080fd5b506101ef6108e9565b3480156103d057600080fd5b506101ef6108ef565b3480156103e557600080fd5b506101ef600160a060020a03600435811690602435166108f5565b34801561040c57600080fd5b506102f6610912565b34801561042157600080fd5b506101ef610921565b34801561043657600080fd5b506101ef610927565b34801561044b57600080fd5b5061035d61092d565b600754421015801561046857506008544211155b151561047357600080fd5b341561047e57600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156104e25750600954336000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b156104ec57600080fd5b60095460065461050791600160a060020a0316903390610951565b336000818152600a6020908152604091829020805463ffffffff198116600163ffffffff928316018216179182905560065484519081529351911693927fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4892908290030190a3565b6000600c5442101580156105855750600d544211155b151561059057600080fd5b600254600b54670de0b6b3a76400009160ff16600a0a34909102020490508015806105d45750600e54600160a060020a031660009081526004602052604090205481115b156105de57600080fd5b600e546105f590600160a060020a03163383610951565b604080518281529051349133917f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac09181900360200190a350565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b505050505081565b60065481565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b600160a060020a038316600090815260056020908152604080832033845290915281205482111561075f57600080fd5b600160a060020a0384166000908152600560209081526040808320338452909152902080548390039055610794848484610951565b5060019392505050565b60025460ff1681565b600f54604051303191600160a060020a03169082156108fc029083906000818181858888f193505050501580156107e2573d6000803e3d6000fd5b50600f54604080518381529051600160a060020a039092169133917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb919081900360200190a350565b60046020526000908152604090205481565b600954600160a060020a031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b600f54600160a060020a031681565b600a6020526000908152604090205463ffffffff1681565b60006108da338484610951565b50600192915050565b60085481565b600b5481565b600d5481565b600560209081526000928352604080842090915290825290205481565b600e54600160a060020a031681565b600c5481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a038316151561096857600080fd5b600160a060020a03841660009081526004602052604090205482111561098d57600080fd5b600160a060020a038316600090815260046020526040902054828101116109b357600080fd5b50600160a060020a0382811660009081526004602052604080822080549387168352912080548481038255825485019283905590549201910181146109f457fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3505050505600a165627a7a7230582052f6938484a0eef509515610e3b3b5716372eefd24d1cdd93eece6b850c29c7a0029
Deployed Bytecode
0x6080604052600436106101325763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461015057806307cc6051146101da578063095ea7b31461020157806318160ddd1461023957806323b872dd1461024e578063313ce567146102785780633884d635146102a35780633ccfd60b146102ab5780635d4522011461014657806370a08231146102c05780637d720296146102e157806395d89b4114610312578063a2ebb20b14610327578063a3fe1ade1461033c578063a9059cbb14610376578063b0f85a101461039a578063b3b8c620146103af578063d211fe86146103c4578063dd62ed3e146103d9578063de28fc1d14610400578063e6136d8414610415578063e67ad2541461042a578063e779a8cf1461043f575b34151561014657610141610454565b61014e565b61014e61056f565b005b34801561015c57600080fd5b5061016561062f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e657600080fd5b506101ef6106bd565b60408051918252519081900360200190f35b34801561020d57600080fd5b50610225600160a060020a03600435166024356106c3565b604080519115158252519081900360200190f35b34801561024557600080fd5b506101ef610729565b34801561025a57600080fd5b50610225600160a060020a036004358116906024351660443561072f565b34801561028457600080fd5b5061028d61079e565b6040805160ff9092168252519081900360200190f35b61014e610454565b3480156102b757600080fd5b5061014e6107a7565b3480156102cc57600080fd5b506101ef600160a060020a036004351661082b565b3480156102ed57600080fd5b506102f661083d565b60408051600160a060020a039092168252519081900360200190f35b34801561031e57600080fd5b5061016561084c565b34801561033357600080fd5b506102f66108a6565b34801561034857600080fd5b5061035d600160a060020a03600435166108b5565b6040805163ffffffff9092168252519081900360200190f35b34801561038257600080fd5b50610225600160a060020a03600435166024356108cd565b3480156103a657600080fd5b506101ef6108e3565b3480156103bb57600080fd5b506101ef6108e9565b3480156103d057600080fd5b506101ef6108ef565b3480156103e557600080fd5b506101ef600160a060020a03600435811690602435166108f5565b34801561040c57600080fd5b506102f6610912565b34801561042157600080fd5b506101ef610921565b34801561043657600080fd5b506101ef610927565b34801561044b57600080fd5b5061035d61092d565b600754421015801561046857506008544211155b151561047357600080fd5b341561047e57600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156104e25750600954336000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b156104ec57600080fd5b60095460065461050791600160a060020a0316903390610951565b336000818152600a6020908152604091829020805463ffffffff198116600163ffffffff928316018216179182905560065484519081529351911693927fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4892908290030190a3565b6000600c5442101580156105855750600d544211155b151561059057600080fd5b600254600b54670de0b6b3a76400009160ff16600a0a34909102020490508015806105d45750600e54600160a060020a031660009081526004602052604090205481115b156105de57600080fd5b600e546105f590600160a060020a03163383610951565b604080518281529051349133917f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac09181900360200190a350565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b505050505081565b60065481565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b600160a060020a038316600090815260056020908152604080832033845290915281205482111561075f57600080fd5b600160a060020a0384166000908152600560209081526040808320338452909152902080548390039055610794848484610951565b5060019392505050565b60025460ff1681565b600f54604051303191600160a060020a03169082156108fc029083906000818181858888f193505050501580156107e2573d6000803e3d6000fd5b50600f54604080518381529051600160a060020a039092169133917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb919081900360200190a350565b60046020526000908152604090205481565b600954600160a060020a031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b600f54600160a060020a031681565b600a6020526000908152604090205463ffffffff1681565b60006108da338484610951565b50600192915050565b60085481565b600b5481565b600d5481565b600560209081526000928352604080842090915290825290205481565b600e54600160a060020a031681565b600c5481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a038316151561096857600080fd5b600160a060020a03841660009081526004602052604090205482111561098d57600080fd5b600160a060020a038316600090815260046020526040902054828101116109b357600080fd5b50600160a060020a0382811660009081526004602052604080822080549387168352912080548481038255825485019283905590549201910181146109f457fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3505050505600a165627a7a7230582052f6938484a0eef509515610e3b3b5716372eefd24d1cdd93eece6b850c29c7a0029
Swarm Source
bzzr://52f6938484a0eef509515610e3b3b5716372eefd24d1cdd93eece6b850c29c7a
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.