Skip to content

Commit

Permalink
Merge pull request #2937 from sqrrm/exclude-bsq-nontrade
Browse files Browse the repository at this point in the history
Exclude non executed BSQ trade
  • Loading branch information
ripcurlx authored Jul 12, 2019
2 parents 64367b4 + 6d19572 commit e2bb538
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 e2bb538

Please sign in to comment.