Query editor
/**DEV: For Anichess, transfers related to claiming airdrop are executed by a distributor address,which auto-stakers tokens of claimers. Hence, for those transfers we need to treat msg.sender fortheir txn as the actual wallet initiating the transfer.**/with/** Commenting out because it will count delegated transfers for $CHECK claims as outgoing tokens from the sender address-- delegated transfers cover the scenario described above in DEVdelegated_transfers as (selecttransfers.block_time,transactions."from" as sender,transfers."to" as recipient,transfers.amount_raw,transfers.amount,transfers.price_usd,transfers.amount_usdfrom tokens.transfers transfersjoin {{blockchain}}.transactions transactions on transfers.tx_hash = transactions.hashwheretransfers.blockchain = '{{blockchain}}'and transfers."from" = {{distributor_address}} -- address which msg.sender delegates claim toand transfers."to" = {{staking_contract}}and transfers.contract_address = {{token_contract}}and cast(transactions.data as varchar) like '%{{claim_method_id}}%')**/transfers as (selectblock_time,"from" as sender,"to" as recipient,amount_raw,amount,price_usd,amount_usdfrom tokens.transferswhere blockchain = '{{blockchain}}'and contract_address = {{token_contract}}and "from" != {{distributor_address}})select * from transfers order by block_time