gaonip[Staging] sushi LP
Updated 2023-10-25
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
›
⌄
with uni_lps as (
SELECT
liquidity_provider,
date_trunc('day', block_timestamp) as date
FROM
ethereum.uniswapv3.ez_positions
WHERE
date >= CURRENT_DATE - 365 and is_active = TRUE
GROUP BY
1,2
),
sushi_lps as (
SELECT
date_trunc('day', block_timestamp) as date,
tx_hash,
ORIGIN_FROM_ADDRESS as user_wallet,
raw_amount,
ORIGIN_TO_ADDRESS
FROM
ethereum.core.ez_token_transfers
WHERE
ORIGIN_TO_ADDRESS = '0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f'
)
SELECT
COUNT(DISTINCT liquidity_provider) as num_LPs
FROM
uni_lps
WHERE
liquidity_provider in ((select user_wallet from sushi_lps))
Run a query to Download Data