Query editor
-- Cell C bounded augmentation: all nine named chains, trailing 365 days.-- Neutral acquisition by events that encode both borrowed assets and shares.-- 0x5709... = Morpho-style Borrow(bytes32,address,address,address,uint256,uint256)-- 0x0134... = Fraxlend-style BorrowAsset(address,address,uint256,uint256)-- Coverage rows are emitted for every chain, including queried-zero chains.WITH chains(chain) AS (VALUES ('linea'), ('mantle'), ('sei'), ('sonic'), ('unichain'),('arbitrum'), ('optimism'), ('base'), ('avalanche_c')), emitters AS (SELECT 'linea' chain, contract_address, topic0, block_time FROM linea.logsWHERE block_time >= current_timestamp - interval '365' dayAND topic0 IN (0x570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43,0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe)UNION ALLSELECT 'mantle', contract_address, topic0, block_time FROM mantle.logsWHERE block_time >= current_timestamp - interval '365' dayAND topic0 IN (0x570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43,0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe)UNION ALLSELECT 'sei', contract_address, topic0, block_time FROM sei.logsWHERE block_time >= current_timestamp - interval '365' dayAND topic0 IN (0x570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43,0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe)UNION ALLSELECT 'sonic', contract_address, topic0, block_time FROM sonic.logsWHERE block_time >= current_timestamp - interval '365' dayAND topic0 IN (0x570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43,0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe)UNION ALLSELECT 'unichain', contract_address, topic0, block_time FROM unichain.logsWHERE block_time >= current_timestamp - interval '365' dayAND topic0 IN (0x570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43,0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe)UNION ALLSELECT 'arbitrum', contract_address, topic0, block_time FROM arbitrum.logsWHERE block_time >= current_timestamp - interval '365' dayAND topic0 IN (0x570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43,0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe)UNION ALLSELECT 'optimism', contract_address, topic0, block_time FROM optimism.logsWHERE block_time >= current_timestamp - interval '365' dayAND topic0 IN (0x570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43,0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe)UNION ALLSELECT 'base', contract_address, topic0, block_time FROM base.logsWHERE block_time >= current_timestamp - interval '365' dayAND topic0 IN (0x570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43,0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe)UNION ALLSELECT 'avalanche_c', contract_address, topic0, block_time FROM avalanche_c.logsWHERE block_time >= current_timestamp - interval '365' dayAND topic0 IN (0x570954540bed6b1304a87dfe815a5eda4a648f7097a16240dcd85c9b5fd42a43,0x01348584ec81ac7acd52b7d66d9ade986dd909f3d513881c190fc31c90527efe)), members AS (SELECT chain,contract_address,topic0,count(*) event_count,min(block_time) first_seen,max(block_time) last_seen