Skip to main content
Community

Pendle EBTC

99 rows today at 6:04 PM
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
with
flows as (
select
date_trunc('day', timestamp) as stringDay,
SUM(
case
when input_0_value_address = '0x0000000000000000000000000000000000000000' then CAST(input_2_value_uint256 / 1e8 as DOUBLE)
when input_1_value_address = '0x0000000000000000000000000000000000000000' then - CAST(input_2_value_uint256 / 1e8 as DOUBLE)
else 0
end
) as netFlow
from
evm_events_ethereum_mainnet_v1
where
address = '0xeb993b610b68f2631f70ca1cf4fe651db81f368e'
and signature = 'Transfer(address,address,uint256)'
group by
stringDay
order by
stringDay asc
)
select
stringDay as chart_x,
sum(netFlow) over (
order by
stringDay asc
) as chart_y
from
flows