-
Notifications
You must be signed in to change notification settings - Fork 277
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -176,6 +176,7 @@ pub enum PriceFeedProperty { | |||
FundingRate, | |||
FundingTimestamp, | |||
// More fields may be added later. | |||
FundingRateInterval, |
There was a problem hiding this comment.
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)?; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Summary
Add
PriceFeedProperty::FundingRateInterval
for the new funding rate interval fieldRationale
Needed for PF-278
How has this been tested?