more info
This commit is contained in:
parent
4f4ec03f97
commit
e1f28f2f38
@ -909,8 +909,8 @@ async def process_log(log_result):
|
||||
|
||||
message_text = (
|
||||
f"<b>Swap detected:</b>\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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user