-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Description
Seeing errors like this in the trading logs:
trading-1 | 2025-05-21 03:37:28.034 | ERROR | __main__:_process_single_swap_event:61 - Failed to process swap event: user_pubkey='GX9R7oSaaCWwithoJR3bNK2s77fkge9PFHwyMneBQ8pK' swap_mode='ExactIn' input_mint='So111111111111111111111111
11111111111111112' output_mint='HbBpsaQ7mLAycFogj6ZhxtjHJcSum4qsMqLsZVhtpump' amount=50000000 ui_amount=0.05 timestamp=1747798647 amount_pct=None swap_in_type='qty' priority_fee=0.002 slippage_bps=250 by='copytrade' dynamic_slippage=False
min_slippage_bps=None max_slippage_bps=None program_id='6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P' tx_event=TxEvent(signature='5xcgTepr1DHwxtYBbPZM8pUeB9ZyreUDfvwMCqHyCpNo9NfsAaDbQgb8LHaErgbh5MBTuG97yeQ6Gxz63qzQ4Lg5', from_amount=56805
9342, from_decimals=9, to_amount=2920547288226, to_decimals=6, mint='HbBpsaQ7mLAycFogj6ZhxtjHJcSum4qsMqLsZVhtpump', who='8rvAsDKeAcEjEkiZMug9k8v1y8mW6gQQiMobd89Uy7qR', tx_type=<TxType.ADD_POSITION: 'add_position'>, tx_direction='buy', tim
estamp=1747798647, pre_token_amount=15708612061355, post_token_amount=18629159349581, program_id='6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P')
trading-1 | Traceback (most recent call last):
trading-1 |
trading-1 | File "/app/__pypackages__/3.10/lib/solbot_common/layouts/global_account.py", line 54, in from_buffer
trading-1 | ) = struct.unpack("<Q?32s32sQQQQQ", buffer)
trading-1 | │ │ └ b"\xa7\xe8\xe8\xb1\xc8lr\x7f\x01\xd3\xbb\x8c\xab4\x1c\xe0R\x84W\xf2\xc3\x81}2xD\x19c\xdc\xd5_\xedX\xba$\xc9\x99\xdd\xac\x02\x...
trading-1 | │ └ <built-in function unpack>
trading-1 | └ <module 'struct' from '/usr/local/lib/python3.10/struct.py'>
trading-1 |
trading-1 | struct.error: unpack requires a buffer of 113 bytesMetadata
Metadata
Assignees
Labels
No labels