AurelianLabsGas Price Investigation
Updated 2024-07-27
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 pools as (SELECT
tx_hash,
contract_address as pool_address
FROM base.core.ez_decoded_event_logs
WHERE event_name = 'Mint'
AND block_timestamp::date >= '2024-03-15'
AND decoded_log:owner is not NULL
),
add_liq as (SELECT
a.*,
decoded_log:"amount0" as amount0,
decoded_log:"amount1" as amount1,
symbols:"token0" as token0,
symbols:"token1" as token1,
decimals:"token0" as decimals0,
decimals:"token1" as decimals1,
b.pool_address,
pool_name
FROM base.core.ez_decoded_event_logs a
LEFT JOIN pools b ON a.tx_hash = b.tx_hash
LEFT JOIN base.defi.dim_dex_liquidity_pools c ON b.pool_address = c.pool_address
WHERE contract_name ilike '%uniswap%'
AND event_name ilike 'Increaseliquidity'
AND a.block_timestamp::date >= '2024-03-20' AND a.block_timestamp::date <= '2024-04-01'
),
--and tx_hash = '0xedc7dd4eb1facf781a927fef1936bd67d36cad8e0d4a81880cce534b5d0fd9f1'
--'0xbddbc7aa5d000da16c69102915ffdae43e82f7d619d05aa062d306540c155b3f'
user_add_liq as (SELECT
block_timestamp::date as date,
origin_from_address as users,
count(distinct tx_hash) as lp_action
FROM base.core.ez_decoded_event_logs a
--LEFT JOIN pools b ON a.tx_hash = b.tx_hash
--LEFT JOIN base.defi.dim_dex_liquidity_pools c ON b.pool_address = c.pool_address
QueryRunArchived: QueryRun has been archived