Problem: Verifier can't distinguish OLD positions from NEW positions at same symbol - User opened manual trade with SL working - Verifier detected 6 old closed DB records (150-1064 min ago) - All showed "15.45 tokens open on Drift" (user's CURRENT trade!) - Automatic retry close removed user's SL orders Root Cause: Lines 279-283 call closePosition() for every mismatch - No verification if Drift position is OLD (should close) or NEW (active trade) - No position ID/timestamp matching - Result: Closes ACTIVE trades when cleaning up old database records Solution: DISABLED automatic retry close (lines 276-298) - Added BUG #82 warning logs - Requires manual intervention if true orphan detected - Will add proper position verification in follow-up fix Impact: Stops SL removal on active trades User incident: After Bug #81 fix deployed, THIS bug was killing SLs Deployment: Dec 10, 2025 11:06 CET
14 KiB
14 KiB