Skip to content

Milestones

List view

  • The goal of this milestone is to provide hooks that improve the user experience of users and developers. To improve user experience, this milestone will provide expanded order types and a TWAMM hook to efficiently handle large orders. On the other hand, to improve the developer experience, this milestone includes a wizard-type interface to allow developers to combine all hooks developed throughout the milestones, and quickly get started with Hardhat and Foundry templates. Time estimation for this milestone is 4 months (excluding audit time). Order Types: LimitOrderHook: Hook that allows users to place orders to buy or sell with a restriction on the maximum price to be paid or the minimum price to be received. StopLossOrderHook: Hook that allows users to place orders that are automatically executed once the pool reaches a certain price. TWAMM: Hook that implements a time-weighted average market maker, based on https://www.paradigm.xyz/2021/07/twamm. Uniswap Hook Wizard: A wizard-type interface to allow developers to easily combine hooks from previous milestones with support for Hardhat and Foundry (the latter would include already-configured tests).

    No due date
    0/3 issues closed
  • Milestone 2: Accounting Improvement Hooks The goal of this milestone is to provide implementation hooks, using the base hooks from the previous milestone, that minimize tradeoffs/limitations of traditional AMMs. Developers will be able to build on top of these hooks, or combine multiple hooks together. Time estimation for this milestone is 4 months (excluding audit time). AntiJITHook: Hook to limit just-in-time liquidity in order to benefit LPs that provide liquidity for a longer period of time. AntiSandwichHook: Hook that limits atomic sandwich attacks, based on https://www.umbraresearch.xyz/writings/sandwich-resistant-amm MinLVRHook: Hook that minimizes loss versus rebalancing, based on https://arxiv.org/pdf/2210.10601. AsyncUseHook: Hook that allows LPs to re-use their liquidity outside the pool when it’s not being used as part of liquidity provision. This encapsulates a superset for hooks like delegated liquidity.

    No due date
    0/4 issues closed
  • BaseCustomAccounting: Base contract for custom token accounting, automatically applied to swap and LP-related functions – especially useful for custom curves. BaseHookFee: Hook that applies a defined fee as part of the accounting logic. BaseNoOp: Hook that overrides the v4 core logic, allowing developers to combine this with custom accounting. BaseCustomCurve: Hook that implements the base infrastructure to set up custom curves as part of the accounting logic, allowing developers to implement other curves asides from x * y = k.

    No due date
  • Goal is to develop a set of abstract hooks that lay the foundation for developers to easily create hooks that need modified accounting, for use cases like custom curves, dynamic fees, impermanent loss hedging, and LVR minimization.

    No due date
    6/6 issues closed