Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: make order quantity limits configurable #815

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Nov 4, 2020

Add --inittakerlotlimit (default 6) and --abstakerlotlimit (default 375). These are AuthManager settings, and thus DEX-wide rather than market specific. This also tweaks the swap history amount coefficients to move the limit more quickly, otherwise it's harder to get close to the abstakerlotlimit. These limits are still applied per-market per-user rather than considering swap history and actively settling amounts across markets.

The likely-taker tests in the market package are improved.

As an experiment, the BookedLotLimit setting used by the Market is made into a per-market setting that can be configured in markets.json e.g. "userBookedLotLimit": 900. The default if it is not set is effectively no limit (max uint32).

Ancillary changes:

  • max log zips is now 32
  • default btimeout is 12 min (pertaining to recent discussion about bitcoin core's 10 minute block download timeout)

server/auth/auth.go Show resolved Hide resolved
@chappjc chappjc merged commit 5771186 into decred:master Nov 11, 2020
@chappjc chappjc deleted the order-qty-up branch November 11, 2020 18:21
@chappjc chappjc added this to the 0.2 milestone Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants