mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-13 08:19:46 -05:00
whitespace cleanup to MutableOfferViewModel.java
This commit is contained in:
parent
f401f72896
commit
c621bc17a6
@ -687,11 +687,9 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
|||||||
if (minAmount.get() != null)
|
if (minAmount.get() != null)
|
||||||
minAmountValidationResult.set(isXmrInputValid(minAmount.get()));
|
minAmountValidationResult.set(isXmrInputValid(minAmount.get()));
|
||||||
} else if (amount.get() != null && xmrValidator.getMaxTradeLimit() != null && xmrValidator.getMaxTradeLimit().longValueExact() == OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT.longValueExact()) {
|
} else if (amount.get() != null && xmrValidator.getMaxTradeLimit() != null && xmrValidator.getMaxTradeLimit().longValueExact() == OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT.longValueExact()) {
|
||||||
|
if (Double.parseDouble(amount.get()) < HavenoUtils.atomicUnitsToXmr(Restrictions.getMinTradeAmount())) {
|
||||||
if (Double.parseDouble(amount.get()) < HavenoUtils.atomicUnitsToXmr(Restrictions.getMinTradeAmount())){
|
|
||||||
amountValidationResult.set(result);
|
amountValidationResult.set(result);
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
amount.set(HavenoUtils.formatXmr(xmrValidator.getMaxTradeLimit()));
|
amount.set(HavenoUtils.formatXmr(xmrValidator.getMaxTradeLimit()));
|
||||||
boolean isBuy = dataModel.getDirection() == OfferDirection.BUY;
|
boolean isBuy = dataModel.getDirection() == OfferDirection.BUY;
|
||||||
new Popup().information(Res.get(isBuy ? "popup.warning.tradeLimitDueAccountAgeRestriction.buyer" : "popup.warning.tradeLimitDueAccountAgeRestriction.seller",
|
new Popup().information(Res.get(isBuy ? "popup.warning.tradeLimitDueAccountAgeRestriction.buyer" : "popup.warning.tradeLimitDueAccountAgeRestriction.seller",
|
||||||
@ -700,7 +698,6 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
|||||||
.width(900)
|
.width(900)
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// We want to trigger a recalculation of the volume
|
// We want to trigger a recalculation of the volume
|
||||||
UserThread.execute(() -> {
|
UserThread.execute(() -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user