datavortextotal
Updated 2024-11-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 total as (
SELECT
sum(amount_in_usd) as "total bridged volume",
count(DISTINCT tx_hash) as "total Bridges",
count(DISTINCT sender) as "total users"
FROM
aptos.defi.ez_bridge_activity
WHERE
block_timestamp >=
AND platform = 'layerzero'
),
averages as (
SELECT
"total bridged volume" / NULLIF("total users", 0) as "average bridged volume per user",
"total Bridges" / NULLIF("total users", 0) as "average bridges per user"
FROM
total
),
weekly as (
SELECT
date_trunc('week', block_timestamp) as "timeline",
sum(amount_in_usd) as "weekly bridged volume",
count(DISTINCT tx_hash) as "weekly Bridges",
count(DISTINCT sender) as "weekly users"
FROM
aptos.defi.ez_bridge_activity
WHERE
block_timestamp >= '2024-01-01'
and block_timestamp <= '2024-12-31'
AND platform = 'layerzero'
GROUP BY
"timeline"
QueryRunArchived: QueryRun has been archived