fix(core): remove unused args, improve logging

This commit is contained in:
smypmsa
2025-08-05 14:56:59 +00:00
parent 7e644286a8
commit 53763b7123
+4 -4
View File
@@ -41,7 +41,7 @@ class PlatformAwareBuyer(Trader):
self.extreme_fast_mode = extreme_fast_mode
self.extreme_fast_token_amount = extreme_fast_token_amount
async def execute(self, token_info: TokenInfo, *args, **kwargs) -> TradeResult:
async def execute(self, token_info: TokenInfo) -> TradeResult:
"""Execute buy operation using platform-specific implementations."""
try:
# Get platform-specific implementations
@@ -123,7 +123,7 @@ class PlatformAwareBuyer(Trader):
)
except Exception as e:
logger.error(f"Buy operation failed: {e!s}")
logger.exception("Buy operation failed")
return TradeResult(
success=False,
platform=token_info.platform,
@@ -162,7 +162,7 @@ class PlatformAwareSeller(Trader):
self.slippage = slippage
self.max_retries = max_retries
async def execute(self, token_info: TokenInfo, *args, **kwargs) -> TradeResult:
async def execute(self, token_info: TokenInfo) -> TradeResult:
"""Execute sell operation using platform-specific implementations."""
try:
# Get platform-specific implementations
@@ -249,7 +249,7 @@ class PlatformAwareSeller(Trader):
)
except Exception as e:
logger.error(f"Sell operation failed: {e!s}")
logger.exception("Sell operation failed")
return TradeResult(
success=False,
platform=token_info.platform,