CryptoIcicleFlash Bounty: GMX Traders - LP Over time
    Updated 2022-09-19
    -- Pay by Quality
    -- Your score determines your final payout.
    -- Grand Prize 225 USDC (A score of 11 or 12 earns you a Grand Prize title)
    -- Payout 150 USDC
    -- Score Multiplier0-7 : 0% 8 : 50% 9 : 75% 10 : 100% 11 : 125% 12 : 150%
    -- Payout Network Ethereum
    -- Level Advanced
    -- Difficulty Elite
    -- Analyze the traders utilizing this platform on Arbitrum.
    -- Identify the top-performing wallets in trades. Compare how traders are performing across various assets,
    -- and how traders are performing in relation to liquidity providers.
    -- Note any trends or outliers you may see.

    -- Contracts https://gmxio.gitbook.io/gmx/contracts
    -- SQL Credit https://app.flipsidecrypto.com/velocity/queries/88b0d239-c959-4a9b-85cb-58931bcdf169
    with
    txns as (
    select
    t.*
    from arbitrum.core.fact_event_logs t
    where 1=1
    and origin_function_signature = '0x364e2311' -- mintAndStakeGlp
    and contract_address = '0x4277f8f2c384827b5273592ff7cebd9f2c1ac258' --Token GMX LP
    and block_timestamp >= CURRENT_DATE - {{n_days}}
    )

    select
    date_trunc('day',block_timestamp) as date,
    count(distinct tx_hash) as n_txns,
    count(distinct origin_from_address) as n_wallets
    from txns
    group by date
    Run a query to Download Data