Query editor
WITH create_strategy_logs 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 = 0xb2c0a7e473453e1af27b29d3a11452171e4ca8c48c8519c913ad68cdd17b2908 /* strategyCreated */),strategies_with_pool AS (SELECTlog.tx_hash,log.strategy_id,CASEWHEN BYTEARRAY_LTRIM(BYTEARRAY_SUBSTRING(txn.data, 5, 32)) = 0x3e0aa2e17fe3e5e319f388c794fdbc3c64ef9da6 --txn it done through multisignTHEN BYTEARRAY_LTRIM(BYTEARRAY_SUBSTRING(txn.data, 373, 20))ELSE BYTEARRAY_LTRIM(BYTEARRAY_SUBSTRING(txn.data, 5, 32))END AS poolFROM create_strategy_logs AS logLEFT JOIN arbitrum.transactions AS txn ON log.tx_hash = txn.hash)SELECTstrategy_id,st.pool,token0,token1,feeFROM strategies_with_pool AS stLEFT JOIN dex.raw_pools AS rpON rp.blockchain = 'arbitrum'AND rp.contract_address = 0x1f98431c8ad98523631ae4a59f267346ea31f984 --uniswapV3 FactoryAND st.pool = rp.pool