Function: setPositionWidth(int24 _width)
Allows owner to set the position width and readjust the positions.
Inputs
_width
Control: 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
positionWidth
to 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
_removeLiquidity
and_addLiquidity
are not called or slippaged badly.Should not be callable by anyone other than the owner.