Conversation
… incremental detection and pagination handling
…ATH and purchase price logic
This was referenced Nov 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Core Changes
1. Asynchronous Job System
pending→processing→completed/failed2. Multi-Layer Caching
3. Dynamic Rate Limiting
4. Per-Token SOL Volume Tracking ⭐ NEW
totalVolumeUSDandtotalVolumeSOLvolumeSOL = (tokenUSD / txTotalUSD) × txSOLChange📊 Database Schema
New Tables (5)
wallet_analysis_jobs- Job tracking with status and progresstokens- Permanent token metadata (symbol, name)token_price_cache- Cached BirdEye pricestransaction_cache- Lightweight decoded transactionstoken_analysis_results⭐ - Per-token statistics with USD + SOL volumesRemoved Tables (2)
wallet_analysis_cache(replaced by job system)wallet_insights(out of scope)Key Schema Changes ⭐
totalVolume→totalVolumeUSD(explicit)totalVolumeSOL(per-token SOL volume)(jobId, mint)for fast lookups📈 Performance
Batch Scaling
Target: ~60 seconds per batch regardless of load
🔧 Files Changed
New Files (11)
src/services/workers/analysisWorker.ts(526 lines) - Main workersrc/services/analysis/tokenResults.ts(168 lines) ⭐ - Token stats with SOLsrc/services/cache/*.ts(579 lines) - Caching layersrc/utils/dynamicRateLimiter.ts(203 lines) - Rate limitingModified Files (10)
src/schemas/wallet-analysis.ts⭐ - New schema withtotalVolumeUSD+totalVolumeSOLsrc/services/api/birdeyes.ts- Consolidated (merged 2 files → 1)src/services/sendoAnalyserService.ts- Integrated with job systemsrc/routes/index.ts- Async job endpointsDeleted Files (1)
src/services/api/birdeyeWithDynamicLimiter.ts(merged)Net: +2,496 lines, -337 lines
✅ Benefits
Performance
Reliability
Accuracy ⭐
Maintainability
🎉 Result
Transformed from synchronous single-request system to robust async architecture with: