Query editor
WITH large_moves AS (SELECTblock_time, blockchain, project, symbol,depositor AS wallet,amount_usd,transaction_type,tx_hashFROM lending.supplyWHERE blockchain IN ('ethereum', 'arbitrum', 'base')AND amount_usd > 5000000AND block_time >= NOW() - INTERVAL '14' DAYAND transaction_type IN ('deposit', 'withdraw')UNION ALLSELECTblock_time, blockchain, project, symbol,borrower AS wallet,amount_usd,transaction_type,tx_hashFROM lending.borrowWHERE blockchain IN ('ethereum', 'arbitrum', 'base')AND amount_usd > 5000000AND block_time >= NOW() - INTERVAL '14' DAYAND transaction_type IN ('borrow', 'repay'))SELECTblock_time,blockchain,project,symbol,"left"(CAST(wallet AS varchar), 10) || '...' AS wallet_prefix,ROUND(amount_usd / 1e6, 2) AS amount_m,transaction_type,tx_hash,CASEWHEN transaction_type IN ('withdraw', 'repay') AND amount_usd > 20000000THEN 'LARGE EXIT - REVIEW'WHEN transaction_type IN ('withdraw', 'repay')THEN 'EXIT'WHEN transaction_type IN ('deposit', 'borrow') AND amount_usd > 20000000THEN 'LARGE ENTRY'ELSE 'ENTRY'END AS signalFROM large_movesORDER BY block_time DESC, amount_usd DESCLIMIT 200