Query editor
withgs as (select date_trunc('week', timestamp) as weekfrom utils.dayswhere timestamp >= date '2024-11-25'group by 1),csw as (select output_account as wallet,ownersfrom coinbase_smart_wallet_base.coinbasesmartwalletfactory_call_createaccount),deposits as (-- select-- *,-- sum(token_amt) over (partition by symbol order by block_date) as total_asset_token_amt,-- sum(usd_amt) over (partition by symbol order by block_date) as total_asset_usd_amt,-- -- sum(token_amt) over (order by block_date) as total_token_amt,-- sum(usd_amt) over (order by block_date) as total_usd_amt-- from (selectdate_trunc('week', block_date) as week,symbol,sum(amount) as token_amt,sum(amount_usd) as usd_amtfrom tokens_base.transfers tjoin csw con t."from" = c.walletand "to" in (0xcfdAb76b36B33dA54c08314A9F265588B67170dc,0xcCCd218A58B53C67fC17D8C87Cb90d83614e35fD,0x3cb7367aC1E6a439dA1f1717f8055f02E3C9d56e, -- cyphercardv3.base.eth0x154E719D0513B015194b8C6977e524508bb35276)where(t.contract_address in (0x833589fcd6edb6e08f4c7c32d4f71b54bda02913,0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42,0xd07379a755a8f11b57610154861d694b2a0f615a,0xa88594d404727625a9437c3f886c7643872296ae)or contract_address is null)group by 1,2-- )),