Skip to content

feat: use CMS as primary token price source with LiFi fallback#860

Merged
kasparkallas merged 3 commits intomasterfrom
feat/cms-token-prices
Mar 26, 2026
Merged

feat: use CMS as primary token price source with LiFi fallback#860
kasparkallas merged 3 commits intomasterfrom
feat/cms-token-prices

Conversation

@kasparkallas
Copy link
Copy Markdown
Collaborator

@kasparkallas kasparkallas commented Mar 20, 2026

Summary

  • Switch primary token price source from LiFi to cms.superfluid.pro, with LiFi as a fallback when the CMS endpoint errors
  • Remove the getSupportedChainIds query (no longer needed since the CMS handles all supported chains)
  • Reduce token price cache TTL from 12 hours to 30 minutes for fresher data

Test plan

  • Verify token prices load correctly on various networks
  • Verify LiFi fallback kicks in when CMS is unavailable (can test by temporarily blocking the CMS URL)
  • Check that price display updates within 30 minutes after a price change

🤖 Generated with Claude Code

Switch token price fetching to use cms.superfluid.pro as the primary
source, falling back to LiFi API on error. This removes the need to
query LiFi for supported chains and reduces cache TTL from 12h to 30m.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
superfluid-dashboard Ready Ready Preview Mar 26, 2026 1:52pm

Request Review

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Individual per-token GET requests are now transparently batched into
a single POST /prices/{chainId}/current call per chain within a 50ms
window. Handles null prices and method:"none" by falling back to LiFi.
Also increases cache TTL to 1 hour.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kasparkallas kasparkallas merged commit de0f2ee into master Mar 26, 2026
24 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant