contract BrokenContract is Pausable {
    /// Set in case the core contract is broken and an upgrade is required
    address public newContractAddress;

    ///@dev only for serious breaking bug
    function setNewAddress(address _v2Address) external onlyOwner whenPaused {
        //withdraw all balance when contract update
        owner.transfer(address(this).balance);

        newContractAddress = _v2Address;
    }
}
function setNewAddress(address _v2Address) external onlyOwner whenPaused {
    //withdraw all balance when contract update
    owner.transfer(address(this).balance);

    newContractAddress = _v2Address;
}

///@dev only for serious breaking bug