Pine AnalyticsTVL Overall (Pool)
    Updated 2025-04-11
    with tab1 as (
    select
    distinct contract_address as pool_address,
    POOL_NAME
    from base.defi.ez_dex_swaps
    where platform ILIKE 'aerodrome'
    )


    , tab_price as (
    SELECT
    date_trunc('day', hour) as Date,
    token_address,
    symbol,
    avg(price) as price

    from base.price.ez_prices_hourly
    where hour > current_date
    group by 1,2,3
    )

    , tab2 as (
    select
    to_address as Pool,
    contract_address as Token_address,
    sum(raw_amount/power(10, DECIMALS)) as Amount

    from base.core.ez_token_transfers
    where to_address in (select pool_address from tab1)
    group by 1,2

    UNION ALL

    select
    from_address as Pool,
    Last run: 15 days ago
    POOL_NAME
    POOL_ADDRESS
    BALANCE_USD
    1
    USDC-AERO0x6cdcb1c4a4d1c3c6d054b27ac5b77e89eafb971d35855408.7058542
    2
    WETH-USDC0xcdac0d6c6c59727a65f871236188350531885c4315079271.4879974
    3
    Other0x5fede9d65714907381a76aa9bf949219dd1c50238792550.75740236
    4
    WETH-WELL0x89d0f320ac73dd7d9513ffc5bc58d1161452a6578486269.66727
    5
    Other0x01784ef301d79e4b2df3a21ad9a536d4cf09a5ce7000195.11576295
    6
    Other0x875d4cc8f0d91d9f2d985a64a3aa6624313e5fc35294815.27527337
    7
    Other0xde4fb30ccc2f1210fce2c8ad66410c586c8d1f9a4926324.74534386
    8
    Other0x5447f7fe76894d98753a0a6d69b9cb840037c13d4772154.41967788
    9
    Other0xd9edc75a3a797ec92ca370f19051babebfb2edee4483747.64132237
    10
    Other0x3d36cf85a0c275cf4894315a6c1d6c558d6d984c4338920.2769365
    11
    Other0xcefc8b799a8ee5d9b312aeca73262645d664aaf74171672.51614586
    12
    Other0x2578365b3dfa7ffe60108e181efb79feddec23193977411.92276478
    13
    Other0xb909f567c5c2bb1a4271349708cc4637d7318b4a3890352.03887142
    14
    Other0x21594b992f68495dd28d605834b58889d0a727c73852626.71082609
    15
    USDC-MAI0x2a1463cebe85315224c536afd389b381b43f32063828874.39035091
    16
    hyUSD-eUSD0xb5e331615fdba7df49e05cdeaceb14acdd5091c33613905.27466733
    17
    DOLA-USDC0xf213f2d02837012dc0236cc105061e121bb03e373251667.60787749
    18
    Other0x488d6ea6064eee9352fdcdb7bc50d98a7ff3ad4e2767682.31834241
    19
    Other0x91f0f34916ca4e2cce120116774b0e4fa0cdcaa82719591.04258317
    20
    Other0x9c38b55f9a9aba91bbcedeb12bf4428f47a6a0b82561753.31133918
    ...
    4017
    271KB
    77s