Query editor
-- kpk Distribution Channels | 11 By Integrator (inflow / outflow / net)-- inflow/outflow are marked AT TRADE TIME (abs_usd): how much a channel routed, in the-- money of the day. net is marked at the CURRENT price (signed_usd_now): how much of it is-- still there. Mixing the two marks is deliberate, see the header of query 7748511. Using-- the at-trade mark for net made Yo Protocol read +$2.20M while fully exited in ETH terms.---- Scoped to channel_class = 'Third-party integrator'. 7748511 also emits Morpho app,-- kpk internal and Direct / treasury flow so the breakdown can reconcile toward TVL; those-- buckets are an order of magnitude larger and would flatten this chart. Query 8310586-- shows the class split, 8315374 the protocol split, 8310595 the per-entity detail.SELECTintegrator,CASE tier WHEN 'dedicated' THEN 'Major (own section)' ELSE 'Other (grouped)' END AS section,SUM(CASE WHEN flow_type='deposit' THEN abs_usd ELSE 0 END) AS inflow_usd,SUM(CASE WHEN flow_type='withdraw' THEN abs_usd ELSE 0 END) AS outflow_usd,SUM(signed_usd_now) AS net_usd,COUNT(*) AS flow_events,MAX(block_time) AS last_activityFROM query_7748511WHERE channel_class = 'Third-party integrator'GROUP BY 1,2ORDER BY net_usd DESC