diff --git a/core/src/main/java/bisq/core/btc/wallet/Restrictions.java b/core/src/main/java/bisq/core/btc/wallet/Restrictions.java index 8b0ff7f45bf..53857e7c31a 100644 --- a/core/src/main/java/bisq/core/btc/wallet/Restrictions.java +++ b/core/src/main/java/bisq/core/btc/wallet/Restrictions.java @@ -84,7 +84,7 @@ public static Coin getMinSellerSecurityDepositAsCoin() { return SELLER_SECURITY_DEPOSIT; } - // This value must not be lower than MIN_BUYER_SECURITY_DEPOSIT or SELLER_SECURITY_DEPOSIT + // This value must be lower than MIN_BUYER_SECURITY_DEPOSIT and SELLER_SECURITY_DEPOSIT public static Coin getMinRefundAtMediatedDispute() { if (MIN_REFUND_AT_MEDIATED_DISPUTE == null) MIN_REFUND_AT_MEDIATED_DISPUTE = Coin.parseCoin("0.003"); // 0.003 BTC about 21 USD @ 7000 USD/BTC diff --git a/desktop/src/main/java/bisq/desktop/main/MainView.java b/desktop/src/main/java/bisq/desktop/main/MainView.java index 981c819ea28..74f62771acc 100644 --- a/desktop/src/main/java/bisq/desktop/main/MainView.java +++ b/desktop/src/main/java/bisq/desktop/main/MainView.java @@ -383,15 +383,15 @@ settingsButton, getNavigationSeparator(), accountButtonWithBadge, contentContainer.getChildren().setAll(view.getRoot()); try { - navButtons.getToggles().stream() - .filter(toggle -> toggle instanceof NavButton) - .filter(button -> viewClass == ((NavButton) button).viewClass) - .findFirst() - .orElseThrow(() -> new BisqException("No button matching %s found", viewClass)) - .setSelected(true); + navButtons.getToggles().stream() + .filter(toggle -> toggle instanceof NavButton) + .filter(button -> viewClass == ((NavButton) button).viewClass) + .findFirst() + .orElseThrow(() -> new BisqException("No button matching %s found", viewClass)) + .setSelected(true); } catch (BisqException e) { navigation.navigateTo(MainView.class, MarketView.class, OfferBookChartView.class); - } + } }); VBox splashScreen = createSplashScreen(); @@ -538,7 +538,7 @@ private String getPriceProviderTooltipString() { return Res.get("mainView.marketPrice.tooltip", "Bisq Price Index for " + selectedCurrencyCode, "", - DisplayUtils.formatTime(new Date(selectedMarketPrice.getTimestampSec())), + selectedMarketPrice != null ? DisplayUtils.formatTime(new Date(selectedMarketPrice.getTimestampSec())) : Res.get("shared.na"), model.getPriceFeedService().getProviderNodeAddress()); }