contract SWAP is ERC20 {
    using SafeMath for uint;

    string public name = "www.swap.online community token";
    string public symbol = "SWAP";
    uint8 public decimals = 18;

    modifier isNotStartedOnly() {
        require(!isStarted);
        _;
    }

    function getTotalSupply()
    public
    constant
    returns(uint)
    {
        return totalSupply;
    }

    function start()
    public
    only(owner)
    isNotStartedOnly
    {
        isStarted = true;
    }

    //================= Crowdsale Only =================
    function mint(address _to, uint _amount) public
    only(owner)
    isNotStartedOnly
    returns(bool)
    {
        totalSupply = totalSupply.add(_amount);
        balances[_to] = balances[_to].add(_amount);
        Transfer(msg.sender, _to, _amount);
        return true;
    }


    function multimint(address[] dests, uint[] values) public
    only(owner)
    isNotStartedOnly
    returns (uint) {
        uint i = 0;
        while (i < dests.length) {
           mint(dests[i], values[i]);
           i += 1;
        }
        return(i);
    }
}
function mint(address _to, uint _amount) public
only(owner)
isNotStartedOnly
returns(bool)
{
    totalSupply = totalSupply.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    Transfer(msg.sender, _to, _amount);
    return true;
}

//================= Crowdsale Only =================