diff --git a/.env-sample b/.env-sample index ac1ec6a9..7a1f48ab 100644 --- a/.env-sample +++ b/.env-sample @@ -108,7 +108,7 @@ MAX_PUBLIC_ORDERS = 100 # Minimum order size (must be bigger than DB constrain in /robosats/settings.py MIN_TRADE, currently 20_000 Sats) MIN_ORDER_SIZE = 20000 # Minimum order size (must be smaller than DB constrain in /robosats/settings.py MAX_TRADE, currently 5_000_000 Sats) -MAX_ORDER_SIZE = 5000000 +MAX_ORDER_SIZE = 500000 # For CLTV_expiry calculation # Assume 8 min/block assumed diff --git a/api/logics.py b/api/logics.py index 51ec07af..54918014 100644 --- a/api/logics.py +++ b/api/logics.py @@ -19,7 +19,7 @@ ESCROW_USERNAME = config("ESCROW_USERNAME") PENALTY_TIMEOUT = int(config("PENALTY_TIMEOUT")) MIN_ORDER_SIZE = config("MIN_ORDER_SIZE", cast=int, default=20_000) -MAX_ORDER_SIZE = config("MAX_ORDER_SIZE", cast=int, default=5_000_000) +MAX_ORDER_SIZE = config("MAX_ORDER_SIZE", cast=int, default=500_000) EXP_MAKER_BOND_INVOICE = int(config("EXP_MAKER_BOND_INVOICE")) EXP_TAKER_BOND_INVOICE = int(config("EXP_TAKER_BOND_INVOICE")) diff --git a/api/views.py b/api/views.py index 453c69e4..47da524e 100644 --- a/api/views.py +++ b/api/views.py @@ -913,7 +913,7 @@ class LimitView(ListAPIView): def get(self, request): # Trade limits as BTC min_trade = config("MIN_ORDER_SIZE", cast=int, default=20_000) / 100_000_000 - max_trade = config("MAX_ORDER_SIZE", cast=int, default=5_000_000) / 100_000_000 + max_trade = config("MAX_ORDER_SIZE", cast=int, default=500_000) / 100_000_000 payload = {} queryset = Currency.objects.all().order_by("currency")