kidaUST Bridge Activity For Harmony and Anyswap Fantom
Updated 2022-07-07
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
harmony_bridge AS (
SELECT
TRUNC(block_timestamp, 'day') as date,
'Harmony' as blockchain,
'uusd' as currency,
SUM(CASE WHEN sender = 'terra1rtn03a9l3qsc0a9verxwj00afs93mlm0yr7chk' THEN -amount ELSE amount END) as net_deposit,
SUM(net_deposit) OVER (ORDER BY date) as total_bridged,
'Shuttle' as source
FROM terra.transfer_events
WHERE
currency = 'UST'
AND (sender = 'terra1rtn03a9l3qsc0a9verxwj00afs93mlm0yr7chk' OR recipient = 'terra1rtn03a9l3qsc0a9verxwj00afs93mlm0yr7chk')
GROUP BY date
),
anyswap_fantom_bridge AS (
SELECT
TRUNC(block_timestamp, 'day') as date,
'Fantom' as blockchain,
'uusd' as currency,
SUM(CASE WHEN sender = 'terra1gdxfmwcfyrqv8uenllqn7mh290v7dk7x5qnz03' THEN -amount ELSE amount END) as net_deposit,
SUM(net_deposit) OVER (ORDER BY date) as total_bridged,
'Multichain' as source
FROM terra.transfer_events
WHERE
currency = 'UST'
AND (sender = 'terra1gdxfmwcfyrqv8uenllqn7mh290v7dk7x5qnz03' OR recipient = 'terra1gdxfmwcfyrqv8uenllqn7mh290v7dk7x5qnz03')
GROUP BY date
),
shuttle AS (
SELECT *
FROM (
SELECT
*
Run a query to Download Data