Contract 0x6d85320c086aee2ecd2693855fb2164c494fd251

 

TxHash Block Age From To Value [TxFee]
0xb66b9bdace484ba03098519302e4be1b94172cf5e26fa7a1d2da838733f7016a6179775184 days 14 hrs ago0x6002ad7c92e6ed6e7641868d2de90d9c3a329959 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.00011751
0x10e15deff7ec770aafc82c7b574c1c0d071c1ecc0d6456f773e6c4ba18fa17946178983184 days 18 hrs ago0xa6d8777c1ec772d3a7d6e844a6c5ee23795b954f IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.00011751
0xd55f37c877d1b8fd70ea5758477cd9249c9234d2ca3ea2fec020c2f05a8630a06178971184 days 18 hrs ago0x6002ad7c92e6ed6e7641868d2de90d9c3a329959 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.00011751
0x8096739394172841ee70eca90aa2e22e71483e265aeda940d8e4a55b238654155472011306 days 17 hrs ago0x855eca824bcee4a527e456dd61feaa8aef057199 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510.0004 Ether0.000021322
0xe0b1fb0eefd43bd01e87b5554ffa0a66a6dbbbe22c04cbfe8b0e0123295b51c04664268445 days 9 mins ago0x01d9ee9e06dc86616f175729f296de1111c3a43e IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.00023502
0xa7d8e19eb864b761f23256e857ae6d5c7bb04a5db1a5fb30f3a9b34837e1516c4662738445 days 6 hrs ago0x01d9ee9e06dc86616f175729f296de1111c3a43e IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.00023502
0x8d4f18bae59ea567a0d92b7ef04b1de5e626d57dc170e62ffc769583c2dfca1e4301887516 days 6 hrs ago0xb92aac7f1db2ac60415257ef15796fd4edb7b932 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.000626871
0x32aa860c0c6de8b0afe36af1348bb775f48fc58c40ead373b60ffb97047b4e764301873516 days 6 hrs ago0xb92aac7f1db2ac60415257ef15796fd4edb7b932 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.000922761
0x1821fe9e222aa5a0abcdb09d8c25d5e458b27859f6587064e2d10fb84e7888634291783519 days 3 hrs ago0xc8f222e1bd2c1a9f7ab6b8278148bc8760546501 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.000575
0x604ec51da0dd354b77053cd9cc4e2d9eda3df29ea5971a0f4b841873c91b6c994280080522 days 9 hrs ago0x0999ec5f3bceee3612fde78c70f0384209a6ad88 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.001329225
0x443c81f09982d01651f232ffffcf74187bc1ac3c40e4ca465e6c6507b0c0f9bc4251907530 days 6 hrs ago0x18d03c44db4f4af0ce143e22698be0238f8c1d1e IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.000525
0x9f2046865e28e802114928c54395e27eebf6d80ba09e35180e39702b15605d484250427530 days 16 hrs ago0x4d34767504ebaf10294e7aee861833b5f54f6487 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.001037204
0x6a100945b9860434c569be98493bab77b6231c49bd97046c4afff68227c48b984249382530 days 23 hrs ago0x56c068bff4458214730a6319af5f0c42fe588790 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510.051 Ether0.000441
0x83e27ecb527b49f0141d17e56b2226ad91c6feed7a9bf68b1186541d96faed674244462532 days 8 hrs ago0x587ce5da079b753be5e4f6b08c352329455285c4 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.004235
0x74f5e744114ce7b04e09be574e182f5439cd3fc1ce710f8d69cbac7f8af902fa4243641532 days 14 hrs ago0x0bf16c310ed6232df8ed5f4020f355dcb02aed52 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.0004998
0xe7fd75c4acd53cb2022ff39bafa93c41293447c7916121d2cad71afba23c42384243637532 days 14 hrs ago0x0bf16c310ed6232df8ed5f4020f355dcb02aed52 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.000488376
0xaaf006f81b6533ae4ea450273882390f29fa01b21db2281a0247df879ef754804228934536 days 18 hrs ago0xacfcf65acf74227a9362e6b24c675a48f2f2c683 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.006
0xd2aa2f3cc7c270316ce3f78d21b78cc635dabc1c1866da87489edafefc6211014228920536 days 18 hrs ago0xacfcf65acf74227a9362e6b24c675a48f2f2c683 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.006
0xaae9f16d7c0188b35f73abda09c57c07f8799dbc3770c2561b07aeab9aefd1304216128540 days 9 hrs ago0xd250e6682fd58e408f99917abc5c90d4c379959a IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.00104
0xf3387f949d03ced94b26437f6bed5a13a25b65b919459385e17642184641e62e4216115540 days 9 hrs ago0xd250e6682fd58e408f99917abc5c90d4c379959a IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.00063
0xa46fe6b902e7c6b7754b3e636b6950ddff541fc9b31dc4bf55b8d2b529e29f9d4213071541 days 6 hrs ago0x31f0dbf00ed41288077c00f7e6b2774582b40c77 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.0052
0xfcb11dfd556fd09b584c6bb0560fbfe436b3d0cff4b74cf0829b5b63679be75f4196551545 days 19 hrs ago0x231c0731deacddba63e55aac2d8a84b339c77a8d IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510.2 Ether0.00225
0x40e7a3825539588664489641860dae172b5a8fa8b99795224eaff67c065ce2374190903547 days 3 hrs ago0xb92aac7f1db2ac60415257ef15796fd4edb7b932 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.001071035
0x96ff3f50ff15ed2f4698a6d479812a5b54ca2ec74ae96ba5d8cd3db85b21d61c4190594547 days 4 hrs ago0x587ce5da079b753be5e4f6b08c352329455285c4 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510 Ether0.00242
0x65ec4a8c312559b0d108d7a5edb3eaa950f2576c73be8f0fd482b968c16d78404185202548 days 11 hrs ago0x53d71f5bae9d9368e61caefdac4e2573c5fe33f7 IN  0x6d85320c086aee2ecd2693855fb2164c494fd2510.5 Ether0.00315
[ Download CSV Export 

Latest 2 Internal Transactions Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x40e7a3825539588664489641860dae172b5a8fa8b99795224eaff67c065ce2374190903547 days 3 hrs ago0x6d85320c086aee2ecd2693855fb2164c494fd2510xa5c7edcc438ba4b28e59fbe491441af93850fcbb5,149.681176591906507454 Ether
0xbbdbb47cbf8a65e35d0ca8b7699d8373d6ef2d5edca32777ca9cde313a855be34100463569 days 3 hrs ago0x6d85320c086aee2ecd2693855fb2164c494fd2510xa5c7edcc438ba4b28e59fbe491441af93850fcbb0.01 Ether
[ Download CSV Export 
Contract Name: ATP
Compiler Version: v0.4.11+commit.68ef5810
Optimization Enabled: Yes
Runs (Optimizer):  200


Contract Source Code
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 ABI
[{"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


    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b92aac7f1db2ac60415257ef15796fd4edb7b932000000000000000000000000a5c7edcc438ba4b28e59fbe491441af93850fcbb

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b92aac7f1db2ac60415257ef15796fd4edb7b932
Arg [1] : 000000000000000000000000a5c7edcc438ba4b28e59fbe491441af93850fcbb


   Swarm Source:
bzzr://4878fee11dbff45fc383c0d82e8e37d1c127fd6b8199147b67571e8e1e50d8d3
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.