-
Notifications
You must be signed in to change notification settings - Fork 198
fix: update Polygon CoinGecko ID from matic-network to polygon-ecosystem-token #11579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughUpdated the CoinGecko asset ID for Polygon from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
⛔ Files ignored due to path filters (17)
📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
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 |
NeOMakinG
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…tem-token After the MATIC to POL migration on September 4, 2024, CoinGecko deprecated the 'matic-network' ID which now returns empty price data. This updates the mapping to use 'polygon-ecosystem-token' which has live pricing. Fixes #10887 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
dece477 to
2fbc463
Compare

Description
Updates the CoinGecko ID mapping for Polygon's native token from
matic-networktopolygon-ecosystem-token.After the MATIC to POL migration on September 4, 2024, CoinGecko deprecated the
matic-networkID. The old ID now returns empty price data (current_price: {},circulating_supply: 0.0), causing Polygon to display as $0.00 in the app.The new
polygon-ecosystem-tokenID returns live pricing data (~$0.126 USD currently).Confirmed we can still swap: https://jam.dev/c/036b5160-480f-4962-a9ad-c2b91fa2318e
Issue (if applicable)
closes #10887
Risk
Low Risk - This is a simple string mapping change in the CoinGecko adapter. No transaction logic, wallet interactions, or contract calls are affected.
None. This only affects price display data fetched from CoinGecko.
Testing
Engineering
/assets/eip155:137/slip44:60)Alternatively, verify via API:
curl https://api.coingecko.com/api/v3/coins/matic-networkreturns emptycurrent_pricecurl https://api.coingecko.com/api/v3/coins/polygon-ecosystem-tokenreturns live price dataOperations
Test in preview environment:
Screenshots (if applicable)
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.