feat: cancel cheap side on expensive fill + auto-redeem after resolution
- MAKER_MM_CANCEL_CHEAP_ON_EXP_FILL=true: when the expensive side fills first, immediately cancel the cheap side order and hold the token. After market ends, polls on-chain payoutDenominator until resolved, then calls redeemPositions to recover USDC. - Default false — existing symmetric maker behavior unchanged. - Redeem polls every 15s for up to 10 minutes after market close. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
ececad8574
commit
78c66a9b1e
@@ -102,6 +102,11 @@ MAKER_MM_REENTRY_ENABLED=true
|
||||
MAKER_MM_MIN_PRICE=0.30
|
||||
MAKER_MM_MAX_PRICE=0.69
|
||||
|
||||
# Cancel cheap side when expensive side fills first, then hold and auto-redeem at resolution
|
||||
# Example: YES=5c, NO=94c → NO fills first → cancel YES, hold NO, redeem after market ends
|
||||
# Default false (symmetric maker behavior — wait for both sides)
|
||||
MAKER_MM_CANCEL_CHEAP_ON_EXP_FILL=false
|
||||
|
||||
# ── Current Market Entry (optional) ─────────────────────────────
|
||||
# Allow entering markets that are already in progress
|
||||
# Useful for catching mid-market opportunities
|
||||
|
||||
Reference in New Issue
Block a user