We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5562ea2 commit fdd322dCopy full SHA for fdd322d
program/src/lib.rs
@@ -31,7 +31,7 @@ fn process_instruction(
31
msg!("Pyth product account provided is not a valid Pyth product account");
32
return Err(ProgramError::InvalidArgument.into());
33
}
34
- if pyth_product.ver != pyth_client::VERSION_1 {
+ if pyth_product.ver != pyth_client::VERSION_2 {
35
msg!("Pyth product account provided has a different version than the Pyth client");
36
37
@@ -69,8 +69,6 @@ fn get_price_type(ptype: &PriceType) -> &'static str {
69
match ptype {
70
PriceType::Unknown => "unknown",
71
PriceType::Price => "price",
72
- PriceType::TWAP => "twap",
73
- PriceType::Volatility => "volatility",
74
75
76
0 commit comments