CRITICAL: After TP1 closes 75%, the on-chain stop loss orders were NOT being updated - Position Manager was tracking new SL price internally but not updating Drift orders - Old SL orders (e.g., $181.69) remained active even after TP1 at $185.28 - This prevented the 'move SL to breakeven after TP1' logic from working Fix: - After TP1 hits, cancel ALL old orders on-chain - Place new SL orders at updated price (breakeven + configured %) - Place remaining TP2 order for the 25% runner position - Maintains dual-stop system if enabled Result: SL will now actually move up on Drift UI after TP1 fires
31 KiB
31 KiB