SWAPS | SWAPPERS | VOLUME_USD | AVERAGE_AMOUNT_USD | |
---|---|---|---|---|
1 | 852786 | 70030 | 228525483.285188 | 394.706996477 |
Afonso_DiazTotal
Updated 2025-02-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
31
32
33
34
35
36
›
⌄
with
pricet as (
select
hour::date as date,
token_address,
decimals,
symbol,
avg(price) as token_price_usd
from
kaia.price.ez_prices_hourly
group by 1, 2, 3, 4
),
swaps as (
select
tx_hash,
block_timestamp,
origin_from_address as swapper,
replace(topics[2], '0x000000000000000000000000', '0x') as token_in_contract,
replace(topics[3], '0x000000000000000000000000', '0x') as token_out_contract,
utils.udf_hex_to_int('0x' || substring(data, 67, 64)) as amount_in_unadj,
utils.udf_hex_to_int('0x' || right(data, 64)) as amount_out_unadj
from
kaia.core.fact_event_logs
where
tx_succeeded
and topics[0] = '0x20efd6d5195b7b50273f01cd79a27989255356f9f13293edc53ee142accfdb75'
and origin_to_address = '0xf50782a24afcb26acb85d086cf892bfffb5731b5'
),
main as (
select
swaps.*,
nvl(a.symbol, c.symbol) as symbol_in,
nvl(b.symbol, d.symbol) as symbol_out,
Last run: about 1 month ago
1
47B
78s