diff --git a/desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java b/desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java index abfebe7c1b..d5a2c9525e 100644 --- a/desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java +++ b/desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java @@ -881,13 +881,14 @@ abstract public class OfferBookView 0) { - if (offer.isBuyOffer()) { + if (isShownAsBuyOffer) { info = Res.get("offerbook.info.sellBelowMarketPrice", absolutePriceMargin); } else { info = Res.get("offerbook.info.buyAboveMarketPrice", absolutePriceMargin); } } else { - if (offer.isBuyOffer()) { + if (isShownAsBuyOffer) { info = Res.get("offerbook.info.sellAboveMarketPrice", absolutePriceMargin); } else { info = Res.get("offerbook.info.buyBelowMarketPrice", absolutePriceMargin); @@ -909,7 +910,7 @@ abstract public class OfferBookView getMarketBasedPrice(Offer offer) { - return priceUtil.getMarketBasedPrice(offer, direction); + OfferDirection displayDirection = offer.isFiatOffer() ? direction : + direction.equals(OfferDirection.BUY) ? OfferDirection.SELL : OfferDirection.BUY; + return priceUtil.getMarketBasedPrice(offer, displayDirection); } String formatMarketPriceMargin(Offer offer) {