adriaparcerisasSunloan deposits: Polygon
    Updated 2023-10-10
    with
    data as (
    select
    'MATIC' as symbol,
    amount,
    amount_usd,
    block_timestamp
    from polygon.core.ez_matic_transfers
    where matic_to_address = lower('0xEF0B56692F78A44CF4034b07F80204757c31Bcc9')
    -- 0xd75233704795206de38Cc58B77a1f660B5C60896
    UNION
    select
    symbol,
    amount,
    amount_usd,
    block_timestamp
    from polygon.core.ez_token_transfers
    where to_address = lower('0xEF0B56692F78A44CF4034b07F80204757c31Bcc9')
    )
    SELECT
    symbol as "Symbol",
    amount as "Amount in native tokens",
    amount_usd as "USD equivalent amount",
    block_timestamp as "Date time"
    from data where amount_usd is not NULL
    and amount<1e9
    --and symbol in (select symbol from ethereum.price.ez_hourly_token_prices)
    order by 4 desc
    limit {{amount_of_new_payments}}



    Run a query to Download Data