Crazy_KidConcentration of Capital 3
Updated 2022-04-04
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
WITH pool as (SELECT to_address_name as liq_pool1, sum(amount_usd) as liq_added
FROM ethereum.udm_events
WHERE to_label = 'sushiswap' AND to_label_subtype = 'pool'
AND origin_function_name IN ('addLiquidity', 'addLiquidityETH')
AND amount_usd IS NOT NULL
GROUP BY liq_pool1),
users AS (SELECT from_address, to_address_name as liq_pool2, sum(amount_usd) as amount
FROM ethereum.udm_events
WHERE to_label = 'sushiswap' AND to_label_subtype = 'pool'
AND origin_function_name IN ('addLiquidity', 'addLiquidityETH')
AND amount_usd IS NOT NULL
GROUP BY from_address, liq_pool2)
SELECT from_address, liq_pool1 as liq_pool, amount, liq_added
FROM users JOIN pool on liq_pool2 = liq_pool1
WHERE amount > liq_added/2
ORDER BY liq_added DESC
LIMIT 1000
Run a query to Download Data