mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-13 00:45:29 -04:00
cap stagenet fiat offers to 1 xmr until trade credits supported (#355)
This commit is contained in:
parent
7157defea5
commit
4a171c9baa
4 changed files with 43 additions and 40 deletions
|
@ -72,7 +72,9 @@ public class TextFieldWithIcon extends AnchorPane {
|
|||
}
|
||||
|
||||
public void setText(String text) {
|
||||
textField.setText(text);
|
||||
dummyTextField.setText(text);
|
||||
UserThread.execute(() -> {
|
||||
textField.setText(text);
|
||||
dummyTextField.setText(text);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -717,9 +717,10 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
|||
minAmountValidationResult.set(isBtcInputValid(minAmount.get()));
|
||||
} else if (amount.get() != null && btcValidator.getMaxTradeLimit() != null && btcValidator.getMaxTradeLimit().value == OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT.value) {
|
||||
amount.set(btcFormatter.formatCoin(btcValidator.getMaxTradeLimit()));
|
||||
new Popup().information(Res.get("popup.warning.tradeLimitDueAccountAgeRestriction.buyer",
|
||||
btcFormatter.formatCoinWithCode(OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT),
|
||||
Res.get("offerbook.warning.newVersionAnnouncement")))
|
||||
boolean isBuy = dataModel.getDirection() == OfferDirection.BUY;
|
||||
new Popup().information(Res.get(isBuy ? "popup.warning.tradeLimitDueAccountAgeRestriction.buyer" : "popup.warning.tradeLimitDueAccountAgeRestriction.seller",
|
||||
btcFormatter.formatCoinWithCode(OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT),
|
||||
Res.get("offerbook.warning.newVersionAnnouncement")))
|
||||
.width(900)
|
||||
.show();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue