diff --git a/programs/drift/src/state/perp_market.rs b/programs/drift/src/state/perp_market.rs index fbecc5f12..5b1b03f24 100644 --- a/programs/drift/src/state/perp_market.rs +++ b/programs/drift/src/state/perp_market.rs @@ -425,7 +425,7 @@ impl PerpMarket { self, oracle_price_twap: i64, ) -> DriftResult { - // clamp to to 3% price divergence for safer markets and higher for lower contract tiers + // clamp to 3% price divergence for safer markets and higher for lower contract tiers if self.contract_tier.is_as_safe_as_contract(&ContractTier::B) { oracle_price_twap.safe_div(33) // 3% } else if self.contract_tier.is_as_safe_as_contract(&ContractTier::C) { diff --git a/sdk/src/util/TransactionConfirmationManager.ts b/sdk/src/util/TransactionConfirmationManager.ts index 42de830d7..e1f6828da 100644 --- a/sdk/src/util/TransactionConfirmationManager.ts +++ b/sdk/src/util/TransactionConfirmationManager.ts @@ -39,7 +39,7 @@ interface TransactionConfirmationRequest { } /** - * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at at 600ms, 1200ms, 1800ms, etc. + * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at 600ms, 1200ms, 1800ms, etc. */ export class TransactionConfirmationManager { private connection: Connection;