Skip to content

Commit

Permalink
Merge pull request #3625 from rafaelpac/account-validation-bug
Browse files Browse the repository at this point in the history
[BUGFIX] Account validation comparing user trade limit with MAX amount of offer
  • Loading branch information
ripcurlx authored Nov 18, 2019
2 parents ec5e2b7 + 894a2c6 commit 7c83230
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static boolean isAmountValidForOffer(Offer offer,
AccountAgeWitnessService accountAgeWitnessService) {
boolean hasChargebackRisk = PaymentMethod.hasChargebackRisk(offer.getPaymentMethod(), offer.getCurrencyCode());
boolean hasValidAccountAgeWitness = accountAgeWitnessService.getMyTradeLimit(paymentAccount,
offer.getCurrencyCode(), offer.getMirroredDirection()) >= offer.getAmount().value;
offer.getCurrencyCode(), offer.getMirroredDirection()) >= offer.getMinAmount().value;
return !hasChargebackRisk || hasValidAccountAgeWitness;
}

Expand Down

0 comments on commit 7c83230

Please sign in to comment.