Problem
IndexerWorker writes only to event tables (pool_created, swap_processed, etc.). Relational pool, swap, and position tables stay empty, breaking /pools, /swaps, portfolio views, and StatsWorker.
Acceptance criteria
Files
apps/api/src/indexer/indexer.worker.ts
Problem
IndexerWorkerwrites only to event tables (pool_created,swap_processed, etc.). Relationalpool,swap, andpositiontables stay empty, breaking/pools,/swaps, portfolio views, andStatsWorker.Acceptance criteria
PoolCreated→ upsertPool+TokenrecordsSwapProcessed→ insertSwap, update pool statePositionMinted/PositionBurned→ upsert or closePositioneventIdFiles
apps/api/src/indexer/indexer.worker.ts