From e1f28f2f38ff6943d7ac0a9bd93e244794b88b0f Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 9 Oct 2024 12:26:53 +0300 Subject: [PATCH] more info --- crypto/sol/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crypto/sol/app.py b/crypto/sol/app.py index 8206cf3..3ff0424 100644 --- a/crypto/sol/app.py +++ b/crypto/sol/app.py @@ -909,8 +909,8 @@ async def process_log(log_result): message_text = ( f"Swap detected:\n" - f"Token In: {tr_details['symbol_in']}\n" - f"Token Out: {tr_details['symbol_out']}\n" + f"Token In: {tr_details['symbol_in']} ({tr_details['token_in']})\n" + f"Token Out: {tr_details['symbol_out']} ({tr_details['token_out']})\n" f"Amount In USD: {tr_details['amount_in_USD']:.2f}\n" f"Percentage Swapped: {tr_details['percentage_swapped']:.2f}%" ) @@ -1013,6 +1013,7 @@ async def follow_move(move): amount=amount, slippage_bps=100, # Increased to 1% ) + error_logger.info(f"Initiating move. Transaction data:\n {transaction_data}") raw_transaction = VersionedTransaction.from_bytes(base64.b64decode(transaction_data)) signature = private_key.sign_message(message.to_bytes_versioned(raw_transaction.message)) signed_txn = VersionedTransaction.populate(raw_transaction.message, [signature]) @@ -1023,6 +1024,7 @@ async def follow_move(move): transaction_id = json.loads(result.to_json())['result'] print(f"Follow Transaction Sent: https://solscan.io/tx/{transaction_id}") + send_telegram_message(f"Follow Transaction Sent: {transaction_id}") tx_details = await get_transaction_details_with_retry(transaction_id) if tx_details is not None: