CryptoIcicleMega-OPtimism Bridger Destinations (redux) - ETH & Non-ETH
Updated 2023-11-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
›
⌄
-- Let’s take a closer look at DEXs on Optimism. Make a dashboard that compares at least three DEXs based on:
-- Pay by Quality Your score determines your final payout.
-- Grand Prize 187.5 USDC (A score of 11 or 12 earns you a Grand Prize title)
-- Payout 125 USDC
-- Score Multiplier 0-7 : 0% 8 : 50% 9 : 75% 10 : 100% 11 : 125% 12 : 150%
-- Payout Network Ethereum
-- Level Advanced
-- Difficulty Elite
-- Where do people go when they bridge to Optimism from Ethereum?
-- What are the 10 most popular first destinations for users that have just bridged from Ethereum?
-- What has this been for each day in the past month? How has this changed over the last three months? Last six months?
-- BONUS: Post your dashboard on Twitter and tag @flipsidecrypto and any relevant accounts!
-- SQL Credit: https://app.flipsidecrypto.com/velocity/queries/f5f61436-401b-47d8-bbc9-e87f64b2993e
with token_price as (
select
hour::date as date,
token_address,
symbol,
avg(price) as price
from ethereum.core.fact_hourly_token_prices
where hour::date >= CURRENT_DATE - {{n_days}}
group by date, symbol, token_address
),
eth_txns as (
select
date_trunc('{{date_range}}',block_timestamp) as day,
'ETH' as type,
count (distinct tx_hash) bridge_tx,
sum (amount_usd) bridge_usd,
count (distinct eth_from_address) unique_bridger,
sum (bridge_usd) over (order by day) cum_bridge_usd,
sum (bridge_tx) over (order by day) as cum_bridge_tx
from ethereum.core.ez_eth_transfers
Run a query to Download Data