Skip to content

User Experience Hooks

No due date 0% complete

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 developer…

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).

Loading