sora-xor / pricing-server

Analytics server for Polkaswap
Apache License 2.0
5 stars 4 forks source link

import-service crashes #94

Closed f33r0 closed 2 weeks ago

f33r0 commented 4 weeks ago
2024-08-16 11:01:10,464 INFO Getting events from block 17071107
2024-08-16 11:01:10,594 INFO Getting events from block 17071108
2024-08-16 11:01:10,732 INFO sqlalchemy.engine.Engine ROLLBACK
2024-08-16 11:01:10,732 INFO ROLLBACK
Traceback (most recent call last):
  File "run_node_processing.py", line 612, in <module>
    asyncio.run(async_main_loop(async_session, args))
  File "/usr/local/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "run_node_processing.py", line 575, in async_main_loop
    await async_main(async_session, args.begin, args.clean, args.silent)
  File "run_node_processing.py", line 315, in async_main
    process_events(dataset, func_map, res, grouped_events, get_fee_price)
  File "run_node_processing.py", line 146, in process_events
    tx = processing_func(timestamp, extrinsic_events, exdict, get_fee_price)
  File "/home/app/processing.py", line 149, in process_swap_transaction
    assert len(intermediate_amounts) > 0 , ex_dict
AssertionError: {'extrinsic_hash': '0xe20426f5bf150916ac01e6143c9ec887cfda2a5ea1ad65ba1fd3a1d721fd67c6', 'extrinsic_length': 208, 'address': '0xcnVXgkDi5NonGDnyRphHuRyumK2AMLAmiXdaVpKEX8GRCoBuv', 'signature': {'Sr25519': '0xec5e4007bc0b7ba734886f4c2092edda732162fe870cccad0c69413086af971dd117babd22913aa6b2229a564867093962172cc54aaf9fca2550ecc61346be85'}, 'era': (64, 1), 'nonce': 1115, 'tip': {'tip': 0}, 'call': {'call_index': '0x1a00', 'call_function': 'swap', 'call_module': 'LiquidityProxy', 'call_args': [{'name': 'dex_id', 'type': 'DEXId', 'value': 0}, {'name': 'input_asset_id', 'type': 'AssetIdOf', 'value': {'code': '0x0200090000000000000000000000000000000000000000000000000000000000'}}, {'name': 'output_asset_id', 'type': 'AssetIdOf', 'value': {'code': '0x03007eb31d5417285130f176fc14d535094d0000000000000000000000000000'}}, {'name': 'swap_amount', 'type': 'SwapAmount<Balance>', 'value': {'WithDesiredOutput': {'desired_amount_out': 30000000000000000000, 'max_amount_in': 33356610786437674914933456}}}, {'name': 'selected_source_types', 'type': 'Vec<LiquiditySourceType>', 'value': []}, {'name': 'filter_mode', 'type': 'FilterMode', 'value': 'Disabled'}], 'call_hash': '0xd39c62785d1b2448ca24d9ec19f64f6d171ca8f54fc8a67dd1ea279f522a9cbc'}}
f33r0 commented 3 weeks ago

@HaidarJbeily7