Query editor
with strategies AS (SELECTtx_hash,topic1 AS strategy_idFROM arbitrum.logsWHEREblock_time > TRY_CAST('2024-03-16 10:55' /* CLTBase creation */ AS TIMESTAMP)AND contract_address = 0x3e0aa2e17fe3e5e319f388c794fdbc3c64ef9da6AND topic0 = 0xa3e3a4b0aa73fe1da40435c107398a4ee52d3dc357ef8cef5855ad8cdd5477b2 --strategy_fee),deposits AS (SELECTblock_time,tx_hash,bytearray_to_uint256(bytearray_substring(data,33,32)) as amount0,bytearray_to_uint256(bytearray_substring(data,65,32)) as amount1FROM arbitrum.logsWHEREblock_time > TRY_CAST('2024-03-16 10:55' /* CLTBase creation */ AS TIMESTAMP)AND contract_address = 0x3e0aa2e17fe3e5e319f388c794fdbc3c64ef9da6AND topic0 = 0x996a417e6461fc8f287ec9a6c2e9afb764a1d6fbdaa6570826ae99855b453aff --deposit)SELECTstrategy_id,block_time,dp.tx_hash,amount0,amount1FROM deposits AS dpLEFT JOIN strategies AS st ON dp.tx_hash = st.tx_hash