~/talk

Uniswap v4 Exploring New Possibilities

Talkat ETHGlobal New Delhi 2025 · 2025-09-26..09-28· [blockchain, security]
slides:none on file

Uniswap v4 adds a singleton architecture, continuous/dynamic fees, ERC-6909 and flash accounting, and exposes 14 hook functions with one hook allowed per pool. The talk claims hooks can implement TBAP splitting, RWA primary issuance with KYC, rehypothecation of out‑of‑range liquidity, no‑loss lottery yield and L2 sub‑$5k best‑price routing. The demo uses the v4 Hook Template, Foundry, Anvil fork, deploy/create‑pool/add‑liquidity scripts and counter.sol; scripts return a hook address and successfully create a pool and execute swaps.

AI-written summary · about

  1. 0:00Start
  2. 0:02Why v4 now: customize DeFi around the swap
  3. 0:33Hooks = pre/post-swap custom logic (whitelists, loyalty, RWA, LP UX)
  4. 1:31Uniswap Foundation pillars & role
  5. 1:56Protocol recap: LPs ↔ traders; censorship-resistant, self-custody
  6. 3:13What’s new in v4: singleton, dynamic fees, ERC-6909, flash accounting
  7. 4:38Hooks overview: 1 hook per pool; 14 hook functions available
  8. 5:02v3 routing vs v4 singleton + flash accounting (one tx)
  9. 6:00Where hooks run: before/after swap, add/remove liquidity, fees, donate
  10. 7:25Hook lifecycle flags (before/after) & flow
  11. 7:48Hack ideas: large stable-stable, TBAP execution, Pendle-style AMM
  12. 9:15World ID–verified/KYC pools; sybil resistance & UX
  13. 10:01No-loss lottery pools with social yield (Pull-Together-style)
  14. 10:20Smart borrow: rehypothecate out-of-range liquidity
  15. 10:38RWA primary issuance hooks + compliance (ARC-standards)
  16. 11:09L2 sub-$5k ETH-USDC best-price hooks; mid-size trade incentives
  17. 12:20Resources: Hook Directory (Atrium), Hacker Toolkit
  18. 13:01v4 Hook Template intro (GitHub)
  19. 13:54Setup: clone, Foundry update, forge test
  20. 14:16Scripts tour: deploy, create pool, liquidity helpers
  21. 14:37Example hook: counter.sol (before/after swap & liquidity)
  22. 15:22Writing tests: deploy hook, add liquidity, assert counters
  23. 16:12Anvil fork (Uni Sepolia) for local testing
  24. 16:43Deploy the hook (forge script) → get hook address
  25. 17:11Configure base script with hook address
  26. 17:57Create mock tokens & mint balances
  27. 18:38Create pool + add liquidity (multicall actions)
  28. 20:09Execute a swap via router; pool key params in v4
  29. 20:26Wrap-up: template = fastest path to production hooks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.