Query editor
with reward_claimed_tx as (select * fromarbitrum.logswhere-- events == event RewardClaimed(uint256 amount)-- topic0 == keccak256(toHex("RewardClaimed(uint256)"))topic0 = 0xb14d3941859969c9e5c6f67f57fcaf06485865972cc90138a8a5b2eb58cf9cd4),pool_list as (select * from query_3755619),filtered_tx as (select * from reward_claimed_tx left join pool_list on reward_claimed_tx.tx_to = pool_list.pool_addresswhere pool_symbol is not null)selectblock_time,tx_from as user,contract_address as position_address,varbinary_to_uint256(data) as reward_amount_raw,-- varbinary_substring(data, 33 + 12, 20) as reward_token,casewhen position('Lodestar' IN pool_symbol) != 0 then 0xf19547f9ed24aa66b03c3a552d181ae334fbb8db -- LODEwhen position('Compound' IN pool_symbol) != 0 then 0x354a6da3fcde098f8389cad84b0182725c6c91de -- COMPelse nullend as reward_token,tx_hash,pool_address,pool_symbolfrom filtered_tx