Change default max_order_size

This commit is contained in:
Reckless_Satoshi 2024-01-09 14:36:27 +00:00
parent 18a22dcc36
commit 5e58f0c8ce
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 3 additions and 3 deletions

View File

@ -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) # Minimum order size (must be bigger than DB constrain in /robosats/settings.py MIN_TRADE, currently 20_000 Sats)
MIN_ORDER_SIZE = 20000 MIN_ORDER_SIZE = 20000
# Minimum order size (must be smaller than DB constrain in /robosats/settings.py MAX_TRADE, currently 5_000_000 Sats) # 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 # For CLTV_expiry calculation
# Assume 8 min/block assumed # Assume 8 min/block assumed

View File

@ -19,7 +19,7 @@ ESCROW_USERNAME = config("ESCROW_USERNAME")
PENALTY_TIMEOUT = int(config("PENALTY_TIMEOUT")) PENALTY_TIMEOUT = int(config("PENALTY_TIMEOUT"))
MIN_ORDER_SIZE = config("MIN_ORDER_SIZE", cast=int, default=20_000) 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_MAKER_BOND_INVOICE = int(config("EXP_MAKER_BOND_INVOICE"))
EXP_TAKER_BOND_INVOICE = int(config("EXP_TAKER_BOND_INVOICE")) EXP_TAKER_BOND_INVOICE = int(config("EXP_TAKER_BOND_INVOICE"))

View File

@ -913,7 +913,7 @@ class LimitView(ListAPIView):
def get(self, request): def get(self, request):
# Trade limits as BTC # Trade limits as BTC
min_trade = config("MIN_ORDER_SIZE", cast=int, default=20_000) / 100_000_000 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 = {} payload = {}
queryset = Currency.objects.all().order_by("currency") queryset = Currency.objects.all().order_by("currency")