Skip to content

Commit

Permalink
chore: remove repetitive words (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
NinaLua authored Apr 30, 2024
1 parent a203808 commit 8d32b4c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module pyth::batch_price_attestation {
// the attester.

// If status is trading, use the current price.
// If not, use the the last known trading price.
// If not, use the last known trading price.
let current_price = pyth::price::new(price, conf, expo, publish_time);
if (status != price_status::new_trading()) {
current_price = pyth::price::new(prev_price, prev_conf, expo, prev_publish_time);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ contract EntropyStructs {
// and instead is stored to help providers track where they are in the hash chain.
bytes32 originalCommitment;
uint64 originalCommitmentSequenceNumber;
// Metadata for the current commitment. Providers may optionally use this field to to help
// Metadata for the current commitment. Providers may optionally use this field to help
// manage rotations (i.e., to pick the sequence number from the correct hash chain).
bytes commitmentMetadata;
// Optional URI where clients can retrieve revelations for the provider.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ abi PythCore {
/// # Reverts
///
/// * When the EMA price is not available.
/// * When the the EMA price wasn't updated recently enough.
/// * When the EMA price wasn't updated recently enough.
#[storage(read)]
fn ema_price_no_older_than(time_period: u64, price_feed_id: PriceFeedId) -> Price;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function buildEncodedVaaCreateInstruction(
}

/**
* Writing the VAA to to an encoded VAA account is done in 2 instructions.
* Writing the VAA to an encoded VAA account is done in 2 instructions.
*
* The first one writes the first `VAA_SPLIT_INDEX` bytes and the second one writes the rest.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module pyth::batch_price_attestation {
// the attester.

// If status is trading, use the current price.
// If not, use the the last known trading price.
// If not, use the last known trading price.
let current_price = pyth::price::new(price, conf, expo, publish_time);
if (status != price_status::new_trading()) {
current_price = pyth::price::new(prev_price, prev_conf, expo, prev_publish_time);
Expand Down

0 comments on commit 8d32b4c

Please sign in to comment.