Query editor
withdeployed_vaults_v2 AS (SELECT*FROMy2k_arbitrum.CarouselFactory_evt_MarketCreated),deployed_vaults_v1 as (select*from y2k_arbitrum.VaultFactory_evt_MarketCreated),combined as (selecthedgefrom deployed_vaults_v1union allselectriskfrom deployed_vaults_v1union allselectpremiumfrom deployed_vaults_v2union allselectcollateralfrom deployed_vaults_v2),inflows as (selectevt_block_time,evt_tx_hash,cast(value/1e18 as double) as y2k,"to","from"from erc20_arbitrum.evt_transferwhere "to" = 0x5c84cf4d91dc0acde638363ec804792bb2108258and contract_address = 0x65c936f008BC34fE819bce9Fa5afD9dc2d49977f--and "from" not in (--0xba12222222228d8ba445958a75a0704d566bf2c8, -- balancer--0xa1493d6b3c66bfe2dbbb4a94474c13cac46a1fe0, -- cancelled vesting--0x7f1519ff279f860686b068a6a20b62d00f9a0fc3, -- cancelled vesting--0xaad83025887313bd6974d97e444867c9adf048f2, -- cancelled vesting--0x8cf6cb47b1b6d93bc0b5e1a3f75291ff424ce7a5, -- cancelled vesting--0xdB58bA3B74CBBa91E80F8329Ff9A5b19036EC3dF, -- Camelot--0xe9a7d54c6c79da2342a08d16ac43e1bd92652e75 -- Camelot--)order by value desc),outflows as (selectevt_block_time,evt_tx_hash,cast(value/1e18 as double) as y2k,