feat: add EXTREME FAST mode for token buying

This commit is contained in:
smypmsa
2025-04-03 21:57:36 +00:00
parent d662b126b9
commit 4eacc5a4f7
4 changed files with 35 additions and 10 deletions
+7 -4
View File
@@ -78,6 +78,8 @@ class PumpTrader:
buy_amount,
buy_slippage,
max_retries,
config.EXTREME_FAST_TOKEN_AMOUNT,
config.EXTREME_FAST_MODE
)
self.seller = TokenSeller(
@@ -212,10 +214,11 @@ class PumpTrader:
try:
await self._save_token_info(token_info)
logger.info(
f"Waiting for {config.WAIT_TIME_AFTER_CREATION} seconds for the bonding curve to stabilize..."
)
await asyncio.sleep(config.WAIT_TIME_AFTER_CREATION)
if not config.EXTREME_FAST_MODE:
logger.info(
f"Waiting for {config.WAIT_TIME_AFTER_CREATION} seconds for the bonding curve to stabilize..."
)
await asyncio.sleep(config.WAIT_TIME_AFTER_CREATION)
logger.info(
f"Buying {self.buy_amount:.6f} SOL worth of {token_info.symbol}..."