tkvresearchjudicial-azure
    Updated 2025-02-13
    with full_data as
    (
    select * from (values

    ('0x8236a87084f8B84306f72007F36F2618A5634494','LBTC','Ethereum','Staked')
    ) as l1(address,token_name,chain,type)
    )
    ,

    pre_final_data as

    (select BLOCK_TIMESTAMP,
    SYMBOL,
    AMOUNT
    from bsc.core.ez_token_transfers
    where contract_address in (select lower(address) from full_data)
    and from_address = '0x0000000000000000000000000000000000000000'
    union all
    select BLOCK_TIMESTAMP,
    SYMBOL,
    -AMOUNT
    from bsc.core.ez_token_transfers
    where contract_address in (select lower(address) from full_data)
    and to_address = '0x0000000000000000000000000000000000000000'
    union all
    select BLOCK_TIMESTAMP,
    SYMBOL,
    AMOUNT
    from ethereum.core.ez_token_transfers
    where contract_address in (select lower(address) from full_data)
    and from_address = '0x0000000000000000000000000000000000000000'
    union all
    select BLOCK_TIMESTAMP,
    SYMBOL,
    -AMOUNT
    from ethereum.core.ez_token_transfers
    Last run: about 1 month ago
    SYMBOL
    TOTAL_BAL
    CHANGE_7D
    CHANGE_30D
    TYPE
    1
    LBTC18464.25.8214.06Staked
    1
    38B
    341s