mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Only validate security deposit amount if used
This commit is contained in:
parent
4377a10007
commit
af4994534a
1 changed files with 5 additions and 1 deletions
|
@ -1221,13 +1221,17 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
|||
boolean inputDataValid = isBtcInputValid(amount.get()).isValid &&
|
||||
isBtcInputValid(minAmount.get()).isValid &&
|
||||
isPriceInputValid(price.get()).isValid &&
|
||||
securityDepositValidator.validate(buyerSecurityDeposit.get()).isValid &&
|
||||
dataModel.getPrice().get() != null &&
|
||||
dataModel.getPrice().get().getValue() != 0 &&
|
||||
isVolumeInputValid(volume.get()).isValid &&
|
||||
isVolumeInputValid(DisplayUtils.formatVolume(dataModel.getMinVolume().get())).isValid &&
|
||||
dataModel.isMinAmountLessOrEqualAmount();
|
||||
|
||||
// validating the percentage deposit value only makes sense if it is actually used
|
||||
if (!dataModel.isMinBuyerSecurityDeposit()) {
|
||||
inputDataValid = inputDataValid && securityDepositValidator.validate(buyerSecurityDeposit.get()).isValid;
|
||||
}
|
||||
|
||||
isNextButtonDisabled.set(!inputDataValid);
|
||||
// boolean notSufficientFees = dataModel.isWalletFunded.get() && dataModel.isMainNet.get() && !dataModel.isFeeFromFundingTxSufficient.get();
|
||||
//isPlaceOfferButtonDisabled.set(createOfferRequested || !inputDataValid || notSufficientFees);
|
||||
|
|
Loading…
Add table
Reference in a new issue