Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions basics/pyth/anchor-v1/programs/pythexample/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ pub struct ReadPriceAccountConstraints<'info> {

#[derive(AnchorSerialize, AnchorDeserialize, Clone, Debug, PartialEq, Eq)]
pub enum VerificationLevel {
/// Partially verified: only `num_signatures` of the Wormhole guardians
/// were checked against the price update.
/// Partially verified: only `num_signatures` of the Pyth guardian set's
/// signatures were checked, fewer than its quorum of three of five.
Partial { num_signatures: u8 },
/// Fully verified against the full guardian set.
/// Verified against a quorum of the guardian set.
Full,
}

Expand Down
6 changes: 3 additions & 3 deletions basics/pyth/anchor/programs/pythexample/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ pub struct ReadPriceAccountConstraints {

#[derive(Clone, Debug, PartialEq, Eq, wincode::SchemaRead, wincode::SchemaWrite)]
pub enum VerificationLevel {
/// Partially verified: only `num_signatures` of the Wormhole guardians
/// were checked against the price update.
/// Partially verified: only `num_signatures` of the Pyth guardian set's
/// signatures were checked, fewer than its quorum of three of five.
Partial { num_signatures: u8 },
/// Fully verified against the full guardian set.
/// Verified against a quorum of the guardian set.
Full,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::errors::PerpError;
// account as a `PriceUpdateV2` instead of reading offsets: from the
// `pyth-solana-receiver-sdk` crate, or the vendored copy in `basics/pyth` on
// Anchor 2. The Pyth Receiver program writes that account only after checking
// the Wormhole guardian signatures over the update, and the account type's
// the Pyth guardian set's signatures over the update, and the account type's
// owner check rejects any account that program does not own. Map
// `price_message.price`, `exponent` (the scale is its negation), `conf`, and
// `publish_time` or `posted_slot` onto the checks below, and also check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::errors::PerpError;
// account as a `PriceUpdateV2` instead of reading offsets: from the
// `pyth-solana-receiver-sdk` crate, or the vendored copy in `basics/pyth` on
// Anchor 2. The Pyth Receiver program writes that account only after checking
// the Wormhole guardian signatures over the update, and the account type's
// the Pyth guardian set's signatures over the update, and the account type's
// owner check rejects any account that program does not own. Map
// `price_message.price`, `exponent` (the scale is its negation), `conf`, and
// `publish_time` or `posted_slot` onto the checks below, and also check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::errors::PropAmmError;
// account as a `PriceUpdateV2` instead of reading offsets: from the
// `pyth-solana-receiver-sdk` crate, or the vendored copy in `basics/pyth` on
// Anchor 2. The Pyth Receiver program writes that account only after checking
// the Wormhole guardian signatures over the update, and the account type's
// the Pyth guardian set's signatures over the update, and the account type's
// owner check rejects any account that program does not own. Map
// `price_message.price`, `exponent` (the scale is its negation), `conf`, and
// `publish_time` or `posted_slot` onto the checks below, and also check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::errors::PropAmmError;
// account as a `PriceUpdateV2` instead of reading offsets: from the
// `pyth-solana-receiver-sdk` crate, or the vendored copy in `basics/pyth` on
// Anchor 2. The Pyth Receiver program writes that account only after checking
// the Wormhole guardian signatures over the update, and the account type's
// the Pyth guardian set's signatures over the update, and the account type's
// owner check rejects any account that program does not own. Map
// `price_message.price`, `exponent` (the scale is its negation), `conf`, and
// `publish_time` or `posted_slot` onto the checks below, and also check
Expand Down
Loading