bachidiversify liquidity
Updated 2022-03-20Copy Reference Fork
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
31
32
33
34
35
36
›
⌄
WITH
eth_activities_in as (
SELECT
origin_address as users,
to_address_name as pool_name,
tx_id,
block_timestamp as date
from ethereum.udm_events
where (ORIGIN_FUNCTION_NAME = 'addLiquidity' or origin_function_name = 'addLiquidityETH') and to_label='uniswap'
and amount_usd is not null
),
poly_activities_in as (
SELECT
origin_address as users,
to_address_name as pool_name,
tx_id,
block_timestamp as date
from ethereum.udm_events
where (ORIGIN_FUNCTION_NAME = 'addLiquidity' or origin_function_name = 'addLiquidityETH') and to_label='uniswap'
and amount_usd is not null
),
total_activities_in as (
select
* from eth_activities_in
UNION
SELECT
* from poly_activities_in
),
eth_activities_out as (
SELECT
origin_address as users,
from_address_name as pool_name,
tx_id,
block_timestamp as date
Run a query to Download Data