Uniswap / docs

📓 Uniswap V3 docs website
https://docs.uniswap.org
317 stars 526 forks source link

Add NoOp hooks guide with mdx formatting #756

Closed krisoshea-eth closed 1 month ago

krisoshea-eth commented 1 month ago

This PR introduces a detailed guide on NoOp Hooks in Uniswap V4.

Key Features of the Document:

  1. Introduction to NoOp hooks and their significance in Uniswap V4
  2. Explanation of emergent use-cases enabled by NoOp hooks:
    • Asynchronous swaps and swap-ordering
    • Custom Curves implementation
  3. Detailed guide on how to configure a NoOp Hook, including required permissions
  4. In-depth explanation of the beforeSwap function implementation for NoOp hooks
  5. Step-by-step breakdown of fund movements during a NoOp swap
  6. Code snippets for:
    • NoOp Hook configuration
    • beforeSwap function implementation
    • Testing NoOp Hook behavior
  7. Important note on the potential risks associated with NoOp hooks

Document Structure:

Impact and Importance:

This document gives detailed insights into NoOp hooks, which enable powerful customizations of the core swap logic.

vercel[bot] commented 1 month ago

@krisoshea-eth is attempting to deploy a commit to the Uniswap Team on Vercel.

A member of the Team first needs to authorize it.