mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-07-29 00:07:44 +00:00
fix: remove coderabbit syntax bugs
This commit is contained in:
@@ -282,9 +282,9 @@ class TokenBuyer(Trader):
|
||||
logger.warning(f"Failed to get actual execution price from bonding curve: {e}")
|
||||
# Fallback to EXTREME_FAST estimate
|
||||
tokens_received = self.extreme_fast_token_amount if self.extreme_fast_mode else self.amount / await self.curve_manager.calculate_price(token_info.bonding_curve)
|
||||
+ if tokens_received == 0:
|
||||
+ logger.error("Fallback failed – unable to determine tokens received")
|
||||
+ return 0.0, 0.0
|
||||
if tokens_received == 0:
|
||||
logger.error("Fallback failed – unable to determine tokens received")
|
||||
return 0.0, 0.0
|
||||
return self.amount / tokens_received, tokens_received
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user