From 10375faf9e598f2944f480fdb87e97987b512531 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Fri, 7 Aug 2026 21:19:19 +0200 Subject: [PATCH] Adjusted --- src/strategy/veloc.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/strategy/veloc.rs b/src/strategy/veloc.rs index ccfef1e..772afbc 100644 --- a/src/strategy/veloc.rs +++ b/src/strategy/veloc.rs @@ -14,7 +14,7 @@ use crate::strategy::Strategy; const BUY_AMOUNT_SOL: Decimal = dec!(0.2); const PRIORITY: Decimal = dec!(0.0002); const SLIPPAGE: u16 = 10; -const MAX_SUBSCRIBED_TOKENS: usize = 5; +const MAX_SUBSCRIBED_TOKENS: usize = 100; struct TokenTracker { created_at: Instant, @@ -97,10 +97,6 @@ impl Strategy for MomentumVelocityStrategy { if let Some(idx) = eviction_index { if let Some(mint_to_remove) = self.active_subscriptions.remove(idx) { - info!( - "[{}] Capacity reached ({}/{}). Evicting un-bought token from queue.", - mint_to_remove, MAX_SUBSCRIBED_TOKENS, MAX_SUBSCRIBED_TOKENS - ); bot.executor.unsubscribe(&mint_to_remove).await; self.trackers.remove(&mint_to_remove); } @@ -113,7 +109,6 @@ impl Strategy for MomentumVelocityStrategy { } } - info!("[{}] Subscribing and creating tracker.", token.mint); bot.executor.subscribe(&token.mint).await; self.active_subscriptions.push_back(token.mint.clone()); @@ -155,7 +150,7 @@ impl Strategy for MomentumVelocityStrategy { _ if drop_from_peak >= 0.12 && price_change_pct > 0.10 => { Some(ExitReason::TrailingStop) } - _ if pos.last_high_time.elapsed() >= Duration::from_secs(25) => { + _ if pos.last_high_time.elapsed() >= Duration::from_secs(2) => { Some(ExitReason::MomentumStalled) } _ => None,