You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,8 @@ impl PriceUpdateV2 {
61
61
}
62
62
/// A time weighted average price account.
63
63
/// This account is used by the Pyth Receiver program to store a TWAP update from a Pyth price feed.
64
-
///
65
-
/// ## Warning
66
-
/// This function doesn't check whether the TwapUpdate is constructed from verified price updates.
67
-
/// TwapUpdates should be only created and used after the client has already verified the VAAs via the Wormhole contract.
68
-
/// Check out `target_chains/solana/cli/src/main.rs` for an example of how to do this.
64
+
/// TwapUpdates can only be created after the client has verified the VAAs via the Wormhole contract.
65
+
/// Check out `target_chains/solana/cli/src/main.rs` for an example of how to do this.
69
66
///
70
67
/// It contains:
71
68
/// - `write_authority`: The write authority for this account. This authority can close this account to reclaim rent or update the account to contain a different TWAP update.
0 commit comments