Query editor
-- User interactions with outside contracts:-- All Benqi Finance contracts have been excluded-- All contracts that appear in multiple (ie., have more than one occurence given multiple names input into labels) as given one name for efficiency-- All contracts that lack a name are provided one via the case function-- All labels that are not provided by Dune are pulled directly from Snowtracewith contract_details as(with users as(selectdistinct(minter) as userfrom benqi_finance_avalanche_c.QiErc20Delegate_evt_Mintunion allselectdistinct(redeemer) as userfrom benqi_finance_avalanche_c.QiErc20Delegate_evt_Redeemunion allselectdistinct(minter) as userfrom benqi_finance_avalanche_c.QiAvax_evt_Mintunion allselectdistinct(redeemer) as userfrom benqi_finance_avalanche_c.QiAvax_evt_Redeem)selecta.block_time, to, name as contract_name, (casewhen name like '%Trader_joe%' then 'Trader Joe'when name like '%Aboard%' then 'Aboard Exchange'when name like '%Assetux%' then 'Assetux'when name like '%Binance%' then 'Binance'when name like '%Bitfinex%' then 'Bitfinex'when name like '%Bitmart%' then 'BitMart'when name like '%Bitpanda%' then 'Bitpanda'when name like '%Btcturk%' then 'BtcTurk'when name like '%Canary%' then 'Canary Exchange'when name like '%Coinbase%' then 'Coinbase'when name like '%Coinone%' then 'Coinone'when name like '%Complus%' then 'Complus Network'when name like '%Cryptomkt%' then 'CryptoMKT'when name like '%Curve%' then 'Curve'when name like '%Dexalot%' then 'Dexalot'when name like '%DEX%' then 'DEX Guru'when name like '%EMDX%' then 'EMDX'when name like '%Enclave%' then 'Enclave Markets'when name like '%GMX%' then 'GMX'when name like '%Hubble%' then 'Hubble Exchange'when name like '%Huobi%' then 'Huobi'when name like '%Letsexchange%' then 'LetsExchange'when name like '%Pelerin%' then 'Mt Pelerin'when name like '%Okcoin%' then 'Okcoin'when name like '%Okex%' then 'OKEx'