mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-26 15:59:37 -05:00
arbitrator reserved trade amount = 0
This commit is contained in:
parent
8f8d653871
commit
ed93096a4b
@ -1607,13 +1607,9 @@ 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 {
|
||||
if (isArbitrator() || !isDepositsPublished() || isPayoutPublished()) return BigInteger.valueOf(0);
|
||||
return isBuyer() ? getBuyer().getSecurityDeposit() : getAmount().add(getSeller().getSecurityDeposit());
|
||||
}
|
||||
}
|
||||
|
||||
public Price getPrice() {
|
||||
return Price.valueOf(offer.getCurrencyCode(), price);
|
||||
|
Loading…
Reference in New Issue
Block a user