fix: penalize pool/vault tokens in asset search scoring#222
Conversation
Pool tokens like "Morpho Hadjime USDC Prime Pool" were outscoring the real "USD Coin" due to name-contains-term bonus. Add a -500 penalty for pool assets in scoreMatch so real tokens always rank first. Includes e2e tests validating 20 tokens across multiple networks. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
Disabled knowledge base sources:
📝 WalkthroughWalkthroughA pool asset penalty (500-point deduction) is implemented in the asset search scoring mechanism to ensure real tokens rank higher than pool tokens in results. A comprehensive test suite validates this behavior across multiple assets and networks. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
AssetService.scoreMatchdue to name-contains-term bonus-500score penalty for pool assets, ensuring real tokens always rank firstTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests