contract ATMToken is StandardToken, Owned {
    // metadata
    string public constant name = "Attention Token of Media";
    string public constant symbol = "ATM";
    string public version = "1.0";
    uint256 public constant decimals = 8;
    bool public disabled = false;
    uint256 public constant MILLION = (10**6 * 10**decimals);
    // constructor
    function ATMToken() {
        totalSupply = 10000 * MILLION; //设置当前ATM发行总量

        balances[0x7b6a1147417f7dff06c77c4026fdc25c227c26c2] = 9200 * MILLION;
        balances[0xe2aa115842743a189fc01610203d2ff04c59d74a] = 800 * MILLION;
    }

    function getATMTotalSupply() external constant returns(uint256) {
        return totalSupply;
    }

    //在数据迁移时,需要先停止ATM交易
    function setDisabled(bool flag) external onlyOwner {
        disabled = flag;
    }

    function transfer(address _to, uint256 _value) returns (bool success) {
        require(!disabled);
        return super.transfer(_to, _value);
    }

    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
        require(!disabled);
        return super.transferFrom(_from, _to, _value);
    }
    function kill() external onlyOwner {
        selfdestruct(owner);
    }
}
function setDisabled(bool flag) external onlyOwner {
    disabled = flag;
}

//在数据迁移时,需要先停止ATM交易