feat: CL superfluid position migration onto the new full range of [10^-30, 10^38] #6322
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
Context
To support the new min spot price, we will migrate only the superfluid positions as per TDD:
https://hackmd.io/FrJNXgqySVyCxorFmNzgAA
Given our current mainnet pools, there will be a 0.01% capital efficiency decrease in the worst case which is to be reviewed by governance.
Development Plan
In the v20 upgrade handler, iterate over CL pools.
For each pool, retrieve all position IDs.
For each position ID, check if the position has a lock ID associated with it.
If yes, retrieve the position from the state, and validate that it is a full range position. Next, force superfluid undelegate, withdraw this position, and create a new one on behalf of the owner at the new spot price range.
In the migrated logic, validate that the SF liquidity for each CL pool is zero between withdrawing the original position and creating a new one.
Testing Strategy
Acceptance Criteria
The text was updated successfully, but these errors were encountered: