Query editor
-- ============================================================================-- Treehouse | tAsset Holders & Channels-- ------------------------------------------------------------------------------ CHAIN-COMPLETE: tETH counted across Ethereum, Arbitrum, Base, Avalanche.-- Destination chains share one deterministic CCIP address,-- 0xd09acb80c1e8f2291862c4978a008791c9167003. Base also hosts a dozen impostor-- tokens named "Treehouse ETH" -- always filter on address, never name/symbol.-- TAC omitted (~0.007 tETH). An earlier Ethereum-only version understated the-- protocol holder count by ~26%.-- Balances are SUMMED PER WALLET ACROSS CHAINS before the dust floor, so a-- wallet split 0.0006/0.0006 across two chains correctly clears 0.001.-- This does NOT double count TVL -- TVL additivity is handled separately in the-- NAV base layer. For holders we deliberately want the cross-chain union.---- VENUE PASS-THROUGH resolves through wrappers so suppliers/LPs count as real-- wallets rather than the venue counting as one whale.-- ETHEREUM (tETH):-- Aave aToken / Euler EVault -- the contract holding tETH IS the ERC-20-- receipt, so receipt holders == suppliers. Clean 1:1.-- Compound V3 -- tETH is COLLATERAL, not the base asset; cWETHv3 holders are-- WETH suppliers, not tETH depositors. Resolved from raw logs since-- Compound's collateral events have no decoded table:-- SupplyCollateral 0xfa56f7b24f17183d81894d3ac2ee654e3c26388d17a28dbd9549b8114304e1f4-- WithdrawCollateral 0xd6d480d5b3068db003533b170d67561494d72e3bf9fa40a266471351ebba9e16-- Balancer V3 -- pools are ERC-20, so pool holders are the LPs.-- Pendle -- PT/YT, expiry-aware (below).-- HYPEREVM (tHYPE):-- Balancer V3 tHYPE-HyperLend kHYPE 0xa120f5789f914766cb4b44b83b545925b443f642-- (tHYPE paired with stathHyperEvmkHYPEv2 -- the boosted pool)-- Balancer V3 AutoRange TREE-tHYPE 0xe0230147ebf010b40869e27c8fab6d38a6647472-- CAVEAT: this pool is TREE + tHYPE, so its LPs hold only partial tHYPE-- exposure. Counting them as tHYPE LP users is correct -- they do hold-- tHYPE -- but do not read the pool's full TVL as tHYPE TVL.-- NOT the same as 0x01ff1489a4d5e9c365037fd53d6a1211c167740b, a failed-- 22-Jul-2026 AutoRange deployment holding ~1e-12 dust (Balancer V3 buffer-- initialisation never completed). Redeployed as 0xe0230147 on 23 Jul.-- Excluded deliberately -- do not add it back.---- DUST FLOOR: 0.001 shares. Defined in shares not dollars, so it bites unevenly-- -- 0.001 tETH is ~$2.36 while 0.001 tAVAX is under a cent. Unfiltered-- any-balance counts are reported alongside for explorer reconciliation-- (Etherscan counts any balance >= 1 wei).---- *** PENDLE EXPIRY -- READ BEFORE CHANGING ***-- Every tETH Pendle market has matured (29MAY2025, 25SEP2025, 18DEC2025,-- 8JAN2026). Post-maturity YT is worthless, yet thousands of wallets still hold-- YT-tETH-29MAY2025 against only ~201 tETH in the Pendle SY. Expired YT is-- EXCLUDED from headline counts; expired PT is retained but flagged, since PT-- still redeems 1:1 post-maturity.-- Symbol filter anchored to 'pt-teth'/'yt-teth' prefixes -- a naive '%teth%'-- LIKE matches "Tether" and returns 7,000+ junk tokens. Do not loosen.---- EXCLUDED as non-users: zero address, CCIP lock-release pool, venue contracts,-- Balancer V3 vaults.-- ============================================================================WITH not_users AS (SELECT * FROM (VALUES(0x0000000000000000000000000000000000000000),(0x8113f001ea456759264317007220cbc939ca8435), -- tETH CCIP lock pool