Skip to content

Commit

Permalink
chore: remove redundant words (#1395)
Browse files Browse the repository at this point in the history
Signed-off-by: fudancoder <[email protected].>
  • Loading branch information
fudancoder authored Dec 19, 2024
1 parent 556f068 commit 3936dd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion programs/drift/src/state/perp_market.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ impl PerpMarket {
self,
oracle_price_twap: i64,
) -> DriftResult<i64> {
// 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) {
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/util/TransactionConfirmationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3936dd2

Please sign in to comment.