Skip to content

feat: replace hardcoded price map with real-time Jupiter API v3 (P0-06) - #7

Merged
EKF0 merged 1 commit into
mainfrom
feat/p0-06-real-time-pricing
May 25, 2026
Merged

feat: replace hardcoded price map with real-time Jupiter API v3 (P0-06)#7
EKF0 merged 1 commit into
mainfrom
feat/p0-06-real-time-pricing

Conversation

@EKF0

@EKF0 EKF0 commented May 25, 2026

Copy link
Copy Markdown
Owner

This pull request integrates the public Jupiter Price API v3 to fetch dynamic, real-time token valuations and prices for connected wallets inside the portfolio resolver. It also syncs other completed local changes and adds full Vitest unit testing coverage.

Changes:

  1. Replaced the static, hardcoded price map with dynamic bulk fetching from Jupiter Price API v3 in lib/solana/balances.ts.
  2. Created a 30-second in-memory pricing cache to optimize request load and prevent rate limit issues.
  3. Implemented robust fallback logic that reverts to stale cache or hardcoded values upon network errors.
  4. Added Vitest unit tests in test/price-service.test.ts validating bulk fetching, errors, and enrichment logic.
  5. Synchronized outstanding local improvements across app shell, navigation, Creator Lab, and database schemas.

@vercel

vercel Bot commented May 25, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Hobby accounts are limited to daily cron jobs. This cron expression (*/5 * * * *) would run more than once per day. Upgrade to the Pro plan to unlock all Cron Jobs features on Vercel.

Learn More: https://vercel.link/3Fpeeb1

@EKF0
EKF0 merged commit 7fd1712 into main May 25, 2026
0 of 3 checks passed
@supabase

supabase Bot commented May 25, 2026

Copy link
Copy Markdown

Updates to Preview Branch (feat/p0-06-real-time-pricing) ↗︎

Deployments Status Updated
Database 🔄 Mon, 25 May 2026 16:48:17 GMT
Services 🔄 Mon, 25 May 2026 16:48:17 GMT
APIs 🔄 Mon, 25 May 2026 16:48:17 GMT

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations 🔄 Mon, 25 May 2026 16:48:17 GMT
Migrations 🔄 Mon, 25 May 2026 16:48:17 GMT
Seeding 🔄 Mon, 25 May 2026 16:48:17 GMT
Edge Functions 🔄 Mon, 25 May 2026 16:48:17 GMT

Preview Branch Database Settings ↗︎.
Learn more about Supabase Branching ↗︎.

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