Today's Top DeFi Protocols & Liquid Staking Content
Deep dive into Uniswap v4 and how hooks let you customize the entire swap lifecycle. Angela Ocando introduces v4 upgrades—singleton architecture, continuous/dynamic fees, ERC-6909 + flash accounting—and explains pre/post-swap hooks. Dayitva Goel outlines concrete hook ideas (from stable-stable execution and TBAP to RWA/KYC pools and rehypothecation). A hands-on demo shows the official v4 Hook Template: writing a simple counter hook, testing with Foundry, forking, deploying a hook, creating tokens, spinning up a pool, adding liquidity, and executing a swap. 00:02 Why v4 now: customize DeFi around the swap 00:33 Hooks = pre/post-swap custom logic (whitelists, loyalty, RWA, LP UX) 01:31 Uniswap Foundation pillars & role 01:56 Protocol recap: LPs ↔ traders; censorship-resistant, self-custody 03:13 What’s new in v4: singleton, dynamic fees, ERC-6909, flash accounting 04:38 Hooks overview: 1 hook per pool; 14 hook functions available 05:02 v3 routing vs v4 singleton + flash accounting (one tx) 06:00 Where hooks run: before/after swap, add/remove liquidity, fees, donate 07:25 Hook lifecycle flags (before/after) & flow 07:48 Hack ideas: large stable-stable, TBAP execution, Pendle-style AMM 09:15 World ID–verified/KYC pools; sybil resistance & UX 10:01 No-loss lottery pools with social yield (Pull-Together-style) 10:20 Smart borrow: rehypothecate out-of-range liquidity 10:38 RWA primary issuance hooks + compliance (ARC-standards) 11:09 L2 sub-$5k ETH-USDC best-price hooks; mid-size trade incentives 12:20 Resources: Hook Directory (Atrium), Hacker Toolkit 13:01 v4 Hook Template intro (GitHub) 13:54 Setup: clone, Foundry update, forge test 14:16 Scripts tour: deploy, create pool, liquidity helpers 14:37 Example hook: counter.sol (before/after swap & liquidity) 15:22 Writing tests: deploy hook, add liquidity, assert counters 16:12 Anvil fork (Uni Sepolia) for local testing 16:43 Deploy the hook (forge script) → get hook address 17:11 Configure base script with hook address 17:57 Create mock tokens & mint balances 18:38 Create pool + add liquidity (multicall actions) 20:09 Execute a swap via router; pool key params in v4 20:26 Wrap-up: template = fastest path to production hooks _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 🇮🇳 *ETHGlobal New Delhi* This workshop is specifically for ETHGlobal New Delhi, a 3-day hackathon held September 19-21 at the India International Convention & Expo Centre, bringing together the most skilled web3 developers, designers and product builders from all around the globe for a weekend-long adventure to advance the Ethereum ecosystem! Watch the full ETHGlobal New Delhi 2025 playlist here: https://www.youtube.com/playlist?list=PLXzKMXK2aHh7zCFW3hBqatZ18rQaYeEJL _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ✅ *Follow Uniswap Foundation* X: https://x.com/UniswapFND ✅ *Follow ETHGlobal* X: https://x.com/ETHGlobal Warpcast: https://warpcast.com/ethglobal Website: https://ethglobal.com YouTube: https://www.youtube.com/c/ETHGlobal _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Are you interested in Ethereum development and entrepreneurship?_ 👉 Sign up for the next ETHGlobal event: https://ethglobal.com/events 🎁 Get exclusive access and perks with ETHGlobal Plus! https://ethglobal.com/plus 📣 Want us to throw an event in your city? Tell us where! https://ethglobal.com/city



