CryptoIcicleFlash Bounty: GMX Protocol Overview - Past 5 Days
    Updated 2022-09-18
    -- How has the protocol been performing over the past month? Three months? How is it absorbing these massive fees?

    -- Pay by Quality
    -- Your score determines your final payout.
    -- Grand Prize 112.5 USDC (A score of 11 or 12 earns you a Grand Prize title)
    -- Payout 75 USDC
    -- Score Multiplier 0-7 : 0% 8 : 50% 9 : 75% 10 : 100% 11 : 125% 12 : 150%
    -- Payout Network Ethereum
    -- Level Intermediate
    -- Difficulty Hard

    -- GMX, a perp protocol, has been attracting attention recently for the massive fee revenue being generated.
    -- Examine and compare the protocol over recent days and weeks on Arbitrum.
    -- How has the protocol been performing over the past month? Three months? How is it absorbing these massive fees?
    -- Note any overarching themes or narratives that you find.

    -- Contracts https://gmxio.gitbook.io/gmx/contracts
    -- SQL Credit https://app.flipsidecrypto.com/velocity/queries/88b0d239-c959-4a9b-85cb-58931bcdf169
    with
    token_price as (
    select
    hour::date as date,
    token_address,
    symbol,
    avg(price) as price
    from ethereum.token_prices_hourly
    where hour::date >= CURRENT_DATE - {{n_days}}
    group by date, symbol, token_address
    ),
    txns as (
    select
    t.*,
    t.amount * p.price as amount_usd
    from
    (
    select
    Run a query to Download Data