CryptoIcicleSolana-103.Going Down The Wormhole - Solana Before
    Updated 2022-12-08
    -- Payout 3.621 SOL
    -- Grand Prize 10.86 SOL
    -- Payout Network Solana
    -- Level Advanced
    -- Difficulty Elite

    -- Q103. Create a dashboard that can refresh daily with metrics that provide a detailed picture of Wormhole activity
    -- both from Ethereum to Solana and from Solana to Ethereum.
    -- How are tokens being bridged from chain to chain and which actions seem to be popular among users of Wormhole?
    -- What actions seem to influence bridging behavior?
    -- What are users doing before and after bridging?
    -- Do users seem to think that bridging is safe or more risky relative to transfers to centralized exchanges?
    with prices as (
    select
    block_timestamp::date as date,
    swap_from_mint as address,
    avg(swap_to_amount/swap_from_amount) as price_usd
    from flipside_prod_db.solana.fact_swaps
    where 1=1
    and swap_to_mint in(
    'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' -- USDC
    ,'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB' -- USDT
    )
    and succeeded = 'TRUE'
    and block_timestamp >= CURRENT_DATE - {{n_days}}
    group by date, address
    ),
    users as (
    select
    p.price_usd,
    t.*
    from (
    select
    i.value:parsed:info:amount/1e8 as token_amount,
    i.value:parsed:info:mint as token_address,
    Run a query to Download Data