mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-08-23 12:18:04 +00:00
fix(core): remove unused args, improve logging
This commit is contained in:
@@ -41,7 +41,7 @@ class PlatformAwareBuyer(Trader):
|
|||||||
self.extreme_fast_mode = extreme_fast_mode
|
self.extreme_fast_mode = extreme_fast_mode
|
||||||
self.extreme_fast_token_amount = extreme_fast_token_amount
|
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."""
|
"""Execute buy operation using platform-specific implementations."""
|
||||||
try:
|
try:
|
||||||
# Get platform-specific implementations
|
# Get platform-specific implementations
|
||||||
@@ -123,7 +123,7 @@ class PlatformAwareBuyer(Trader):
|
|||||||
)
|
)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Buy operation failed: {e!s}")
|
logger.exception("Buy operation failed")
|
||||||
return TradeResult(
|
return TradeResult(
|
||||||
success=False,
|
success=False,
|
||||||
platform=token_info.platform,
|
platform=token_info.platform,
|
||||||
@@ -162,7 +162,7 @@ class PlatformAwareSeller(Trader):
|
|||||||
self.slippage = slippage
|
self.slippage = slippage
|
||||||
self.max_retries = max_retries
|
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."""
|
"""Execute sell operation using platform-specific implementations."""
|
||||||
try:
|
try:
|
||||||
# Get platform-specific implementations
|
# Get platform-specific implementations
|
||||||
@@ -249,7 +249,7 @@ class PlatformAwareSeller(Trader):
|
|||||||
)
|
)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Sell operation failed: {e!s}")
|
logger.exception("Sell operation failed")
|
||||||
return TradeResult(
|
return TradeResult(
|
||||||
success=False,
|
success=False,
|
||||||
platform=token_info.platform,
|
platform=token_info.platform,
|
||||||
|
|||||||
Reference in New Issue
Block a user