Hessishmntrew- locks
    Updated 2025-03-21
    with deps as

    (select amount,
    amount_usd,
    ethereum.public.udf_hex_to_int(SUBSTR(b.DATA, 131, 194))/86400 as "lock-up dur" ,
    from_ADDRESS,
    a.tx_hash,
    a.block_timestamp::date as date
    from mantle.core.ez_native_transfers a
    join mantle.core.fact_event_logs b on a.tx_hash = b.tx_hash
    where a.ORIGIN_FUNCTION_SIGNATURE = '0xe5853f56'
    and a.TO_ADDRESS = '0xed884f0460a634c69dbb7def54858465808aacef'
    and b.TOPIC_0 = '0x71a810dd86885cd9fea6e9b97fe8287ec71dd6475db601e9b925679c9f3ec3d1'

    union

    select amount,
    amount_usd,
    0 as "lock-up dur" ,
    from_ADDRESS,
    a.tx_hash ,
    a.block_timestamp::date as date
    from mantle.core.ez_native_transfers a
    where a.ORIGIN_FUNCTION_SIGNATURE = '0xb6b55f25'
    and a.TO_ADDRESS = '0xed884f0460a634c69dbb7def54858465808aacef')


    SELECT case when "lock-up dur" = 0 then 'no lock_up'
    else round("lock-up dur")||' Days' end as "lock-up duration",
    sum(amount) as "Total volume", count(DISTINCT tx_hash) as "Deposit txs"
    from deps
    group by all
    Last run: 17 days ago
    lock-up duration
    Total volume
    Deposit txs
    1
    no lock_up2219735981.3129234292
    2
    200 Days8306790.947100742455
    3
    100 Days52785748.31380577330
    4
    300 Days43166160.882162712733
    5
    50 Days42733607.335780113878
    5
    180B
    27s