Function: setPositionWidth(int24 _width)
Allows owner to set the position width and readjust the positions.
Inputs
_widthControl: Fully controlled by the owner.
Constraints: No constraints.
Impact: The width of the position will be set to this value.
Branches and code coverage
Intended branches
Remove the current liquidity.
Set the
positionWidthto the new value.Update the ticks.
Add the previous liquidity back to the pool.
Negative behavior
Should not be callable in periods that are not calm, so that
_removeLiquidityand_addLiquidityare not called or slippaged badly.Should not be callable by anyone other than the owner.