mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 10:56:24 +00:00
Change default max_order_size
This commit is contained in:
parent
18a22dcc36
commit
5e58f0c8ce
@ -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
|
||||||
|
@ -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"))
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user