Query editor
-- Laso Finance - Deposits Base (SGV)-- One row per inbound stablecoin transfer (>= $1) to a Laso receiving address, all chains,-- with each sender classified. Every dashboard panel reads this query.---- Sources-- 1. dune.lasofinance6227.result_laso_deposits_base: Laso's own shared view (query 8295542).-- USDC/USDT/DAI inbound to Laso's published addresses on Ethereum, Base, Arbitrum, Polygon,-- Optimism, BNB Chain, Solana, Stellar; excludes transfers sent from Laso's own addresses.-- SGV re-ran its SQL independently for Sep 2026: exact match on every chain.-- 2. dune.socialgraphventures.result_laso_usdt0_deposits: SGV correction. Source 1 filters-- by token symbol and Dune now labels Tether on Polygon/Arbitrum as USDT0/USD₮0, so all-- Tether deposits on those two chains are missing from source 1.---- Freshness: source 1 is refreshed by Laso (weekly per their dashboard); source 2 is an SGV snapshot-- (re-materialize query 8940516 to extend it). data_through = the last full day covered by BOTH-- sources; everything after it is dropped so periods stay comparable.---- sender_type-- user external wallet, counted in volume and in user / cohort metrics-- cex exchange hot wallet (cex.addresses): counted in volume, NOT in user metrics,-- because one exchange address stands for many unknown customers-- laso_team_wallet, laso_treasury, round_trip, dex_swap: internal flows, excluded everywhere-- unattributed zero-address / empty sender (mints): excluded everywhere (about $8k all-time)WITH laso_view AS (SELECTblock_date,blockchain,CASE WHEN blockchain IN ('solana', 'stellar') THEN sender ELSE '0x' || lower(sender) END AS sender,CASE WHEN blockchain IN ('solana', 'stellar') THEN deposit_address ELSE '0x' || lower(deposit_address) END AS deposit_address,'laso_view' AS src,amount_usdFROM dune.lasofinance6227.result_laso_deposits_base),usdt0_raw AS (SELECT block_date, blockchain, sender, deposit_address, amount_usdFROM dune.socialgraphventures.result_laso_usdt0_deposits),usdt0 AS (-- Guard against double counting if Laso's view ever starts including these rows itself-- (e.g. it fixes its symbol filter): keep only USDT0 transfers with no matching row there.SELECT u.block_date, u.blockchain, u.sender, u.deposit_address, 'sgv_usdt0' AS src, u.amount_usdFROM usdt0_raw uLEFT JOIN laso_view lON l.blockchain = u.blockchainAND l.block_date = u.block_dateAND l.sender = u.senderAND l.deposit_address = u.deposit_addressAND abs(l.amount_usd - u.amount_usd) <= 0.01 * u.amount_usdWHERE l.sender IS NULL),cutoff AS (-- Both sources can end on a partial day (refreshed mid-day): stop one day before the older one.SELECT LEAST((SELECT MAX(block_date) FROM laso_view), (SELECT MAX(block_date) FROM usdt0_raw))- INTERVAL '1' DAY AS data_through),all_deposits AS (