Skip to content
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

feat(usd): further refactor SpotPrice updater #5297

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

alfetopito
Copy link
Collaborator

Summary

Use UsdPriceUpdater instead of triggering new requests from here

I realized that there was still duplication and I could re-use the same method of fetching USD values we already have instead of triggering new requests every where

In this change, I added useUsdPrices, that adds the required currency to the UsdPriceUpdater queue and used it on SpotPriceUpdater

To Test

  1. Market prices should load as usual in Limit/Twap forms and come from BFF

Use UsdPriceUpdater instead of triggering new requests from here
@alfetopito alfetopito self-assigned this Jan 15, 2025
Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cowfi ✅ Ready (Inspect) Visit Preview Jan 16, 2025 1:39pm
explorer-dev ✅ Ready (Inspect) Visit Preview Jan 16, 2025 1:39pm
swap-dev ✅ Ready (Inspect) Visit Preview Jan 16, 2025 1:39pm
3 Skipped Deployments
Name Status Preview Updated (UTC)
cosmos ⬜️ Ignored (Inspect) Visit Preview Jan 16, 2025 1:39pm
sdk-tools ⬜️ Ignored (Inspect) Visit Preview Jan 16, 2025 1:39pm
widget-configurator ⬜️ Ignored (Inspect) Visit Preview Jan 16, 2025 1:39pm

@elena-zh
Copy link
Contributor

LGTM (with the new fix)

@alfetopito
Copy link
Collaborator Author

Please post merge review

@alfetopito alfetopito merged commit 85e4679 into develop Jan 16, 2025
13 checks passed
@alfetopito alfetopito deleted the feat/spot-price-refactor-v2 branch January 16, 2025 15:07
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants