Skip to content

Commit

Permalink
Change default max_order_size
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Jan 9, 2024
1 parent 18a22dc commit 5e58f0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion api/logics.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
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"))
Expand Down
2 changes: 1 addition & 1 deletion api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5e58f0c

Please sign in to comment.