Query editor
-- ============================================================================-- Treehouse | tETH by chain -- TVL and holders-- ------------------------------------------------------------------------------ HOW THE ADDITIVITY WORKS. tETH bridges LOCK-AND-RELEASE, so Ethereum's-- totalSupply already contains every tETH circulating on destination chains.-- Naively adding per-chain supplies double counts. Correct construction:---- tETH (Mainnet) = Ethereum totalSupply - balance in the CCIP lock pool-- tETH (Arbitrum) = Arbitrum supply-- tETH (Base) = Base supply-- tETH (Avalanche) = Avalanche supply-- -------------------------------------------------------------------- Sum = Ethereum totalSupply <- reconciles exactly---- Lock pool: 0x8113f001ea456759264317007220cbc939ca8435 (tETHeLockReleaseTokenPool).-- Because the pool's balance is itself part of Ethereum totalSupply, summing-- positive Ethereum balances while excluding the pool yields Mainnet-resident-- supply directly.---- CANONICAL ADDRESSES: destination chains share one deterministic CCIP address,-- 0xd09acb80c1e8f2291862c4978a008791c9167003 (arbitrum, base, avalanche_c).-- Base additionally hosts a dozen impostor tokens also named "Treehouse ETH" ---- always filter on address, never on name or symbol.-- TAC omitted: ~0.007 tETH, and Dune coverage unconfirmed.---- HOLDERS: 0.001 tETH minimum balance, consistent with the rest of the dashboard.-- Mainnet includes wrapper pass-through (Aave V3 Lido, Aave Core, Euler V2,-- Compound V3 collateral, Balancer V3, Pendle PT) since those venues are all-- Ethereum deployments. Destination chains are direct holders only -- no-- material lending or LP venues hold tETH there yet.-- Per-chain holder counts do NOT sum to a protocol total: a wallet holding-- tETH on two chains appears in both rows. The deduped figure is the-- 'ALL CHAINS (deduped)' row.-- ============================================================================WITH px AS (SELECT underlying_per_share AS rate, underlying_price_usd AS eth_usdFROM dune.treehouseprotocol.result_treehouse_tasset_daily_navWHERE tasset = 'tETH' AND chain = 'ethereum' AND nav_usd IS NOT NULLORDER BY day DESCLIMIT 1),lock_pool AS (SELECT 0x8113f001ea456759264317007220cbc939ca8435 AS addr),venues AS (SELECT * FROM (VALUES(0xce8c60fd8390efcc3fc66a3f0bd64beb969e750e),(0x481a2acf3a72ffdc602a9541896ca1db87f86cf7),(0xa28c23a459ff8773eb4dbe0e7250d93f79f1fe2b),(0x9ed5175aecb6653c1bdaa19793c16fd74fbeeb37),(0x7229677ebfd10cd73cb3c66d9263d3c3ef62f30e),(0x0dfc69c976be4d1c0bb29cd13de97151f11d3edc),(0xa17581a9e3356d9a858b789d68b4d866e593ae94),(0x3d0bb1ccab520a66e607822fc55bc921738fafe3)) AS t(addr)),pendle_pt AS (SELECT contract_address AS addr