contract MintableToken is StandardToken, Ownable {
    event Mint(address indexed to, uint256 amount);

    event MintFinished();

    bool exchangeable;

    string public name = "LHCoin";

    string public symbol = "LHC";

    uint256 public decimals = 8;

    uint256 public decimalMultiplier = 100000000;

    bool public mintingFinished = false;

    address bountyCoin;

    modifier canMint() {
        require(!mintingFinished);
        _;
    }

    function MintableToken(){
        mint(msg.sender, 72000000 * decimalMultiplier);
        finishMinting();
    }

    /**
     * @dev Function to mint tokens
     * @param _to The address that will recieve the minted tokens.
     * @param _amount The amount of tokens to mint.
     * @return A boolean that indicates if the operation was successful.
     */
    function mint(address _to, uint256 _amount) onlyOwner canMint returns (bool) {
        totalSupply = totalSupply.add(_amount);
        balances[_to] = balances[_to].add(_amount);
        Mint(_to, _amount);
        return true;
    }

    /**
     * @dev Function to stop minting new tokens.
     * @return True if the operation was successful.
     */
    function finishMinting() onlyOwner returns (bool) {
        mintingFinished = true;
        MintFinished();
        return true;
    }

    function exchangeBounty(address user, uint amount) {
        assert(msg.sender == bountyCoin);
        assert(exchangeable);
        balances[user] = amount;
        totalSupply += amount;
    }

    function setBountyCoin(address _bountyCoin) onlyAdmin {
        bountyCoin = _bountyCoin;
    }

    function setExchangeable(bool _exchangeable) onlyAdmin {
        exchangeable = _exchangeable;
    }
}
function mint(address _to, uint256 _amount) onlyOwner canMint returns (bool) {
    totalSupply = totalSupply.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    Mint(_to, _amount);
    return true;
}

/**
 * @dev Function to mint tokens
 * @param _to The address that will recieve the minted tokens.
 * @param _amount The amount of tokens to mint.
 * @return A boolean that indicates if the operation was successful.
 */