Query editor
-- Did delegatees end up delegating their airdrop to the same delegates they already supported?-- 1) select addresses that are eligible for the airdropwith eligible_addresses as (select addressfrom dune.oplabspbc.dataset_op_airdrop_4_simple_list air_list),-- 2) left join on the addresses that claimed the airdropclaimed_airdrops as (selectto as receipient, cast(value as double)/pow(10,18) as amountfrom erc20_optimism.evt_Transferwhere "from" = 0xfb4d5a94b516df77fbdbcf3cfeb262baaf7d4db7),-- Delegations after the airdropdelegated_airdrops as (selectdelegator, fromDelegate, toDelegate, evt_block_timefrom op_optimism.GovernanceToken_evt_DelegateChangedwhere evt_block_time > cast('2024-02-20' as date))-- Final statsselectcount(*) as eligble_addresses -- how many peeps eligible, sum(case when ca.receipient is not null then 1 else 0 end) as claimed_airdrops -- how many peeps claimed it, sum(case when da.delegator is not null then 1 else 0 end) as delegated_from_airdrop -- how many peeps delegated their tokens that they received, sum(case when da.delegator is not null and fromDelegate = 0x0000000000000000000000000000000000000000 then 1 else 0 end) as delegated_first_time -- how many peeps delegated their tokens for the first time, sum(case when da.delegator is not null and fromDelegate <> 0x0000000000000000000000000000000000000000 and fromDelegate <> toDelegate then 1 else 0 end) -- how many peeps chosen a different delegatefrom eligible_addresses ealeft join claimed_airdrops caon ea.address = ca.receipientleft join delegated_airdrops daon ea.address = da.delegator/*Possible areas of improvement- make sure that delegation happend after the claim (evt_block_time in delegated_airdrops >= evt_block_time in claimed_airdrops)*/