The PulseStrategyModule
provides liquidity management strategies within Automated Market Makers (AMMs). It supports various strategies tailored for different market trends, optimizing liquidity positioning through minimal yet effective rebalancing. Key components include managing penalty calculations and target setting to optimize the interval for liquidity deployment.
InvalidParams()
: Raised when parameters provided to a strategy function are outside expected bounds.InvalidLength()
: Triggered when an input array has an incorrect length, typically related to market data or strategy parameters.Identifies the strategy applied to manage and rebalance liquidity positions:
Original
: This is the classic strategy where the position is actively managed within an interval [tickLower, tickUpper]
. If the market tick moves outside an interval [tickLower + tickNeighborhood, tickUpper - tickNeighborhood]
, a rebalance is triggered to center the position as closely as possible to the current tick, maintaining the same width. This ensures the position remains effectively aligned with the market.LazySyncing
: Supports active position management within the [tickLower, tickUpper]
interval, with rebalancing actions triggered under two scenarios:
current tick
< tickLower
, rebalance to a new position closest to the current tick on the right side, with the same width.current tick
> tickUpper
, rebalance to a new position closest to the current tick on the left side, with the same width.
This strategy aims to realign the position with the market with minimal adjustments.LazyAscending
: Similar to LazySyncing but specifically focuses on ascending market conditions. If the current tick is less than tickLower
, it does not trigger a rebalance. Rebalancing is considered only when the market moves upwards beyond the tickUpper
, aiming to catch upward trends without reacting to downward movements.LazyDescending
: Opposite to LazyAscending, this strategy caters to descending market conditions. If the current tick is greater than tickUpper
, it does not prompt a rebalance. The strategy focuses on rebalancing when the market descends below tickLower
, aiming to manage downward trends without reacting to upward movements.Tamper
: Is a strategy for the stable pair of tokens like WETH/WSTETH, which works on top of the corresponding pool. It holds two crossing positions in this pool, changing them and rebalancing liquidity between them depending on the price in the pool.Defines required parameters for each strategy, including key elements that drive rebalancing decisions: