Query editor
/* ============================================================================Query 11 — Capital deployed through Revert, net of withdrawals,ACROSS EVERY AERODROME CONCENTRATED-LIQUIDITY POOL ON BASEVisualization: stacked area, x = day, y = deployed_usd, group by pool_group.----------------------------------------------------------------------------The all-pools twin of Query 10. Same method, no pool filter, split into thetwelve Coinbase stock pools versus everything else so the stock pools can beread as a share of Revert's whole Aerodrome footprint.Method, same as Query 10: the position manager emits IncreaseLiquidity with atokenId but no pool, and the pool emits Mint with a tick range but no tokenId.They fire in the same transaction with the same liquidity amount, so joiningon (tx hash, liquidity) links the two. If that transaction was sent to aRevert contract, the position counts for the rest of its life, and every laterincrease and decrease on it counts wherever it was sent from.Both legs are valued from prices.day, unlike Query 4 which values the quoteleg only. unpriced_legs must stay at zero for the total to be trusted.A position counts only while it still holds liquidity, tracked in the pool'sown liquidity units, which are exact integers so a full withdrawal nets toexactly zero. Fixed 2026-09-27: the query used to floor each token at zero onits own, and because a position comes out in a different token mix than itwent in when price moves through its range, a closed position left one tokenpositive and kept counting.KNOWN UNDERCOUNT: attribution is by transaction recipient, and Revert's ownfront end sends a plain two-sided deposit straight to Aerodrome's positionmanager rather than through V3Utils. Only the swap-and-mint (zap) path goesto a Revert contract. Those direct deposits are invisible here; thebuilder-code queries (14 and 15) are the ones that see them.CRITICAL: a position is keyed by (position manager, tokenId), never by tokenIdalone. Dune's aerodrome_base.NonfungiblePositionManager_* tables decode eventsfrom three different manager contracts, one per Slipstream factory generation,and token ids collide between them. Keying on tokenId alone merges unrelatedpositions and put a SOL/USDC pool at 54.8 billion dollars. Hardcoding a singlemanager is also wrong: the twelve stock pools are served by a different managerthan the original Slipstream one, so that filter drops them entirely.========================================================================== */WITH revert_contracts AS (SELECT * FROM (VALUES(0xc3cffd675433f53acc68d31288a4d31c085fe2dd), -- V3Utils, aerodromev3 (current)(0x2309a5ae06e86986a6f27b81a53cc31fc1b55b0a), -- V3Utils, aerodrome (original)(0x93a8f1ffaae10e3e5b67a0f36ab9581bcdc463c7), -- V3Utils, aerodromev2(0xeb6127dcfb1e4107dc1f3111151f779920c213dd), -- AutoRange, Slipstream (move range)(0xc35e20379c3267b5f63e569c25959031ac588203), -- AutoExit v3(0xf4fcbab7d092a0b46438dbbaa21333f7f07137ec), -- LeverageTransformer(0x1ef7c181188687e20a9750714f1b9de6f70f17c0) -- Lend vault, Slipstream) AS t(addr)), stock_pools AS (SELECT * FROM (VALUES(0x853f5f1b92b16714fe6cda67caad0856b83c7ab9),(0xb1987cad1682841b4b641d50e520777ec5ab5542),(0xeaf57753bc382e0324a1d43f72e7027705a2273e),(0xa3b1e3f9747065e2073722ff4c9027d3ea4994f0),(0xd03bc8c7f2faedce2aac81bf0444aea08ea06e9b),(0x7103eb3c9590d1281f7dc03b2a9ee27c39df5d54),(0x5a8236f575471e7bfca2c8462a200c28f737246e),(0x8b27f626ab668197000bc722a1012022caed10e2),(0x469337fdcc5e8f38e2e4b670b04f57865d13a7bb),(0x0bf58fe0fac935ac69595c19b12ba0d75e3f8c0e),(0x25f63549b2bb9fff114cdc39e8cfb16b450e2f9b),(0x20e5fad2661ee9eb0c04824524030af31943b62d),-- second batch, 2026-09-30