jackguysushi_l2_1 copy
Updated 2023-03-10
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
SELECT
date_trunc('day', block_timestamp) as day,
count(DISTINCT tx_hash) as transaction,
count(DISTINCT ORIGIN_FROM_ADDRESS) as active_users,
sum(CASE when not amount_in_usd is NULL then AMOUNT_IN_USD
when not amount_out_usd is NULL then AMOUNT_OUT_USD
else 0 end) as swap_volume_USD
FROM optimism.sushi.ez_swaps
GROUP BY 1
HAVING day > '2022-01-01'
--LIMIT 500
Run a query to Download Data