andreafiandro[zKSyncEra] # Liquidity Provider
    Updated 2023-11-22
    WITH BRIDGED AS (select
    AMOUNT,
    SYMBOL,
    AMOUNT_USD,
    date_trunc('hour', BLOCK_TIMESTAMP) as HOUR,
    ORIGIN_FROM_ADDRESS,
    ORIGIN_TO_ADDRESS,
    ORIGIN_FUNCTION_SIGNATURE
    from
    ethereum.core.ez_token_transfers
    where
    ORIGIN_TO_ADDRESS in (
    '0x57891966931eb4bb6fb81430e6ce0a03aabde063'
    )
    and ORIGIN_FUNCTION_SIGNATURE in ('0x933999fb','0xe8b99b1b') -- Deposit ERC20 Tokens
    AND HOUR > '{{start_date_zksync}}'
    AND HOUR < '{{end_date_zksync}}'

    UNION ALL

    select
    AMOUNT,
    'ETH' as SYMBOL,
    AMOUNT_USD,
    date_trunc('hour', BLOCK_TIMESTAMP) as HOUR,
    ORIGIN_FROM_ADDRESS,
    ORIGIN_TO_ADDRESS,
    ORIGIN_FUNCTION_SIGNATURE
    from
    ethereum.core.ez_eth_transfers
    where
    ORIGIN_TO_ADDRESS in (
    '0x32400084c286cf3e17e7b677ea9583e60a000324' -- Bridge ETH
    )
    and ORIGIN_FUNCTION_SIGNATURE in ('0xeb672419') -- Deposit ETH
    AND AMOUNT > 0
    Run a query to Download Data