Query editor
-- Metronome Recovery Dashboard: Daily LP Deposits (Section 6)-- On-chain, live. Daily synth amount transferred INTO a registered LP pool (query_8222715)-- by anyone, excluding transfers that are actually a swap leg (Synth Swap Transactions,-- dune.matthomas.result_synth_swap_txs) -- both look identical as a raw "-> pool" transfer-- without this exclusion.WITH deposits_raw AS (SELECT t.block_date AS day, t.chain, p.venue, p.pool, t.synth, t.amount, t.tx_hashFROM dune.matthomas.result_synth_transfers tJOIN query_8222715 p ON p.chain = t.chain AND p.address = t."to"WHERE t."from" != p.address)SELECT d.day, d.chain, d.venue, d.pool, d.synth, SUM(d.amount) AS amountFROM deposits_raw dLEFT JOIN dune.matthomas.result_synth_swap_txs s ON s.chain = d.chain AND s.tx_hash = d.tx_hashWHERE s.tx_hash IS NULLGROUP BY 1, 2, 3, 4, 5ORDER BY 1, 2, 3, 4;