Query editor
with deposits as (selectblock_time,tx_hash,tx_from,tx_to,substr(topic1, 13) as sender,substr(topic2, 14) as receiver,REGEXP_EXTRACT_ALL(SUBSTR(TRY_CAST(data AS VARCHAR), 3), '.{64}') AS segmentedfrom monad.logswhere topic0 = 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7and contract_address = 0x0c65A0BC65a5D819235B71F554D210D3F80E0852),prices as (selecttimestamp,contract_address,pricefrom prices.hourwhere blockchain = 'monad'),current_prices as (selectpricefrom prices.hourwhere blockchain = 'monad'and contract_address = 0x0c65A0BC65a5D819235B71F554D210D3F80E0852order by timestamp desclimit 1),apriori_deposits as (selectblock_time,tx_hash,tx_from,tx_to,'DEPOSIT' as event,sender,receiver,try_cast(VARBINARY_TO_UINT256(TRY_CAST(FROM_HEX(segmented[1]) AS VARBINARY)) as double) / 1e18 as mon_amount,try_cast(VARBINARY_TO_UINT256(TRY_CAST(FROM_HEX(segmented[2]) AS VARBINARY)) as double) / 1e18 as lst_amountfrom deposits),withdrawals as (selectblock_time,tx_hash,tx_from,tx_to,substr(topic1, 13) as sender,substr(topic2, 14) as receiver,REGEXP_EXTRACT_ALL(SUBSTR(TRY_CAST(data AS VARCHAR), 3), '.{64}') AS segmentedfrom monad.logswhere topic0 = 0x8caf04742286d017f9ac3924388e188c73e6e5094311c5e59a61a7ef86dda8bfand contract_address = 0x0c65A0BC65a5D819235B71F554D210D3F80E0852),