arbitrator transactions show maker and taker fees

This commit is contained in:
woodser 2025-05-28 09:18:20 -04:00 committed by woodser
parent ddab170210
commit a37654e116
2 changed files with 10 additions and 0 deletions

View file

@ -1138,6 +1138,8 @@ funds.tx.disputeLost=Lost dispute case: {0}
funds.tx.collateralForRefund=Refund collateral: {0}
funds.tx.timeLockedPayoutTx=Time locked payout tx: {0}
funds.tx.refund=Refund from arbitration: {0}
funds.tx.makerTradeFee=Maker fee: {0}
funds.tx.takerTradeFee=Taker fee: {0}
funds.tx.unknown=Unknown reason: {0}
funds.tx.noFundsFromDispute=No refund from dispute
funds.tx.receivedFunds=Received funds

View file

@ -22,6 +22,7 @@ import com.google.common.base.Suppliers;
import haveno.core.locale.Res;
import haveno.core.offer.Offer;
import haveno.core.offer.OpenOffer;
import haveno.core.trade.ArbitratorTrade;
import haveno.core.trade.HavenoUtils;
import haveno.core.trade.Tradable;
import haveno.core.trade.Trade;
@ -159,6 +160,13 @@ public class TransactionsListItem {
}
} else {
details = Res.get("funds.tx.unknown", tradeId);
if (trade instanceof ArbitratorTrade) {
if (txId.equals(trade.getMaker().getDepositTxHash())) {
details = Res.get("funds.tx.makerTradeFee", tradeId);
} else if (txId.equals(trade.getTaker().getDepositTxHash())) {
details = Res.get("funds.tx.takerTradeFee", tradeId);
}
}
}
}
}