Remove logs on gmx sdk

This commit is contained in:
2025-10-06 00:03:34 +07:00
parent dac0a9641f
commit 6cbfff38d0

View File

@@ -1218,10 +1218,6 @@ export const getPositionHistoryImpl = async (
decreaseOrderTypes.includes(action.orderType); decreaseOrderTypes.includes(action.orderType);
}); });
console.log(closeEvents);
console.log(`📉 Found ${closeEvents.length} position close events (filtered from ${tradeActions.length} total actions)`);
// Transform close events into Position objects with actual PnL // Transform close events into Position objects with actual PnL
let positions: Position[] = []; let positions: Position[] = [];
@@ -1343,8 +1339,6 @@ export const getPositionHistoryImpl = async (
}); });
} }
console.log(`✅ Returned ${positions.length} closed positions with actual GMX PnL data`);
// Apply ticker filter server-side to reduce payload
if (ticker) { if (ticker) {
positions = positions.filter(p => p.ticker === (ticker as any)); positions = positions.filter(p => p.ticker === (ticker as any));
} }