mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Merge pull request #1634 from ManfredKarrer/mk_master
Change link to F2F docs page
This commit is contained in:
commit
f573284754
6 changed files with 11 additions and 10 deletions
|
@ -250,7 +250,7 @@ public class FiatAccountsView extends ActivatableViewAndModel<GridPane, FiatAcco
|
||||||
new Popup<>().information(Res.get("payment.f2f.info"))
|
new Popup<>().information(Res.get("payment.f2f.info"))
|
||||||
.width(700)
|
.width(700)
|
||||||
.closeButtonText(Res.get("payment.f2f.info.openURL"))
|
.closeButtonText(Res.get("payment.f2f.info.openURL"))
|
||||||
.onClose(() -> GUIUtil.openWebPage("https://docs.bisq.network/#f2f"))
|
.onClose(() -> GUIUtil.openWebPage("https://docs.bisq.network/trading-rules.html#f2f-trading"))
|
||||||
.actionButtonText(Res.get("shared.iUnderstand"))
|
.actionButtonText(Res.get("shared.iUnderstand"))
|
||||||
.onAction(() -> doSaveNewAccount(paymentAccount))
|
.onAction(() -> doSaveNewAccount(paymentAccount))
|
||||||
.show();
|
.show();
|
||||||
|
|
|
@ -243,8 +243,8 @@ public class VoteResultView extends ActivatableView<GridPane, Void> implements B
|
||||||
cycleListItemList.clear();
|
cycleListItemList.clear();
|
||||||
bsqStateService.getCycles().forEach(cycle -> {
|
bsqStateService.getCycles().forEach(cycle -> {
|
||||||
List<Proposal> proposalsForCycle = proposalService.getProposalPayloads().stream()
|
List<Proposal> proposalsForCycle = proposalService.getProposalPayloads().stream()
|
||||||
.filter(proposalPayload -> cycleService.isTxInCycle(cycle, proposalPayload.getProposal().getTxId()))
|
|
||||||
.map(ProposalPayload::getProposal)
|
.map(ProposalPayload::getProposal)
|
||||||
|
.filter(proposal -> cycleService.isTxInCycle(cycle, proposal.getTxId()))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
List<EvaluatedProposal> evaluatedProposalsForCycle = voteResultService.getAllEvaluatedProposals().stream()
|
List<EvaluatedProposal> evaluatedProposalsForCycle = voteResultService.getAllEvaluatedProposals().stream()
|
||||||
|
|
|
@ -673,7 +673,7 @@ public abstract class MutableOfferDataModel extends OfferDataModel implements Bs
|
||||||
if (isHalCashAccount())
|
if (isHalCashAccount())
|
||||||
volumeByAmount = OfferUtil.getAdjustedVolumeForHalCash(volumeByAmount);
|
volumeByAmount = OfferUtil.getAdjustedVolumeForHalCash(volumeByAmount);
|
||||||
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
||||||
volumeByAmount = OfferUtil.getRoundedFiatVolume(volumeByAmount, tradeCurrencyCode.get());
|
volumeByAmount = OfferUtil.getRoundedFiatVolume(volumeByAmount);
|
||||||
|
|
||||||
volume.set(volumeByAmount);
|
volume.set(volumeByAmount);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
|
@ -695,7 +695,7 @@ public abstract class MutableOfferDataModel extends OfferDataModel implements Bs
|
||||||
if (isHalCashAccount())
|
if (isHalCashAccount())
|
||||||
value = OfferUtil.getAdjustedAmountForHalCash(value, price.get(), getMaxTradeLimit());
|
value = OfferUtil.getAdjustedAmountForHalCash(value, price.get(), getMaxTradeLimit());
|
||||||
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
||||||
value = OfferUtil.getRoundedFiatAmount(value, price.get(), tradeCurrencyCode.get(), getMaxTradeLimit());
|
value = OfferUtil.getRoundedFiatAmount(value, price.get(), getMaxTradeLimit());
|
||||||
|
|
||||||
calculateVolume();
|
calculateVolume();
|
||||||
|
|
||||||
|
|
|
@ -764,7 +764,7 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
||||||
if (dataModel.isHalCashAccount())
|
if (dataModel.isHalCashAccount())
|
||||||
volume = OfferUtil.getAdjustedVolumeForHalCash(volume);
|
volume = OfferUtil.getAdjustedVolumeForHalCash(volume);
|
||||||
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
||||||
volume = OfferUtil.getRoundedFiatVolume(volume, tradeCurrencyCode.get());
|
volume = OfferUtil.getRoundedFiatVolume(volume);
|
||||||
|
|
||||||
this.volume.set(btcFormatter.formatVolume(volume));
|
this.volume.set(btcFormatter.formatVolume(volume));
|
||||||
}
|
}
|
||||||
|
@ -979,7 +979,7 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
||||||
if (dataModel.isHalCashAccount())
|
if (dataModel.isHalCashAccount())
|
||||||
amount = OfferUtil.getAdjustedAmountForHalCash(amount, price, maxTradeLimit);
|
amount = OfferUtil.getAdjustedAmountForHalCash(amount, price, maxTradeLimit);
|
||||||
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
||||||
amount = OfferUtil.getRoundedFiatAmount(amount, price, tradeCurrencyCode.get(), maxTradeLimit);
|
amount = OfferUtil.getRoundedFiatAmount(amount, price, maxTradeLimit);
|
||||||
}
|
}
|
||||||
dataModel.setAmount(amount);
|
dataModel.setAmount(amount);
|
||||||
if (syncMinAmountWithAmount ||
|
if (syncMinAmountWithAmount ||
|
||||||
|
@ -1003,7 +1003,7 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
|
||||||
if (dataModel.isHalCashAccount())
|
if (dataModel.isHalCashAccount())
|
||||||
minAmount = OfferUtil.getAdjustedAmountForHalCash(minAmount, price, maxTradeLimit);
|
minAmount = OfferUtil.getAdjustedAmountForHalCash(minAmount, price, maxTradeLimit);
|
||||||
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
else if (CurrencyUtil.isFiatCurrency(tradeCurrencyCode.get()))
|
||||||
minAmount = OfferUtil.getRoundedFiatAmount(minAmount, price, tradeCurrencyCode.get(), maxTradeLimit);
|
minAmount = OfferUtil.getRoundedFiatAmount(minAmount, price, maxTradeLimit);
|
||||||
}
|
}
|
||||||
|
|
||||||
dataModel.setMinAmount(minAmount);
|
dataModel.setMinAmount(minAmount);
|
||||||
|
|
|
@ -496,7 +496,7 @@ class TakeOfferDataModel extends OfferDataModel {
|
||||||
if (offer.getPaymentMethod().getId().equals(PaymentMethod.HAL_CASH_ID))
|
if (offer.getPaymentMethod().getId().equals(PaymentMethod.HAL_CASH_ID))
|
||||||
volumeByAmount = OfferUtil.getAdjustedVolumeForHalCash(volumeByAmount);
|
volumeByAmount = OfferUtil.getAdjustedVolumeForHalCash(volumeByAmount);
|
||||||
else if (CurrencyUtil.isFiatCurrency(getCurrencyCode()))
|
else if (CurrencyUtil.isFiatCurrency(getCurrencyCode()))
|
||||||
volumeByAmount = OfferUtil.getRoundedFiatVolume(volumeByAmount, getCurrencyCode());
|
volumeByAmount = OfferUtil.getRoundedFiatVolume(volumeByAmount);
|
||||||
|
|
||||||
volume.set(volumeByAmount);
|
volume.set(volumeByAmount);
|
||||||
|
|
||||||
|
|
|
@ -296,7 +296,7 @@ class TakeOfferViewModel extends ActivatableWithDataModel<TakeOfferDataModel> im
|
||||||
// We only apply the rounding if the amount is variable (minAmount is lower as amount).
|
// We only apply the rounding if the amount is variable (minAmount is lower as amount).
|
||||||
// Otherwise we could get an amount lower then the minAmount set by rounding
|
// Otherwise we could get an amount lower then the minAmount set by rounding
|
||||||
Coin roundedAmount = OfferUtil.getRoundedFiatAmount(dataModel.getAmount().get(), tradePrice,
|
Coin roundedAmount = OfferUtil.getRoundedFiatAmount(dataModel.getAmount().get(), tradePrice,
|
||||||
dataModel.getCurrencyCode(), maxTradeLimit);
|
maxTradeLimit);
|
||||||
dataModel.applyAmount(roundedAmount);
|
dataModel.applyAmount(roundedAmount);
|
||||||
}
|
}
|
||||||
amount.set(btcFormatter.formatCoin(dataModel.getAmount().get()));
|
amount.set(btcFormatter.formatCoin(dataModel.getAmount().get()));
|
||||||
|
@ -566,7 +566,7 @@ class TakeOfferViewModel extends ActivatableWithDataModel<TakeOfferDataModel> im
|
||||||
} else if (CurrencyUtil.isFiatCurrency(dataModel.getCurrencyCode()) && !isAmountEqualMinAmount(amount)) {
|
} else if (CurrencyUtil.isFiatCurrency(dataModel.getCurrencyCode()) && !isAmountEqualMinAmount(amount)) {
|
||||||
// We only apply the rounding if the amount is variable (minAmount is lower as amount).
|
// We only apply the rounding if the amount is variable (minAmount is lower as amount).
|
||||||
// Otherwise we could get an amount lower then the minAmount set by rounding
|
// Otherwise we could get an amount lower then the minAmount set by rounding
|
||||||
amount = OfferUtil.getRoundedFiatAmount(amount, price, dataModel.getCurrencyCode(), maxTradeLimit);
|
amount = OfferUtil.getRoundedFiatAmount(amount, price, maxTradeLimit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataModel.applyAmount(amount);
|
dataModel.applyAmount(amount);
|
||||||
|
@ -577,6 +577,7 @@ class TakeOfferViewModel extends ActivatableWithDataModel<TakeOfferDataModel> im
|
||||||
return amount.value == offer.getMinAmount().value;
|
return amount.value == offer.getMinAmount().value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Getters
|
// Getters
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Reference in a new issue