use of bisq.desktop.main.overlays.windows.FeeOptionWindow in project bisq-desktop by bisq-network.
the class CreateOfferView method showFeeOption.
private void showFeeOption() {
Coin makerFee = model.dataModel.getMakerFee(false);
String missingBsq = null;
if (makerFee != null) {
missingBsq = Res.get("popup.warning.insufficientBsqFundsForBtcFeePayment", bsqFormatter.formatCoinWithCode(makerFee.subtract(model.dataModel.getBsqBalance())));
} else if (model.dataModel.getBsqBalance().isZero())
missingBsq = Res.get("popup.warning.noBsqFundsForBtcFeePayment");
new FeeOptionWindow(model.makerFeeWithCode, model.dataModel.isCurrencyForMakerFeeBtc(), model.dataModel.isBsqForFeeAvailable(), missingBsq, navigation, this::onShowPayFundsScreen).onSelectionChangedHandler(model::setIsCurrencyForMakerFeeBtc).onAction(this::onShowPayFundsScreen).hideCloseButton().show();
}
use of bisq.desktop.main.overlays.windows.FeeOptionWindow in project bisq-desktop by bisq-network.
the class TakeOfferView method showFeeOption.
private void showFeeOption() {
Coin makerFee = model.dataModel.getTakerFee(false);
String missingBsq = null;
if (makerFee != null) {
missingBsq = Res.get("popup.warning.insufficientBsqFundsForBtcFeePayment", bsqFormatter.formatCoinWithCode(makerFee.subtract(model.dataModel.getBsqBalance())));
} else if (model.dataModel.getBsqBalance().isZero())
missingBsq = Res.get("popup.warning.noBsqFundsForBtcFeePayment");
new FeeOptionWindow(model.takerFeeWithCode, model.dataModel.isCurrencyForTakerFeeBtc(), model.dataModel.isBsqForFeeAvailable(), missingBsq, navigation, this::onShowPayFundsScreen).onSelectionChangedHandler(model::setIsCurrencyForTakerFeeBtc).onAction(this::onShowPayFundsScreen).hideCloseButton().show();
}
Aggregations