mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-24 14:50:28 -04:00
arbitrator transactions show maker and taker fees
This commit is contained in:
parent
ddab170210
commit
a37654e116
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue