mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
[BUGFIX] Account validation was comparing user trade limit with MAX amount of offer
Fixes issues #3601 and #3537. The bug only happens when the offer has MIN-MAX value range. The new isAmountValidForOffer in PaymentAccountUtil.java consider only the MAX amount, but the button to take the offer is ungrayed considering the MIN amount, which causes the bug.
This commit is contained in:
parent
fb96ad3550
commit
894a2c6b90
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ public class PaymentAccountUtil {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue