Query editor
with opinion as (selecte.block_time, e.tx_from as address, LOWER('0x' || LPAD(to_hex(bytearray_substring(e.data, 13, 20)), 40, '0')) as proxy_addressfrom bnb.transactions as tleft join bnb.logs as e on t.hash = e.tx_hashwhere 1 = 1and e.contract_address = 0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2and t.block_number >= 62302755and e.block_number >= 62302755), opinion_10k as (selectb.address, b.proxy_address, b.block_time as created_atfrom dune.thea.dataset_airdrop_hunters as aleft join opinion as b on a.account = b.addresswhere b.address is not null), orderfills as (selectblock_time, tx_hash, LOWER('0x' || LPAD(to_hex(bytearray_ltrim(topic2)), 40, '0')) as maker, LOWER('0x' || LPAD(to_hex(bytearray_ltrim(topic3)), 40, '0')) as taker, bytearray_to_uint256(bytearray_substring(data, 1, 32)) as makerAssetId, bytearray_to_uint256(bytearray_substring(data, 33, 32)) as takerAssetId, bytearray_to_uint256(bytearray_substring(data, 65, 32)) as makerAmountFilled, bytearray_to_uint256(bytearray_substring(data, 97, 32)) as takerAmountFilled, bytearray_to_uint256(bytearray_substring(data, 129, 32)) as feefrom bnb.logswhere block_number >= 65733322and contract_address = 0x5F45344126D6488025B0b84A3A8189F2487a7246and topic0 = 0xd0a08e8c493f9c94f29311604c9de1b4e8c8d4c06bd0c789af57f2d65bfec0f6), trade as (selectblock_time, DATE_TRUNC('day', block_time) as biz_date, maker as proxy_address, CAST(makerAmountFilled / 2 as DOUBLE) / 1e18 as volume, tx_hashfrom orderfillswhere CAST(takerAssetId as VARCHAR) = '0'union allselectblock_time, DATE_TRUNC('day', block_time) as biz_date, taker as proxy_address, CAST(takerAssetId / 2 as DOUBLE) / 1e18 as volume, tx_hashfrom orderfills), hunter_trades as (selecta.address, a.proxy_address, a.created_at