ETH Price: $3,399.52 (+1.63%)
Gas: 6.12 Gwei

Contract

0x6D85320c086aeE2eCD2693855fb2164c494fd251
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer61797752018-08-20 5:53:362318 days ago1534744416IN
0x6D85320c...c494fd251
0 ETH0.000117515
Transfer61789832018-08-20 2:38:192318 days ago1534732699IN
0x6D85320c...c494fd251
0 ETH0.000117515
Transfer61789712018-08-20 2:36:002318 days ago1534732560IN
0x6D85320c...c494fd251
0 ETH0.000117515
Transfer54720112018-04-20 3:28:392440 days ago1524194919IN
0x6D85320c...c494fd251
0.0004 ETH0.000021321
Transfer46642682017-12-02 20:34:202578 days ago1512246860IN
0x6D85320c...c494fd251
0 ETH0.0002350210
Transfer46627382017-12-02 14:24:442578 days ago1512224684IN
0x6D85320c...c494fd251
0 ETH0.0002350210
Set Presale Phas...43018872017-09-22 14:16:572649 days ago1506089817IN
0x6D85320c...c494fd251
0 ETH0.0006268721
Set Crowdsale Ma...43018732017-09-22 14:07:542649 days ago1506089274IN
0x6D85320c...c494fd251
0 ETH0.0009227621
Transfer42917832017-09-19 17:01:572652 days ago1505840517IN
0x6D85320c...c494fd251
0 ETH0.00057523
Transfer42800802017-09-16 11:09:062656 days ago1505560146IN
0x6D85320c...c494fd251
0 ETH0.0013292225
Transfer42519072017-09-08 14:16:572663 days ago1504880217IN
0x6D85320c...c494fd251
0 ETH0.00052521
Transfer42504272017-09-08 4:18:412664 days ago1504844321IN
0x6D85320c...c494fd251
0 ETH0.001037228
Transfer42493822017-09-07 21:29:002664 days ago1504819740IN
0x6D85320c...c494fd251
0.051 ETH0.00044121
Transfer42444622017-09-06 12:21:462666 days ago1504700506IN
0x6D85320c...c494fd251
0 ETH0.00423535
Transfer42436412017-09-06 6:27:152666 days ago1504679235IN
0x6D85320c...c494fd251
0 ETH0.000499821
Transfer42436372017-09-06 6:24:432666 days ago1504679083IN
0x6D85320c...c494fd251
0 ETH0.0004883721
Transfer42289342017-09-02 2:24:422670 days ago1504319082IN
0x6D85320c...c494fd251
0 ETH0.00660
Transfer42289202017-09-02 2:19:512670 days ago1504318791IN
0x6D85320c...c494fd251
0 ETH0.00660
Transfer42161282017-08-29 11:06:332674 days ago1504004793IN
0x6D85320c...c494fd251
0 ETH0.0010426
Transfer42161152017-08-29 11:03:172674 days ago1504004597IN
0x6D85320c...c494fd251
0 ETH0.0006321
Transfer42130712017-08-28 14:18:362674 days ago1503929916IN
0x6D85320c...c494fd251
0 ETH0.005226
Transfer41965512017-08-24 1:23:362679 days ago1503537816IN
0x6D85320c...c494fd251
0.2 ETH0.0022515
Withdraw Ether41909032017-08-22 17:33:342680 days ago1503423214IN
0x6D85320c...c494fd251
0 ETH0.0010710335
Transfer41905942017-08-22 15:48:002680 days ago1503416880IN
0x6D85320c...c494fd251
0 ETH0.0024220
Transfer41852022017-08-21 8:46:292682 days ago1503305189IN
0x6D85320c...c494fd251
0.5 ETH0.0031521
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
41909032017-08-22 17:33:342680 days ago1503423214
0x6D85320c...c494fd251
5,149.68117659 ETH
41004632017-07-31 16:52:162702 days ago1501519936
0x6D85320c...c494fd251
0.01 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ATP

Compiler Version
v0.4.11+commit.68ef5810

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *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

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"}]

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

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.