Skip to content

feat(pyth-lazer) Add funding_rate_interval to feed properties #2923

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

Merged
merged 3 commits into from
Aug 4, 2025

Conversation

bplatak
Copy link
Contributor

@bplatak bplatak commented Aug 4, 2025

Summary

Add PriceFeedProperty::FundingRateInterval for the new funding rate interval field

Rationale

Needed for PF-278

How has this been tested?

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

Copy link

linear bot commented Aug 4, 2025

Copy link

vercel bot commented Aug 4, 2025

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

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2025 10:36pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2025 10:36pm
developer-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2025 10:36pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2025 10:36pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2025 10:36pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2025 10:36pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2025 10:36pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2025 10:36pm

@@ -176,6 +176,7 @@ pub enum PriceFeedProperty {
FundingRate,
FundingTimestamp,
// More fields may be added later.
FundingRateInterval,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put the comment under this?

) -> std::io::Result<()> {
match value {
Some(value) => {
writer.write_u8(1)?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of this 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The write protocol for options uses the first byte to indicate presence of the field.

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.

2 participants