fix: remove coderabbit syntax bugs

This commit is contained in:
smypmsa
2025-06-15 20:12:54 +00:00
parent 2ad0f37912
commit 984f43b757
3 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -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