ERC-20
Travel
Overview
Max Total Supply
1,000,000,000 WYX
Holders
4,170 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
5,000 WYXValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Woyager
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-08-28 */ 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 Woyager is BaseToken, AirdropToken, ICOToken { function Woyager() public { totalSupply = 1000000000e18; name = 'Woyager'; symbol = 'WYX'; decimals = 18; balanceOf[0xb10Fe1906AC8d491e69bd21268786f7De4481e4c] = totalSupply; Transfer(address(0), 0xb10Fe1906AC8d491e69bd21268786f7De4481e4c, totalSupply); airAmount = 5000e18; airBegintime = 1533992400; airEndtime = 1538351940; airSender = 0xCB554264736B84325ec6e8dAe71cA549F5B34649; airLimitCount = 1; icoRatio = 25e5; icoBegintime = 1533992400; icoEndtime = 1551398340; icoSender = 0x1Bd8917f60d528a0FcF87660CFC80Bf3ed48a353; icoHolder = 0x1Bd8917f60d528a0FcF87660CFC80Bf3ed48a353; } 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
608060405234801561001057600080fd5b506b033b2e3c9fd0803ce80000006003556040805180820190915260078082527f576f7961676572000000000000000000000000000000000000000000000000006020909201918252610065916000916101e8565b506040805180820190915260038082527f575958000000000000000000000000000000000000000000000000000000000060209092019182526100aa916001916101e8565b506002805460ff1916601217905560035473b10fe1906ac8d491e69bd21268786f7de4481e4c6000818152600460209081527f5b1ef8a46e8aa65f541f231082d2d800e2d24c063afe04f05c6862eb10dab7658490556040805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a369010f0cf064dd59200000600655635b6eddd06007819055635bb163446008556009805460a060020a63ffffffff0219600160a060020a031991821673cb554264736b84325ec6e8dae71ca549f5b3464917167401000000000000000000000000000000000000000017909155622625a0600b55600c91909155635c7875c4600d55600e80548216731bd8917f60d528a0fcf87660cfc80bf3ed48a353908117909155600f8054909216179055610283565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061022957805160ff1916838001178555610256565b82800160010185558215610256579182015b8281111561025657825182559160200191906001019061023b565b50610262929150610266565b5090565b61028091905b80821115610262576000815560010161026c565b90565b610a71806102926000396000f3006080604052600436106101325763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461015057806307cc6051146101da578063095ea7b31461020157806318160ddd1461023957806323b872dd1461024e578063313ce567146102785780633884d635146102a35780633ccfd60b146102ab5780635d4522011461014657806370a08231146102c05780637d720296146102e157806395d89b4114610312578063a2ebb20b14610327578063a3fe1ade1461033c578063a9059cbb14610376578063b0f85a101461039a578063b3b8c620146103af578063d211fe86146103c4578063dd62ed3e146103d9578063de28fc1d14610400578063e6136d8414610415578063e67ad2541461042a578063e779a8cf1461043f575b34151561014657610141610454565b61014e565b61014e61056f565b005b34801561015c57600080fd5b5061016561062f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e657600080fd5b506101ef6106bd565b60408051918252519081900360200190f35b34801561020d57600080fd5b50610225600160a060020a03600435166024356106c3565b604080519115158252519081900360200190f35b34801561024557600080fd5b506101ef610729565b34801561025a57600080fd5b50610225600160a060020a036004358116906024351660443561072f565b34801561028457600080fd5b5061028d61079e565b6040805160ff9092168252519081900360200190f35b61014e610454565b3480156102b757600080fd5b5061014e6107a7565b3480156102cc57600080fd5b506101ef600160a060020a036004351661082b565b3480156102ed57600080fd5b506102f661083d565b60408051600160a060020a039092168252519081900360200190f35b34801561031e57600080fd5b5061016561084c565b34801561033357600080fd5b506102f66108a6565b34801561034857600080fd5b5061035d600160a060020a03600435166108b5565b6040805163ffffffff9092168252519081900360200190f35b34801561038257600080fd5b50610225600160a060020a03600435166024356108cd565b3480156103a657600080fd5b506101ef6108e3565b3480156103bb57600080fd5b506101ef6108e9565b3480156103d057600080fd5b506101ef6108ef565b3480156103e557600080fd5b506101ef600160a060020a03600435811690602435166108f5565b34801561040c57600080fd5b506102f6610912565b34801561042157600080fd5b506101ef610921565b34801561043657600080fd5b506101ef610927565b34801561044b57600080fd5b5061035d61092d565b600754421015801561046857506008544211155b151561047357600080fd5b341561047e57600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156104e25750600954336000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b156104ec57600080fd5b60095460065461050791600160a060020a0316903390610951565b336000818152600a6020908152604091829020805463ffffffff198116600163ffffffff928316018216179182905560065484519081529351911693927fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4892908290030190a3565b6000600c5442101580156105855750600d544211155b151561059057600080fd5b600254600b54670de0b6b3a76400009160ff16600a0a34909102020490508015806105d45750600e54600160a060020a031660009081526004602052604090205481115b156105de57600080fd5b600e546105f590600160a060020a03163383610951565b604080518281529051349133917f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac09181900360200190a350565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b505050505081565b60065481565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b600160a060020a038316600090815260056020908152604080832033845290915281205482111561075f57600080fd5b600160a060020a0384166000908152600560209081526040808320338452909152902080548390039055610794848484610951565b5060019392505050565b60025460ff1681565b600f54604051303191600160a060020a03169082156108fc029083906000818181858888f193505050501580156107e2573d6000803e3d6000fd5b50600f54604080518381529051600160a060020a039092169133917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb919081900360200190a350565b60046020526000908152604090205481565b600954600160a060020a031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b600f54600160a060020a031681565b600a6020526000908152604090205463ffffffff1681565b60006108da338484610951565b50600192915050565b60085481565b600b5481565b600d5481565b600560209081526000928352604080842090915290825290205481565b600e54600160a060020a031681565b600c5481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a038316151561096857600080fd5b600160a060020a03841660009081526004602052604090205482111561098d57600080fd5b600160a060020a038316600090815260046020526040902054828101116109b357600080fd5b50600160a060020a0382811660009081526004602052604080822080549387168352912080548481038255825485019283905590549201910181146109f457fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3505050505600a165627a7a72305820212de440b37f64c65d042021e2cf844901920d97cbcf0faeb7bbf17555efcf5e0029
Deployed Bytecode
0x6080604052600436106101325763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461015057806307cc6051146101da578063095ea7b31461020157806318160ddd1461023957806323b872dd1461024e578063313ce567146102785780633884d635146102a35780633ccfd60b146102ab5780635d4522011461014657806370a08231146102c05780637d720296146102e157806395d89b4114610312578063a2ebb20b14610327578063a3fe1ade1461033c578063a9059cbb14610376578063b0f85a101461039a578063b3b8c620146103af578063d211fe86146103c4578063dd62ed3e146103d9578063de28fc1d14610400578063e6136d8414610415578063e67ad2541461042a578063e779a8cf1461043f575b34151561014657610141610454565b61014e565b61014e61056f565b005b34801561015c57600080fd5b5061016561062f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e657600080fd5b506101ef6106bd565b60408051918252519081900360200190f35b34801561020d57600080fd5b50610225600160a060020a03600435166024356106c3565b604080519115158252519081900360200190f35b34801561024557600080fd5b506101ef610729565b34801561025a57600080fd5b50610225600160a060020a036004358116906024351660443561072f565b34801561028457600080fd5b5061028d61079e565b6040805160ff9092168252519081900360200190f35b61014e610454565b3480156102b757600080fd5b5061014e6107a7565b3480156102cc57600080fd5b506101ef600160a060020a036004351661082b565b3480156102ed57600080fd5b506102f661083d565b60408051600160a060020a039092168252519081900360200190f35b34801561031e57600080fd5b5061016561084c565b34801561033357600080fd5b506102f66108a6565b34801561034857600080fd5b5061035d600160a060020a03600435166108b5565b6040805163ffffffff9092168252519081900360200190f35b34801561038257600080fd5b50610225600160a060020a03600435166024356108cd565b3480156103a657600080fd5b506101ef6108e3565b3480156103bb57600080fd5b506101ef6108e9565b3480156103d057600080fd5b506101ef6108ef565b3480156103e557600080fd5b506101ef600160a060020a03600435811690602435166108f5565b34801561040c57600080fd5b506102f6610912565b34801561042157600080fd5b506101ef610921565b34801561043657600080fd5b506101ef610927565b34801561044b57600080fd5b5061035d61092d565b600754421015801561046857506008544211155b151561047357600080fd5b341561047e57600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156104e25750600954336000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b156104ec57600080fd5b60095460065461050791600160a060020a0316903390610951565b336000818152600a6020908152604091829020805463ffffffff198116600163ffffffff928316018216179182905560065484519081529351911693927fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4892908290030190a3565b6000600c5442101580156105855750600d544211155b151561059057600080fd5b600254600b54670de0b6b3a76400009160ff16600a0a34909102020490508015806105d45750600e54600160a060020a031660009081526004602052604090205481115b156105de57600080fd5b600e546105f590600160a060020a03163383610951565b604080518281529051349133917f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac09181900360200190a350565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b505050505081565b60065481565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b600160a060020a038316600090815260056020908152604080832033845290915281205482111561075f57600080fd5b600160a060020a0384166000908152600560209081526040808320338452909152902080548390039055610794848484610951565b5060019392505050565b60025460ff1681565b600f54604051303191600160a060020a03169082156108fc029083906000818181858888f193505050501580156107e2573d6000803e3d6000fd5b50600f54604080518381529051600160a060020a039092169133917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb919081900360200190a350565b60046020526000908152604090205481565b600954600160a060020a031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b600f54600160a060020a031681565b600a6020526000908152604090205463ffffffff1681565b60006108da338484610951565b50600192915050565b60085481565b600b5481565b600d5481565b600560209081526000928352604080842090915290825290205481565b600e54600160a060020a031681565b600c5481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a038316151561096857600080fd5b600160a060020a03841660009081526004602052604090205482111561098d57600080fd5b600160a060020a038316600090815260046020526040902054828101116109b357600080fd5b50600160a060020a0382811660009081526004602052604080822080549387168352912080548481038255825485019283905590549201910181146109f457fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3505050505600a165627a7a72305820212de440b37f64c65d042021e2cf844901920d97cbcf0faeb7bbf17555efcf5e0029
Swarm Source
bzzr://212de440b37f64c65d042021e2cf844901920d97cbcf0faeb7bbf17555efcf5e
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.