fix: create per network custom liquidity and volume trending params#24730
fix: create per network custom liquidity and volume trending params#24730sahar-fehri merged 3 commits intomainfrom
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24730 +/- ##
=======================================
Coverage 79.82% 79.83%
=======================================
Files 4200 4200
Lines 107434 107454 +20
Branches 22402 22406 +4
=======================================
+ Hits 85761 85782 +21
+ Misses 15652 15650 -2
- Partials 6021 6022 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe changes are limited to the Key observations:
The Trending feature is a discovery/exploration feature that doesn't have corresponding E2E test coverage. The changes are well-tested at the unit level and don't impact any of the available E2E test tag areas (accounts, confirmations, identity, network, trade, wallet platform, card, rewards, perps, ramps, predictions, or Flask/Snaps). |
|



Description
Implements per-network minimum liquidity and volume thresholds for trending tokens to filter out low-quality tokens and "shitcoins" while preserving legitimate trending assets. Previously used global constants that were too restrictive (hiding valid tokens) for some chains.
Changelog
CHANGELOG entry: adds per network min value params for trending token
Related issues
Fixes: #24392
Fixes: #24727
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Implements per-network trending thresholds and integrates them into the trending hook.
TRENDING_NETWORK_THRESHOLDSandMULTI_CHAIN_BASELINE_THRESHOLDSwith chain-specific min liquidity/volume valuesgetMinLiquidityForChainsandgetMinVolume24hForChainsand uses them inuseTrendingRequestuseTrendingRequestto derive thresholds from selectedchainIds(supports overrides) and keeps existing polling/stale-request handlinggetTrendingTokensWritten by Cursor Bugbot for commit 331d484. This will update automatically on new commits. Configure here.