From ed93096a4b46b8ef9e92e26b1215d6af14840149 Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 28 Oct 2023 10:48:48 -0400 Subject: [PATCH] arbitrator reserved trade amount = 0 --- core/src/main/java/haveno/core/trade/Trade.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/haveno/core/trade/Trade.java b/core/src/main/java/haveno/core/trade/Trade.java index 267556f6..c05e7ab4 100644 --- a/core/src/main/java/haveno/core/trade/Trade.java +++ b/core/src/main/java/haveno/core/trade/Trade.java @@ -1607,12 +1607,8 @@ public abstract class Trade implements Tradable, Model { } public BigInteger getReservedAmount() { - if (!isDepositsPublished() || isPayoutPublished()) return BigInteger.valueOf(0); - if (isArbitrator()) { - return getAmount().add(getBuyer().getSecurityDeposit()).add(getSeller().getSecurityDeposit()); // arbitrator reserved balance is sum of amounts sent to multisig - } else { - return isBuyer() ? getBuyer().getSecurityDeposit() : getAmount().add(getSeller().getSecurityDeposit()); - } + if (isArbitrator() || !isDepositsPublished() || isPayoutPublished()) return BigInteger.valueOf(0); + return isBuyer() ? getBuyer().getSecurityDeposit() : getAmount().add(getSeller().getSecurityDeposit()); } public Price getPrice() {