datavortexTop Bridges
Updated 2024-09-17
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 top_bridges AS (
SELECT
MAX(amount_usd) AS max_amount
FROM
avalanche.defi.ez_bridge_activity
WHERE
amount IS NOT NULL
)
SELECT
e.token_symbol,
e.platform AS protocol,
e.amount AS top_bridges
FROM
avalanche.defi.ez_bridge_activity e
JOIN
largest_transaction l
ON
e.amount_usd = l.max_amount
WHERE
e.amount_usd IS NOT NULL
LIMIT 1;
*/
WITH ranked_bridges AS (
SELECT
e.token_symbol,
e.platform AS protocol,
e.amount_usd AS transaction_amount,
ROW_NUMBER() OVER (ORDER BY e.amount_usd DESC) AS rank
FROM
avalanche.defi.ez_bridge_activity e
WHERE
e.amount_usd IS NOT NULL
)
SELECT
token_symbol,
QueryRunArchived: QueryRun has been archived