yolo_gamesGelato VRF Fees YOLO Limited
    Updated 2024-08-01
    -- forked from Gelato VRF Fees YOLO + YOLO Play @ https://flipsidecrypto.xyz/edit/queries/07c1d9f6-844c-4f1a-8bb8-a4b12327cb87

    SELECT day, SUM("Fee") as "VRF Total Fee" FROM (
    SELECT DATE_TRUNC('day', a.block_timestamp) as day, sum(1.08*TX_FEE_PRECISE) as "Fee"
    FROM blast.core.fact_event_logs a
    INNER JOIN blast.core.fact_transactions b ON a.TX_HASH = b.TX_HASH
    INNER JOIN blast.core.fact_event_logs c ON a.TX_HASH = c.TX_HASH
    WHERE a.contract_address = LOWER('0xfec1e33ebe899906ff63546868a26e1028700b0e')
    AND a.tx_status = 'SUCCESS'
    AND a.topics[0] = '0xc6cfec28363edf86fe132edcedb30ccc6dbb89a7ec5f428aaeeb8ae5d901537d' -- LogExecWithSig
    AND a.origin_from_address = LOWER('0x417B4Adc279743FC49F047C323FC668db9E600D8')
    AND c.CONTRACT_ADDRESS = LOWER('0x28EF3eaE1AbB6D6e22e9bFc7a0944f707E4726b3')
    GROUP BY 1
    )
    GROUP BY 1
    ORDER BY 1 ASC







    QueryRunArchived: QueryRun has been archived