Skip to content

Commit

Permalink
Exclude non executed BSQ trade
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrm committed Jul 5, 2019
1 parent f470f6c commit 6d19572
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d19572

Please sign in to comment.