Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 839 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 6179775 | 2318 days ago | IN | 0 ETH | 0.00011751 | ||||
Transfer | 6178983 | 2318 days ago | IN | 0 ETH | 0.00011751 | ||||
Transfer | 6178971 | 2318 days ago | IN | 0 ETH | 0.00011751 | ||||
Transfer | 5472011 | 2440 days ago | IN | 0.0004 ETH | 0.00002132 | ||||
Transfer | 4664268 | 2578 days ago | IN | 0 ETH | 0.00023502 | ||||
Transfer | 4662738 | 2578 days ago | IN | 0 ETH | 0.00023502 | ||||
Set Presale Phas... | 4301887 | 2649 days ago | IN | 0 ETH | 0.00062687 | ||||
Set Crowdsale Ma... | 4301873 | 2649 days ago | IN | 0 ETH | 0.00092276 | ||||
Transfer | 4291783 | 2652 days ago | IN | 0 ETH | 0.000575 | ||||
Transfer | 4280080 | 2656 days ago | IN | 0 ETH | 0.00132922 | ||||
Transfer | 4251907 | 2663 days ago | IN | 0 ETH | 0.000525 | ||||
Transfer | 4250427 | 2664 days ago | IN | 0 ETH | 0.0010372 | ||||
Transfer | 4249382 | 2664 days ago | IN | 0.051 ETH | 0.000441 | ||||
Transfer | 4244462 | 2666 days ago | IN | 0 ETH | 0.004235 | ||||
Transfer | 4243641 | 2666 days ago | IN | 0 ETH | 0.0004998 | ||||
Transfer | 4243637 | 2666 days ago | IN | 0 ETH | 0.00048837 | ||||
Transfer | 4228934 | 2670 days ago | IN | 0 ETH | 0.006 | ||||
Transfer | 4228920 | 2670 days ago | IN | 0 ETH | 0.006 | ||||
Transfer | 4216128 | 2674 days ago | IN | 0 ETH | 0.00104 | ||||
Transfer | 4216115 | 2674 days ago | IN | 0 ETH | 0.00063 | ||||
Transfer | 4213071 | 2674 days ago | IN | 0 ETH | 0.0052 | ||||
Transfer | 4196551 | 2679 days ago | IN | 0.2 ETH | 0.00225 | ||||
Withdraw Ether | 4190903 | 2680 days ago | IN | 0 ETH | 0.00107103 | ||||
Transfer | 4190594 | 2680 days ago | IN | 0 ETH | 0.00242 | ||||
Transfer | 4185202 | 2682 days ago | IN | 0.5 ETH | 0.00315 |
Loading...
Loading
Contract Name:
ATP
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-07-31 */ pragma solidity ^0.4.11; contract ATP { string public constant name = "ATL Presale Token"; string public constant symbol = "ATP"; uint public constant decimals = 18; uint public constant PRICE = 505; uint public constant TOKEN_SUPPLY_LIMIT = 2812500 * (1 ether / 1 wei); enum Phase { Created, Running, Paused, Migrating, Migrated } Phase public currentPhase = Phase.Created; address public tokenManager; address public escrow; address public crowdsaleManager; uint public totalSupply = 0; mapping (address => uint256) private balances; event Buy(address indexed buyer, uint amount); event Burn(address indexed owner, uint amount); event PhaseSwitch(Phase newPhase); function ATP(address _tokenManager, address _escrow) { tokenManager = _tokenManager; escrow = _escrow; } function() payable { buyTokens(msg.sender); } function buyTokens(address _buyer) public payable { require(currentPhase == Phase.Running); require(msg.value != 0); uint tokenAmount = msg.value * PRICE; require(totalSupply + tokenAmount <= TOKEN_SUPPLY_LIMIT); balances[_buyer] += tokenAmount; totalSupply += tokenAmount; Buy(_buyer, tokenAmount); } function balanceOf(address _owner) constant returns (uint256) { return balances[_owner]; } modifier onlyTokenManager() { require(msg.sender == tokenManager); _; } function setPresalePhase(Phase _nextPhase) public onlyTokenManager { bool canSwitchPhase = (currentPhase == Phase.Created && _nextPhase == Phase.Running) || (currentPhase == Phase.Running && _nextPhase == Phase.Paused) || ((currentPhase == Phase.Running || currentPhase == Phase.Paused) && _nextPhase == Phase.Migrating && crowdsaleManager != 0x0) || (currentPhase == Phase.Paused && _nextPhase == Phase.Running) || (currentPhase == Phase.Migrating && _nextPhase == Phase.Migrated && totalSupply == 0); require(canSwitchPhase); currentPhase = _nextPhase; PhaseSwitch(_nextPhase); } function setCrowdsaleManager(address _mgr) public onlyTokenManager { require(currentPhase != Phase.Migrating); crowdsaleManager = _mgr; } function withdrawEther() public onlyTokenManager { if(this.balance > 0) { escrow.transfer(this.balance); } } modifier onlyCrowdsaleManager() { require(msg.sender == crowdsaleManager); _; } function burnTokens(address _owner) public onlyCrowdsaleManager { require(currentPhase == Phase.Migrating); uint tokens = balances[_owner]; require(tokens > 0); balances[_owner] = 0; totalSupply -= tokens; Burn(_owner, tokens); if(totalSupply == 0) { currentPhase = Phase.Migrated; PhaseSwitch(Phase.Migrated); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"currentPhase","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_nextPhase","type":"uint8"}],"name":"setPresalePhase","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"TOKEN_SUPPLY_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenManager","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"crowdsaleManager","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_mgr","type":"address"}],"name":"setCrowdsaleManager","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"withdrawEther","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"PRICE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"burnTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_buyer","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"type":"function"},{"inputs":[{"name":"_tokenManager","type":"address"},{"name":"_escrow","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"buyer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newPhase","type":"uint8"}],"name":"PhaseSwitch","type":"event"}]
Contract Creation Code
606060405260008054819060ff19166001825b02179055506000600355341561002457fe5b604051604080610a288339810160405280516020909101515b6000805461010060a860020a031916610100600160a060020a03858116919091029190911790915560018054600160a060020a0319169183169190911790555b50505b6109998061008f6000396000f300606060405236156100e35763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663055ad42e81146100f557806306fdde031461012957806318160ddd146101b95780631ca2e94a146101db578063292005a2146101f35780632a709b1414610215578063313ce56714610241578063341176d6146102635780634defd1bf1461028f57806370a08231146102ad5780637362377b146102db5780638d859f3e146102ed57806395d89b411461030f578063b237f7d41461039f578063e2fdcc17146103bd578063ec8ac4d8146103e9575b6100f35b6100f0336103ff565b5b565b005b34156100fd57fe5b6101056104b2565b6040518082600481111561011557fe5b60ff16815260200191505060405180910390f35b341561013157fe5b6101396104bb565b60408051602080825283518183015283519192839290830191850190808383821561017f575b80518252602083111561017f57601f19909201916020918201910161015f565b505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101c157fe5b6101c96104f2565b60408051918252519081900360200190f35b34156101e357fe5b6100f360ff600435166104f8565b005b34156101fb57fe5b6101c96106cd565b60408051918252519081900360200190f35b341561021d57fe5b6102256106dc565b60408051600160a060020a039092168252519081900360200190f35b341561024957fe5b6101c96106f0565b60408051918252519081900360200190f35b341561026b57fe5b6102256106f5565b60408051600160a060020a039092168252519081900360200190f35b341561029757fe5b6100f3600160a060020a0360043516610704565b005b34156102b557fe5b6101c9600160a060020a0360043516610772565b60408051918252519081900360200190f35b34156102e357fe5b6100f3610791565b005b34156102f557fe5b6101c96107fc565b60408051918252519081900360200190f35b341561031757fe5b610139610802565b60408051602080825283518183015283519192839290830191850190808383821561017f575b80518252602083111561017f57601f19909201916020918201910161015f565b505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103a757fe5b6100f3600160a060020a0360043516610839565b005b34156103c557fe5b61022561095e565b60408051600160a060020a039092168252519081900360200190f35b6100f3600160a060020a03600435166103ff565b005b600060015b60005460ff16600481111561041557fe5b146104205760006000fd5b34151561042d5760006000fd5b50600354346101f902906a025391ee35a05c54d0000090820111156104525760006000fd5b600160a060020a0382166000818152600460209081526040918290208054850190556003805485019055815184815291517fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e9281900390910190a25b5050565b60005460ff1681565b60408051808201909152601181527f41544c2050726573616c6520546f6b656e000000000000000000000000000000602082015281565b60035481565b6000805433600160a060020a03908116610100909204161461051a5760006000fd5b60005b60005460ff16600481111561052e57fe5b148015610547575060015b82600481111561054557fe5b145b8061057a575060015b60005460ff16600481111561056157fe5b14801561057a575060025b82600481111561057857fe5b145b5b806105e0575060015b60005460ff16600481111561059557fe5b14806105b2575060025b60005460ff1660048111156105b057fe5b145b80156105ca575060035b8260048111156105c857fe5b145b80156105e05750600254600160a060020a031615155b5b80610614575060025b60005460ff1660048111156105fb57fe5b148015610614575060015b82600481111561061257fe5b145b5b80610654575060035b60005460ff16600481111561062f57fe5b148015610648575060045b82600481111561064657fe5b145b80156106545750600354155b5b90508015156106645760006000fd5b6000805483919060ff1916600183600481111561067d57fe5b02179055507f9c92253a239f12cd2e68f1bd02f9973f92c72ac5cc3a6cefcafedf16f6811e1182604051808260048111156106b457fe5b60ff16815260200191505060405180910390a15b5b5050565b6a025391ee35a05c54d0000081565b6000546101009004600160a060020a031681565b601281565b600254600160a060020a031681565b60005433600160a060020a0390811661010090920416146107255760006000fd5b60035b60005460ff16600481111561073957fe5b14156107455760006000fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600160a060020a0381166000908152600460205260409020545b919050565b60005433600160a060020a0390811661010090920416146107b25760006000fd5b600030600160a060020a03163111156100f057600154604051600160a060020a039182169130163180156108fc02916000818181858888f1935050505015156100f057fe5b5b5b5b565b6101f981565b60408051808201909152600381527f4154500000000000000000000000000000000000000000000000000000000000602082015281565b60025460009033600160a060020a039081169116146108585760006000fd5b60035b60005460ff16600481111561086c57fe5b146108775760006000fd5b50600160a060020a03811660009081526004602052604081205490811161089e5760006000fd5b600160a060020a038216600081815260046020908152604080832092909255600380548590039055815184815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a260035415156104ae57600080546004919060ff19166001835b02179055506040517f9c92253a239f12cd2e68f1bd02f9973f92c72ac5cc3a6cefcafedf16f6811e119060049080826106b4565b60ff16815260200191505060405180910390a15b5b5b5050565b600154600160a060020a0316815600a165627a7a723058204878fee11dbff45fc383c0d82e8e37d1c127fd6b8199147b67571e8e1e50d8d30029000000000000000000000000b92aac7f1db2ac60415257ef15796fd4edb7b932000000000000000000000000a5c7edcc438ba4b28e59fbe491441af93850fcbb
Deployed Bytecode
0x606060405236156100e35763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663055ad42e81146100f557806306fdde031461012957806318160ddd146101b95780631ca2e94a146101db578063292005a2146101f35780632a709b1414610215578063313ce56714610241578063341176d6146102635780634defd1bf1461028f57806370a08231146102ad5780637362377b146102db5780638d859f3e146102ed57806395d89b411461030f578063b237f7d41461039f578063e2fdcc17146103bd578063ec8ac4d8146103e9575b6100f35b6100f0336103ff565b5b565b005b34156100fd57fe5b6101056104b2565b6040518082600481111561011557fe5b60ff16815260200191505060405180910390f35b341561013157fe5b6101396104bb565b60408051602080825283518183015283519192839290830191850190808383821561017f575b80518252602083111561017f57601f19909201916020918201910161015f565b505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101c157fe5b6101c96104f2565b60408051918252519081900360200190f35b34156101e357fe5b6100f360ff600435166104f8565b005b34156101fb57fe5b6101c96106cd565b60408051918252519081900360200190f35b341561021d57fe5b6102256106dc565b60408051600160a060020a039092168252519081900360200190f35b341561024957fe5b6101c96106f0565b60408051918252519081900360200190f35b341561026b57fe5b6102256106f5565b60408051600160a060020a039092168252519081900360200190f35b341561029757fe5b6100f3600160a060020a0360043516610704565b005b34156102b557fe5b6101c9600160a060020a0360043516610772565b60408051918252519081900360200190f35b34156102e357fe5b6100f3610791565b005b34156102f557fe5b6101c96107fc565b60408051918252519081900360200190f35b341561031757fe5b610139610802565b60408051602080825283518183015283519192839290830191850190808383821561017f575b80518252602083111561017f57601f19909201916020918201910161015f565b505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103a757fe5b6100f3600160a060020a0360043516610839565b005b34156103c557fe5b61022561095e565b60408051600160a060020a039092168252519081900360200190f35b6100f3600160a060020a03600435166103ff565b005b600060015b60005460ff16600481111561041557fe5b146104205760006000fd5b34151561042d5760006000fd5b50600354346101f902906a025391ee35a05c54d0000090820111156104525760006000fd5b600160a060020a0382166000818152600460209081526040918290208054850190556003805485019055815184815291517fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e9281900390910190a25b5050565b60005460ff1681565b60408051808201909152601181527f41544c2050726573616c6520546f6b656e000000000000000000000000000000602082015281565b60035481565b6000805433600160a060020a03908116610100909204161461051a5760006000fd5b60005b60005460ff16600481111561052e57fe5b148015610547575060015b82600481111561054557fe5b145b8061057a575060015b60005460ff16600481111561056157fe5b14801561057a575060025b82600481111561057857fe5b145b5b806105e0575060015b60005460ff16600481111561059557fe5b14806105b2575060025b60005460ff1660048111156105b057fe5b145b80156105ca575060035b8260048111156105c857fe5b145b80156105e05750600254600160a060020a031615155b5b80610614575060025b60005460ff1660048111156105fb57fe5b148015610614575060015b82600481111561061257fe5b145b5b80610654575060035b60005460ff16600481111561062f57fe5b148015610648575060045b82600481111561064657fe5b145b80156106545750600354155b5b90508015156106645760006000fd5b6000805483919060ff1916600183600481111561067d57fe5b02179055507f9c92253a239f12cd2e68f1bd02f9973f92c72ac5cc3a6cefcafedf16f6811e1182604051808260048111156106b457fe5b60ff16815260200191505060405180910390a15b5b5050565b6a025391ee35a05c54d0000081565b6000546101009004600160a060020a031681565b601281565b600254600160a060020a031681565b60005433600160a060020a0390811661010090920416146107255760006000fd5b60035b60005460ff16600481111561073957fe5b14156107455760006000fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600160a060020a0381166000908152600460205260409020545b919050565b60005433600160a060020a0390811661010090920416146107b25760006000fd5b600030600160a060020a03163111156100f057600154604051600160a060020a039182169130163180156108fc02916000818181858888f1935050505015156100f057fe5b5b5b5b565b6101f981565b60408051808201909152600381527f4154500000000000000000000000000000000000000000000000000000000000602082015281565b60025460009033600160a060020a039081169116146108585760006000fd5b60035b60005460ff16600481111561086c57fe5b146108775760006000fd5b50600160a060020a03811660009081526004602052604081205490811161089e5760006000fd5b600160a060020a038216600081815260046020908152604080832092909255600380548590039055815184815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a260035415156104ae57600080546004919060ff19166001835b02179055506040517f9c92253a239f12cd2e68f1bd02f9973f92c72ac5cc3a6cefcafedf16f6811e119060049080826106b4565b60ff16815260200191505060405180910390a15b5b5b5050565b600154600160a060020a0316815600a165627a7a723058204878fee11dbff45fc383c0d82e8e37d1c127fd6b8199147b67571e8e1e50d8d30029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b92aac7f1db2ac60415257ef15796fd4edb7b932000000000000000000000000a5c7edcc438ba4b28e59fbe491441af93850fcbb
-----Decoded View---------------
Arg [0] : _tokenManager (address): 0xb92AAC7F1dB2ac60415257Ef15796Fd4edb7B932
Arg [1] : _escrow (address): 0xA5c7Edcc438BA4B28e59fbE491441aF93850fCbb
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b92aac7f1db2ac60415257ef15796fd4edb7b932
Arg [1] : 000000000000000000000000a5c7edcc438ba4b28e59fbe491441af93850fcbb
Swarm Source
bzzr://4878fee11dbff45fc383c0d82e8e37d1c127fd6b8199147b67571e8e1e50d8d3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.