defi__joshIntract tx
    Updated 2025-03-04
    with Intr_tx as
    (
    select
    block_timestamp,
    contract_address,
    from_address,
    to_address,
    amount_USD,
    tx_hash
    from base.core.ez_token_transfers
    where TO_ADDRESS = lower('0x4Fd8Cd9cf58cE8Fd6ebdE594ab60B195395A482D')
    and BLOCK_TIMESTAMP :: date >= '2024-10-12'
    and SYMBOL like 'USD%'

    union all

    select
    block_timestamp,
    contract_address,
    from_address,
    to_address,
    amount_USD,
    tx_hash
    from polygon.core.ez_token_transfers
    where TO_ADDRESS = lower('0x4Fd8Cd9cf58cE8Fd6ebdE594ab60B195395A482D')
    and BLOCK_TIMESTAMP :: date >= '2024-10-12'
    and SYMBOL like 'USD%'

    order by 1 desc
    )

    select
    round(sum(amount_USD)) as total_money_received_from_intr_in_USD
    from Intr_tx

    group by to_address
    Last run: about 1 month ago
    TOTAL_MONEY_RECEIVED_FROM_INTR_IN_USD
    1
    1780
    1
    8B
    4s