From 9b79faf29afde2cab6115493ccf115c4b33188db Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 10 Nov 2023 15:56:46 -0500 Subject: [PATCH] increase max trade limit to 64 xmr --- core/src/main/java/haveno/core/offer/OfferRestrictions.java | 2 +- core/src/main/java/haveno/core/payment/TradeLimits.java | 2 +- core/src/main/java/haveno/core/xmr/wallet/Restrictions.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/haveno/core/offer/OfferRestrictions.java b/core/src/main/java/haveno/core/offer/OfferRestrictions.java index 03e66fc8..08233daf 100644 --- a/core/src/main/java/haveno/core/offer/OfferRestrictions.java +++ b/core/src/main/java/haveno/core/offer/OfferRestrictions.java @@ -37,7 +37,7 @@ public class OfferRestrictions { return new Date().after(REQUIRE_TOR_NODE_ADDRESS_V3_DATE) && Config.baseCurrencyNetwork().isMainnet(); } - public static BigInteger TOLERATED_SMALL_TRADE_AMOUNT = HavenoUtils.xmrToAtomicUnits(2.0); + public static BigInteger TOLERATED_SMALL_TRADE_AMOUNT = HavenoUtils.xmrToAtomicUnits(2.5); static boolean hasOfferMandatoryCapability(Offer offer, Capability mandatoryCapability) { Map extraDataMap = offer.getExtraDataMap(); diff --git a/core/src/main/java/haveno/core/payment/TradeLimits.java b/core/src/main/java/haveno/core/payment/TradeLimits.java index e41ec842..3239df18 100644 --- a/core/src/main/java/haveno/core/payment/TradeLimits.java +++ b/core/src/main/java/haveno/core/payment/TradeLimits.java @@ -31,7 +31,7 @@ import java.math.BigInteger; @Slf4j @Singleton public class TradeLimits { - private static final BigInteger MAX_TRADE_LIMIT = HavenoUtils.xmrToAtomicUnits(20.0); // max trade limit for lowest risk payment method. Others will get derived from that. + private static final BigInteger MAX_TRADE_LIMIT = HavenoUtils.xmrToAtomicUnits(64.0); // max trade limit for lowest risk payment method. Others will get derived from that. @Nullable @Getter private static TradeLimits INSTANCE; diff --git a/core/src/main/java/haveno/core/xmr/wallet/Restrictions.java b/core/src/main/java/haveno/core/xmr/wallet/Restrictions.java index 6312b395..18056e53 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/Restrictions.java +++ b/core/src/main/java/haveno/core/xmr/wallet/Restrictions.java @@ -28,7 +28,7 @@ public class Restrictions { public static BigInteger MIN_BUYER_SECURITY_DEPOSIT = HavenoUtils.xmrToAtomicUnits(0.1); // For the seller we use a fixed one as there is no way the seller can cancel the trade // To make it editable would just increase complexity. - public static BigInteger SELLER_SECURITY_DEPOSIT = MIN_BUYER_SECURITY_DEPOSIT; + public static BigInteger MIN_SELLER_SECURITY_DEPOSIT = MIN_BUYER_SECURITY_DEPOSIT; // At mediation we require a min. payout to the losing party to keep incentive for the trader to accept the // mediated payout. For Refund agent cases we do not have that restriction. private static BigInteger MIN_REFUND_AT_MEDIATED_DISPUTE; @@ -77,7 +77,7 @@ public class Restrictions { } public static BigInteger getMinSellerSecurityDeposit() { - return SELLER_SECURITY_DEPOSIT; + return MIN_SELLER_SECURITY_DEPOSIT; } // This value must be lower than MIN_BUYER_SECURITY_DEPOSIT and SELLER_SECURITY_DEPOSIT