Remove logs on gmx sdk
This commit is contained in:
@@ -1218,10 +1218,6 @@ export const getPositionHistoryImpl = async (
|
||||
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
|
||||
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) {
|
||||
positions = positions.filter(p => p.ticker === (ticker as any));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user