Skip to content

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

@linear
Copy link

linear bot commented Aug 4, 2025

@vercel
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

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.

3 participants