Afonso_Diaz2023-08-23 11:39 PM
    Updated 2023-08-23
    with main as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as user,
    token_amount_usd,
    token_amount,
    eth_amount,
    eth_amount_usd,
    'Deposit' as type
    from ethereum.defi.ez_liquid_staking_deposits
    where platform = 'rocketpool'

    union all

    select
    tx_hash,
    block_timestamp,
    origin_from_address as user,
    token_amount_usd,
    token_amount,
    eth_amount,
    eth_amount_usd,
    'Withdraw' as type
    from ethereum.defi.ez_liquid_staking_withdrawals
    where platform = 'rocketpool'
    )

    select
    case
    when eth_amount_usd <= 5 then 'Less than 5$'
    when eth_amount_usd <= 10 then '6$ - 10$'
    when eth_amount_usd <= 20 then '11$ - 20$'
    when eth_amount_usd <= 50 then '21$ - 50$'
    when eth_amount_usd <= 100 then '51$ - 100$'
    when eth_amount_usd <= 1000 then '101$ - 1000$'
    Run a query to Download Data