From 6d195725ec1f25df695373784407827ec8669700 Mon Sep 17 00:00:00 2001 From: sqrrm Date: Fri, 5 Jul 2019 09:05:57 +0200 Subject: [PATCH] Exclude non executed BSQ trade --- .../java/bisq/core/trade/statistics/TradeStatistics2.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/trade/statistics/TradeStatistics2.java b/core/src/main/java/bisq/core/trade/statistics/TradeStatistics2.java index 9e57c8f2232..d4163d15ceb 100644 --- a/core/src/main/java/bisq/core/trade/statistics/TradeStatistics2.java +++ b/core/src/main/java/bisq/core/trade/statistics/TradeStatistics2.java @@ -263,7 +263,11 @@ public Volume getTradeVolume() { } public boolean isValid() { - return tradeAmount > 0 && tradePrice > 0; + // Exclude a disputed BSQ trade where the price was off by a factor 10 due to a mistake by the maker. + // Since the trade wasn't executed it's better to filter it out to avoid it having an undue influence on the + // BSQ trade stats. + boolean excludedFailedTrade = offerId.equals("6E5KOI6O-3a06a037-6f03-4bfa-98c2-59f49f73466a-112"); + return tradeAmount > 0 && tradePrice > 0 && !excludedFailedTrade; } @Override