Query editor
with tx as (select*from ethereum.logswhere-- tx_hash = 0x52d1c0e3b0124943c050a479b3577df7508196e3e1bfe7c93ed4c6329bafae71 and-- block_time >= timestamp '2025-05-22' andblock_time >= timestamp '2025-06-10' andtx_to = 0x3f04b65Ddbd87f9CE0A2e7Eb24d80e7fb87625b5 -- infinifi gateway), share as (selectblock_time,tx_hash,contract_address,topic0,topic1 as from_address,topic2 as to_address,bytearray_to_uint256("data")/pow(10,18) as sharefrom txwherecontract_address = 0x12b004719fb632f1E7c010c6F5D6009Fb4258442 and -- liUSD-1w tokentopic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef), amount as (selectblock_time,tx_hash,contract_address,topic0,topic1 as "timestamp",topic2 as "user",bytearray_to_uint256("data")/pow(10,18) as amountfrom txwherecontract_address = 0x1d95cC100D6Cd9C7BbDbD7Cb328d99b3D6037fF7 and -- infinifi locking controllertopic0 = 0x92177e10bc6c212f7b3d2d410aa7c5ecd47b5a5588ec2b495e42c8b6e394f708), main as (selects.*,a."user",a.amount,a.amount/s.share as ratefrom share sjoin amount a on s.tx_hash = a.tx_hash)selectblock_time,contract_address,tx_hash,ratefrom mainwhere rate IS NOT NULL