Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add alternative popup "no BSQ while Synchronizing DAO" #5766

Closed
wants to merge 15 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -430,7 +430,7 @@ private void onTakeOffer() {
}

if (!model.dataModel.isTakerFeeValid()) {
showInsufficientBsqFundsForBtcFeePaymentPopup();
showNoBsqFundsAvailabeForBtcFeePaymentPopup();
return;
}

Expand Down Expand Up @@ -941,7 +941,7 @@ private void showFeeOption() {
String missingBsq = null;
if((daoFacade.getChainHeight() != bsqWalletService.getBestChainHeight()) || (bsqWalletService.getBestChainHeight() == 0))
message = Res.get("popup.warning.whileSynchronizingNoBsqFundsForBtcFeePayment");
else if (takerFee != null)
else if (takerFee != null)
missingBsq = Res.get("popup.warning.insufficientBsqFundsForBtcFeePayment",
bsqFormatter.formatCoinWithCode(takerFee.subtract(model.dataModel.getUsableBsqBalance())));
else if (model.dataModel.getUsableBsqBalance().isZero())
Expand Down Expand Up @@ -1237,7 +1237,7 @@ private VBox getTradeFeeFieldsBox() {
private void showNoBsqFundsAvailabeForBtcFeePaymentPopup() {
Coin takerFee = model.dataModel.getTakerFee(false);
String message = null;
if((daoFacade.getChainHeight() != bsqWalletService.getBestChainHeight()) || (bsqWalletService.getBestChainHeight() == 0)){
if ((daoFacade.getChainHeight() != bsqWalletService.getBestChainHeight()) || (bsqWalletService.getBestChainHeight() == 0)){
message = Res.get("popup.warning.whileSynchronizingNoBsqFundsForBtcFeePayment");
else if (takerFee != null) {
message = Res.get("popup.warning.insufficientBsqFundsForBtcFeePayment",
Expand Down