Query editor
-- Balancer DAO deployment funds moved.-- One row per transaction hash per chain. The selected row is the economic leg of the tx.-- Direct treasury/internal transfers are skipped unless the counterparty is a mapped protocol.---- SCOPE: strict parity with kpk-tx-count base query 8661705 (entity 'Balancer').-- wallets: 0x0efccbb9e2c09ea29551879bd9da32362b32fc89 on-- arbitrum, avalanche_c, ethereum, gnosis, optimism, polygon-- window: 2023-02-01 -> ongoing (tx-count end_date sentinel 2100-01-01)-- The end bound is dynamic: it always extends through the current month.WITH wallets AS (SELECT *FROM (VALUES('arbitrum', 0x0efccbb9e2c09ea29551879bd9da32362b32fc89),('avalanche_c', 0x0efccbb9e2c09ea29551879bd9da32362b32fc89),('ethereum', 0x0efccbb9e2c09ea29551879bd9da32362b32fc89),('gnosis', 0x0efccbb9e2c09ea29551879bd9da32362b32fc89),('optimism', 0x0efccbb9e2c09ea29551879bd9da32362b32fc89),('polygon', 0x0efccbb9e2c09ea29551879bd9da32362b32fc89)) AS w(blockchain, wallet)),params AS (SELECTDATE '2023-02-01' AS start_date,date_add('month', 1, date_trunc('month', current_date)) AS end_date,TIMESTAMP '2023-02-01 00:00:00 UTC' AS start_time,current_timestamp AS end_time),protocol_map AS (SELECT *FROM (VALUES-- Settlement / swap / pool venues.('ethereum', 0x9008d19f58aabd9ed0d60971565aa8510560ab41, 'CoW / GPv2Settlement', 'swap', true),('arbitrum', 0x9008d19f58aabd9ed0d60971565aa8510560ab41, 'CoW / GPv2Settlement', 'swap', true),('ethereum', 0x5777d92f208679db4b9778590fa3cab3ac9e2168, 'Curve stableswap', 'swap', true),('ethereum', 0xdc24316b9ae028f1497c275eb9192a3ea0f67022, 'Curve stETH pool', 'swap', true),('ethereum', 0xcbcdf9626bc03e24f779434178a73a0b4bad62ed, 'Uniswap v3 WBTC/WETH pool', 'swap', true),('ethereum', 0xf08d4dea369c456d26a3168ff0024b904f2d8b91, 'BCoW AMM WETH/USDC', 'swap', true),('ethereum', 0xf8f5b88328dff3d19e5f4f11a9700293ac8f638f, 'BCoW AMM BAL/WETH', 'swap', true),('ethereum', 0x428ab2ba90eba0a4be7af34c9ac451ab061ac010, 'DEX / aggregator', 'swap', true),('ethereum', 0x5ab53ee1d50eef2c1dd3d5402789cd27bb52c1bb, 'Uniswap v3 pool', 'swap', true),('ethereum', 0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8, 'Uniswap v3 pool', 'swap', true),('ethereum', 0xea4ba4ce14fdd287f380b55419b1c5b6c3f22ab6, 'Uniswap v3 pool', 'swap', true),('ethereum', 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640, 'Uniswap v3 pool', 'swap', true),('ethereum', 0x60594a405d53811d3bc4766596efd80fd545a270, 'Uniswap v3 pool', 'swap', true),('ethereum', 0x4585fe77225b41b697c938b018e2ac67ac5a20c0, 'Uniswap v3 pool', 'swap', true),('ethereum', 0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc, 'Uniswap v2 pool', 'swap', true),-- Lending / savings.('ethereum', 0x39aa39c021dfbae8fac545936693ac917d5e7563, 'Compound cUSDC', 'lending', true),('ethereum', 0xc3d688b66703497daa19211eedff47f25384cdc3, 'Compound v3 USDC', 'lending', true),('ethereum', 0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b, 'Compound', 'lending', true),('ethereum', 0x98c23e9d8f34fefb1b7bd6a91b7ff122f4e16f5c, 'Aave', 'lending', true),('ethereum', 0x00907f9921424583e7ffbfedf84f92b7b2be4977, 'Aave', 'lending', true),('ethereum', 0x5ee5bf7ae06d1be5997a1a72006fe6c607ec6de8, 'Aave', 'lending', true),('ethereum', 0xc71ea051a5f82c67adcf634c36ffe6334793d24c, 'Aave StaticAToken', 'lending', true),