mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-07 03:19:26 +00:00
show security deposit from trade amount in take offer and trade details
Some checks failed
CI / build (macos-13) (push) Has been cancelled
CI / build (ubuntu-22.04) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Codacy Coverage Reporter / Publish coverage (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Some checks failed
CI / build (macos-13) (push) Has been cancelled
CI / build (ubuntu-22.04) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Codacy Coverage Reporter / Publish coverage (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
This commit is contained in:
parent
f053a274a4
commit
adcf158a90
2 changed files with 4 additions and 4 deletions
|
@ -368,11 +368,11 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
|
||||||
DisplayUtils.formatDateTime(offer.getDate()));
|
DisplayUtils.formatDateTime(offer.getDate()));
|
||||||
String value = Res.getWithColAndCap("shared.buyer") +
|
String value = Res.getWithColAndCap("shared.buyer") +
|
||||||
" " +
|
" " +
|
||||||
HavenoUtils.formatXmr(offer.getOfferPayload().getMaxBuyerSecurityDeposit(), true) +
|
HavenoUtils.formatXmr(takeOfferHandlerOptional.isPresent() ? offer.getOfferPayload().getBuyerSecurityDepositForTradeAmount(tradeAmount) : offer.getOfferPayload().getMaxBuyerSecurityDeposit(), true) +
|
||||||
" / " +
|
" / " +
|
||||||
Res.getWithColAndCap("shared.seller") +
|
Res.getWithColAndCap("shared.seller") +
|
||||||
" " +
|
" " +
|
||||||
HavenoUtils.formatXmr(offer.getOfferPayload().getMaxSellerSecurityDeposit(), true);
|
HavenoUtils.formatXmr(takeOfferHandlerOptional.isPresent() ? offer.getOfferPayload().getSellerSecurityDepositForTradeAmount(tradeAmount) : offer.getOfferPayload().getMaxSellerSecurityDeposit(), true);
|
||||||
addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("shared.securityDeposit"), value);
|
addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("shared.securityDeposit"), value);
|
||||||
|
|
||||||
if (reservedAmount != null) {
|
if (reservedAmount != null) {
|
||||||
|
|
|
@ -201,11 +201,11 @@ public class TradeDetailsWindow extends Overlay<TradeDetailsWindow> {
|
||||||
DisplayUtils.formatDateTime(trade.getDate()));
|
DisplayUtils.formatDateTime(trade.getDate()));
|
||||||
String securityDeposit = Res.getWithColAndCap("shared.buyer") +
|
String securityDeposit = Res.getWithColAndCap("shared.buyer") +
|
||||||
" " +
|
" " +
|
||||||
HavenoUtils.formatXmr(offer.getMaxBuyerSecurityDeposit(), true) +
|
HavenoUtils.formatXmr(trade.getBuyerSecurityDepositBeforeMiningFee(), true) +
|
||||||
" / " +
|
" / " +
|
||||||
Res.getWithColAndCap("shared.seller") +
|
Res.getWithColAndCap("shared.seller") +
|
||||||
" " +
|
" " +
|
||||||
HavenoUtils.formatXmr(offer.getMaxSellerSecurityDeposit(), true);
|
HavenoUtils.formatXmr(trade.getSellerSecurityDepositBeforeMiningFee(), true);
|
||||||
addConfirmationLabelTextField(gridPane, ++rowIndex, Res.get("shared.securityDeposit"), securityDeposit);
|
addConfirmationLabelTextField(gridPane, ++rowIndex, Res.get("shared.securityDeposit"), securityDeposit);
|
||||||
|
|
||||||
NodeAddress arbitratorNodeAddress = trade.getArbitratorNodeAddress();
|
NodeAddress arbitratorNodeAddress = trade.getArbitratorNodeAddress();
|
||||||
|
|
Loading…
Reference in a new issue