Skip to content

Conversation

@tejasbadadare
Copy link
Contributor

@tejasbadadare tejasbadadare commented Apr 29, 2025

Summary

Remove unnecessary priceIds parameter from updatePriceFeeds

Rationale

The updatePriceFeeds function takes updateData and priceIds from the Keeper, and verifies that the provided priceIds match the subscription’s priceIds. However, this isn't necessary as we can use the subscription param's priceIds list, and the the Pyth.parsePriceFeedUpdatesWithSlots call validates that the updateData contains the desired priceIds.

If updateData contains any extra prices not matching the provided priceIds, they will be skipped and will not appear in the result, and if updateData doesn't contain enough prices for the subscription's feeds, it will revert with PythErrors.PriceFeedNotFoundWithinRange()

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@vercel
Copy link

vercel bot commented Apr 29, 2025

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

Name Status Preview Comments Updated (UTC)
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2025 5:37pm
insights ❌ Failed (Inspect) Apr 29, 2025 5:37pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2025 5:37pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2025 5:37pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Apr 29, 2025 5:37pm
component-library ⬜️ Ignored (Inspect) Apr 29, 2025 5:37pm

@tejasbadadare tejasbadadare changed the title fix(pulse): remove priceids from updatepricefeeds fix(pulse): remove priceIds parameter from updatePriceFeeds Apr 29, 2025
@tejasbadadare tejasbadadare merged commit b44aea5 into main Apr 30, 2025
9 of 10 checks passed
@tejasbadadare tejasbadadare deleted the tb/pulse/remove-priceids-from-updatepricefeeds branch April 30, 2025 17:52
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.

3 participants