AntekCV - All Seeds fixed alpinestar copy new contracts copy copy daily hourly
    Updated 2024-07-20
    with
    feeble_seeds AS (
    SELECT
    tx_hash,
    from_address
    FROM blast.core.fact_transactions
    WHERE status = 'SUCCESS'
    AND block_timestamp > '2024-03-14'
    AND to_address IN (
    '0x6f30e8768233452aeabdbb209a8ccf708bfaf993',
    '0x142c84dd365f56d03b165767b3b8e7f01b384b8e',
    '0xf8f63172b1e5bbe4c78e6bb37237037a2b172587',
    '0x52e383e385131bd9190de6f61dddcd42c21b33c1',
    '0xBCC80e8F245D5Cd889C704BD4a53F7F1D013ff84',
    '0x7c14c7ea0b210d6cfe140629c88a7aef747fd367'
    )
    AND origin_function_signature IN ('0x0d10e149','0xafcade42')
    ),
    feeble_seeds_buys AS (
    SELECT
    date_trunc('{{time}}', block_timestamp) AS "Date",
    COUNT(DISTINCT a.from_address) AS "Distinct Buyers",
    SUM(raw_amount / POWER(10, 18)) AS "Yield Spent",
    SUM(raw_amount / POWER(10, 18)) / 1 AS "Seeds Bought",
    'Feeble' AS "Seed Type"
    FROM blast.core.fact_token_transfers a
    INNER JOIN feeble_seeds b ON a.tx_hash = b.tx_hash AND a.from_address = b.from_address
    WHERE to_address = '0x0000000000000000000000000000000000000000'
    GROUP BY 1
    ORDER BY 1
    ),
    pico_seeds AS (
    SELECT
    tx_hash,
    from_address
    FROM blast.core.fact_transactions
    Auto-refreshes every 12 hours
    QueryRunArchived: QueryRun has been archived