Skip to content

Commit

Permalink
show security deposit from trade amount in take offer and trade details
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Dec 24, 2024
1 parent f053a27 commit adcf158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,11 @@ private void addContent() {
DisplayUtils.formatDateTime(offer.getDate()));
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") +
" " +
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);

if (reservedAmount != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ else if (trade.getPayoutTxId() != null)
DisplayUtils.formatDateTime(trade.getDate()));
String securityDeposit = Res.getWithColAndCap("shared.buyer") +
" " +
HavenoUtils.formatXmr(offer.getMaxBuyerSecurityDeposit(), true) +
HavenoUtils.formatXmr(trade.getBuyerSecurityDepositBeforeMiningFee(), true) +
" / " +
Res.getWithColAndCap("shared.seller") +
" " +
HavenoUtils.formatXmr(offer.getMaxSellerSecurityDeposit(), true);
HavenoUtils.formatXmr(trade.getSellerSecurityDepositBeforeMiningFee(), true);
addConfirmationLabelTextField(gridPane, ++rowIndex, Res.get("shared.securityDeposit"), securityDeposit);

NodeAddress arbitratorNodeAddress = trade.getArbitratorNodeAddress();
Expand Down

0 comments on commit adcf158

Please sign in to comment.