Query editor
-- SDMC vault — top wallets by realized profit ("profit people made").---- Realized profit is what a wallet has actually booked by claiming:-- realized_profit = withdrawn − deposited-- We list only wallets that have CLAIMED (withdrawn > 0). Wallets still-- holding are excluded: their gain is unrealized and can't be derived from-- transfers alone (it needs the vault-token NRV at redemption).---- Withdrawals are matched to addresses that previously deposited, so capital-- deployed to the SPV and dust to non-depositors never appear here.---- ADDING A NEW VAULT: extend the `IN (...)` filters for each chain CTE.WITH eth AS (SELECT CAST("from" AS VARCHAR) AS wallet, 'ethereum' AS chain,CAST(value AS DOUBLE)/1e6 AS deposited, 0.0 AS withdrawn,evt_block_time AS tsFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48AND evt_block_time >= CAST('2026-05-17' AS timestamp)AND "to" IN (0xcee063f8148901037323c1c3a3763b8a5c7c36fb)UNION ALLSELECT CAST("to" AS VARCHAR), 'ethereum',0.0, CAST(value AS DOUBLE)/1e6, evt_block_timeFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48AND evt_block_time >= CAST('2026-05-17' AS timestamp)AND "from" IN (0xcee063f8148901037323c1c3a3763b8a5c7c36fb)),b AS (SELECT CAST("from" AS VARCHAR) AS wallet, 'base' AS chain,CAST(value AS DOUBLE)/1e6 AS deposited, 0.0 AS withdrawn,evt_block_time AS tsFROM erc20_base.evt_TransferWHERE contract_address = 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913AND evt_block_time >= CAST('2026-05-17' AS timestamp)AND "to" IN (0x3ed40ee069214f350a36764b4f38cffbe3c6d8a7)UNION ALLSELECT CAST("to" AS VARCHAR), 'base',0.0, CAST(value AS DOUBLE)/1e6, evt_block_timeFROM erc20_base.evt_TransferWHERE contract_address = 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913AND evt_block_time >= CAST('2026-05-17' AS timestamp)AND "from" IN (0x3ed40ee069214f350a36764b4f38cffbe3c6d8a7)),s AS (SELECT from_owner AS wallet, 'solana' AS chain,CAST(amount AS DOUBLE)/1e6 AS deposited, 0.0 AS withdrawn,block_time AS tsFROM tokens_solana.transfersWHERE token_mint_address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'AND block_time >= CAST('2026-05-17' AS timestamp)AND to_token_account IN ('4cCFi2gvm5eKtyBUfWDsjHRwTWUti2FVW8nAYh5KuLEU')UNION ALLSELECT to_owner, 'solana',0.0, CAST(amount AS DOUBLE)/1e6, block_timeFROM tokens_solana.transfersWHERE token_mint_address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'AND block_time >= CAST('2026-05-17' AS timestamp)AND from_token_account IN ('4cCFi2gvm5eKtyBUfWDsjHRwTWUti2FVW8nAYh5KuLEU')