DiamondSloppy - Liquidity Pool Netflow (USDC)
Updated 2024-07-28
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
›
⌄
-- from adriaparcerisas
with
ins as (
select
trunc(block_timestamp, 'day') as date,
event_data:to as wallet,
sum(event_data:amount) as volume_in
from
flow.core.fact_events
where
event_contract = 'A.53f389d96fb4ce5e.SloppyStakes'
and event_type = 'TokensDeposited'
group by
1,
2
),
outs as (
select
trunc(block_timestamp, 'day') as date,
event_data:
from
as wallet,
sum(event_data:amount) as volume_out
from
flow.core.fact_events
where
event_contract = 'A.53f389d96fb4ce5e.SloppyStakes'
and event_type = 'TokensWithdrawn'
group by
1,
2
),
transfer_flow as (
SELECT
ifnull(x.date, y.date) as dates,
ifnull(x.wallet, y.wallet) as traders,
QueryRunArchived: QueryRun has been archived