datavortexBy Asset
    Updated 2025-02-09
    WITH D1 AS (
    SELECT DISTINCT
    contract_name,
    contract_address,
    origin_from_address AS depositor,
    CASE
    WHEN decoded_log:wad IS NOT NULL
    THEN (decoded_log:wad::int)
    ELSE (decoded_log:assets::int)
    END AS deposit_amount,
    tx_hash,
    DATE_TRUNC('day', block_timestamp) AS deposit_date
    FROM swell.core.ez_decoded_event_logs
    WHERE event_name = 'Deposit'
    ),

    D2 AS (
    SELECT DISTINCT
    contract_name,
    contract_address,
    origin_from_address AS depositor,
    (decoded_log:assets[1]::int) AS deposit_amount,
    tx_hash,
    DATE_TRUNC('day', block_timestamp) AS deposit_date
    FROM swell.core.ez_decoded_event_logs
    WHERE event_name = 'Deposits'
    AND tx_hash NOT IN (SELECT tx_hash FROM D1)
    ),

    prices AS (
    SELECT
    LOWER(name) AS name,
    LOWER(symbol) AS symbol,
    DATE_TRUNC('day', hour) AS price_date,
    AVG(price) AS price,
    Last run: 19 days ago
    CONTRACT_NAME
    TOTAL_DEPOSIT_TRANSACTIONS
    TOTAL_DEPOSITORS
    TOTAL_DEPOSITS_USD
    1
    EVK Vault eWETH-154115623931521.277711
    2
    Wrapped Ether12828128421227596.9912767
    3
    EVK Vault eweETH-12186514529055.2447669
    4
    EVK Vault eezETH-1137554804654.28778654
    5
    EVK Vault epzETH-144243331037.32958512
    6
    tsRSwellSwell1551052767002.21051915
    7
    EVK Vault eswETH-147321306788.08371253
    8
    EVK Vault ewstETH-118530914024.23162129
    9
    EVK Vault erswETH-17746796602.170698268
    10
    EVK Vault ersETH-16429573181.022509994
    11
    tsWeethRsETH2421161135.291772331
    12
    tsSwellETH8921144538.1271423
    13
    tsPzethEzeth1710142881.807928816
    14
    tsEnaUsde432021850.81323435
    15
    tsRswethWeeth181618592.985436948
    16
    EVK Vault eWETH-21181.276025
    17
    980.0001
    18
    veNFT102440
    18
    726B
    2s