diff --git a/core/src/main/java/haveno/core/xmr/model/XmrAddressEntry.java b/core/src/main/java/haveno/core/xmr/model/XmrAddressEntry.java index 43e007bba0..025d6cda69 100644 --- a/core/src/main/java/haveno/core/xmr/model/XmrAddressEntry.java +++ b/core/src/main/java/haveno/core/xmr/model/XmrAddressEntry.java @@ -44,10 +44,6 @@ public final class XmrAddressEntry implements PersistablePayload { AVAILABLE, OFFER_FUNDING, TRADE_PAYOUT; - - public boolean isReserved() { - return this == Context.OFFER_FUNDING || this == Context.TRADE_PAYOUT; - } } // keyPair can be null in case the object is created from deserialization as it is transient. diff --git a/desktop/src/main/java/haveno/desktop/main/funds/deposit/DepositView.java b/desktop/src/main/java/haveno/desktop/main/funds/deposit/DepositView.java index 19344b3a4f..17321b9103 100644 --- a/desktop/src/main/java/haveno/desktop/main/funds/deposit/DepositView.java +++ b/desktop/src/main/java/haveno/desktop/main/funds/deposit/DepositView.java @@ -326,7 +326,7 @@ public class DepositView extends ActivatableView { List addressEntries = xmrWalletService.getAddressEntries(); List items = new ArrayList<>(); for (XmrAddressEntry addressEntry : addressEntries) { - if (addressEntry.getContext().isReserved()) continue; + if (addressEntry.isTrade()) continue; // skip reserved for trade items.add(new DepositListItem(addressEntry, xmrWalletService, formatter, txsWithIncomingOutputs, subaddresses)); }