phuOpensea - daily $ fees
    Updated 2022-07-31
    -- opensea fee address = '0xf715beb51ec8f63317d66f491e37e7bb048fcc2d'
    -- tokens send to the address above: ["0x8f3cf7ad23cd3cadbd9735aff958023239c6a063","0x2791bca1f2de4661ed88a30c99a7a9449aa84174","0x70c006878a5a50ed185ac4c87d837633923de296","0x7ceb23fd6bc0add59e62ac25578270cff1b9f619"]

    with
    matic_cte as (
    select
    block_timestamp,
    tx_hash,
    amount_usd
    from polygon.core.ez_matic_transfers
    where ORIGIN_TO_ADDRESS = '0xf715beb51ec8f63317d66f491e37e7bb048fcc2d'
    and MATIC_TO_ADDRESS = '0xf715beb51ec8f63317d66f491e37e7bb048fcc2d'
    )
    ,other_cte as (
    select
    date_trunc('hour',block_timestamp) block_timestamp,
    tx_hash,
    case
    when contract_address = '0x70c006878a5a50ed185ac4c87d837633923de296' then '0x557b933a7c2c45672b610f8954a3deb39a51a8ca'
    when contract_address = '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619' then '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
    when contract_address = '0x2791bca1f2de4661ed88a30c99a7a9449aa84174' then '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
    when contract_address = '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063' then '0x6b175474e89094c44da98b954eedeac495271d0f'
    end eth_token_address,
    raw_amount
    from polygon.core.fact_token_transfers
    where ORIGIN_TO_ADDRESS = '0xf715beb51ec8f63317d66f491e37e7bb048fcc2d'
    and TO_ADDRESS = '0xf715beb51ec8f63317d66f491e37e7bb048fcc2d'
    )
    ,get_other_price_cte as (
    select
    block_timestamp,
    case
    when eth_token_address = '0x557b933a7c2c45672b610f8954a3deb39a51a8ca' then 'REVV'
    when eth_token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' then 'WETH'
    when eth_token_address = '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' then 'USDC'
    when eth_token_address = '0x6b175474e89094c44da98b954eedeac495271d0f' then 'DAI'
    Run a query to Download Data