Query editor
with strategies AS (SELECTtx_hash,topic1 AS strategy_idFROM base.logsWHEREblock_time > TRY_CAST('2024-05-01 01:34' /* CLTBase creation */ AS TIMESTAMP)AND contract_address IN (0xdfb179526ae303eea49ac99dd360159c39105828)AND topic0 = 0xa3e3a4b0aa73fe1da40435c107398a4ee52d3dc357ef8cef5855ad8cdd5477b2 --strategy_fee),withdraws 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 base.logsWHEREblock_time > TRY_CAST('2024-05-01 01:34' /* CLTBase creation */ AS TIMESTAMP)AND contract_address IN (0xdfb179526ae303eea49ac99dd360159c39105828)AND topic0 = 0xf041d18460e8444b78f944ad4de3c6cf13f1912a1eb46f4c8de656fb627b4733 --withdraw)SELECTstrategy_id,block_time,wt.tx_hash,amount0,amount1FROM withdraws AS wtLEFT JOIN strategies AS st ON wt.tx_hash = st.tx_hash