- Added console.log debugging to closePosition function - Logs: percentToClose, position.size, calculated sizeToClose, minimum check - Logs: Override decision if size below minimum - Purpose: Investigate why TP1 closes 100% instead of configured 60% - User reported: Telegram shows '60% closed, 40% runner' but position fully closes - Files changed: lib/drift/orders.ts (lines 500-522)
35 KiB
35 KiB