feat: add MAKER_MM_REENTRY_ENABLED config + fix float combined check

- MAKER_MM_REENTRY_ENABLED=false disables re-entry (one cycle per market)
- Fix floating point bug: 0.1+0.5=0.6000000000000001 caused "combined > max"
  loop when MAKER_MM_MAX_COMBINED=0.60 — now rounds combined to 4dp before compare

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
direkturcrypto
2026-03-31 14:19:25 +07:00
co-authored by Claude Sonnet 4.6
parent 0ee19ce48a
commit 3a4dbf2b02
4 changed files with 6 additions and 2 deletions
+3
View File
@@ -92,6 +92,9 @@ MAKER_MM_POLL_INTERVAL=5
# Delay between re-entry cycles within the same market (seconds)
MAKER_MM_REENTRY_DELAY=30
# Set to false to disable re-entry — bot places one order per market then waits for next
MAKER_MM_REENTRY_ENABLED=true
# Price range for maker rebate eligibility (both sides must be in range)
# Polymarket rebates are earned on orders within ~30-70% range
MAKER_MM_MIN_PRICE=0.30