hbd19940. ovr
    Updated 8 days ago
    with base as (
    select
    case
    when to_address = '0x8bc93498b861fd98277c3b51d240e7e56e48f23c' then 'Deposit'
    else 'Withdraw' end as action,
    BLOCK_TIMESTAMP,
    TX_HASH,
    ORIGIN_FROM_ADDRESS,
    ORIGIN_TO_ADDRESS,
    CONTRACT_ADDRESS,
    SYMBOL,
    FROM_ADDRESS,
    TO_ADDRESS,
    CASE
    WHEN ACTION = 'Deposit' then AMOUNT
    else AMOUNT * (-1) end as volume,
    CASE
    WHEN ACTION = 'Deposit' then AMOUNT_USD
    else AMOUNT_USD * (-1) end as volume_usd
    from ethereum.core.ez_token_transfers
    where (to_address = '0x8bc93498b861fd98277c3b51d240e7e56e48f23c' or from_address = '0x8bc93498b861fd98277c3b51d240e7e56e48f23c')
    and symbol != 'BTCN')

    select
    COUNT(DISTINCT TX_HASH) as "Total Transactions",
    count(distinct case when action = 'Deposit' then tx_hash end) as "Total Deposit Txs",
    count(distinct case when action = 'Withdraw' then tx_hash end) as "Total Withdraw Txs",
    count(distinct ORIGIN_FROM_ADDRESS) as "Unique Depositors",
    count(distinct case when action = 'Withdraw' then ORIGIN_FROM_ADDRESS end) as "Unique Withdrawers",
    "Unique Withdrawers" / "Unique Depositors" * 100 as "Withdrawers %"
    from base

    Last run: 8 days agoAuto-refreshes every 12 hours
    Total Transactions
    Total Deposit Txs
    Total Withdraw Txs
    Unique Depositors
    Unique Withdrawers
    Withdrawers %
    1
    623274260920160339941552845.6786
    1
    41B
    21s