Query editor
-- Metronome Recovery Dashboard: Daily LP Withdrawals (Section 6)-- On-chain, live. Daily synth amount transferred OUT of a registered LP pool (query_8222715)-- to 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 withdrawals_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."from"WHERE t."to" != p.address)SELECT w.day, w.chain, w.venue, w.pool, w.synth, SUM(w.amount) AS amountFROM withdrawals_raw wLEFT JOIN dune.matthomas.result_synth_swap_txs s ON s.chain = w.chain AND s.tx_hash = w.tx_hashWHERE s.tx_hash IS NULLGROUP BY 1, 2, 3, 4, 5ORDER BY 1, 2, 3, 4;