Migrate Superfluid Supercharged positions to a Wider Range
Voting period
Vote distribution
Details
Description
This proposal approves migrating Superfluid positions in Supercharged pools to a wider full range in a future software upgrade. \n\nImpacted liquidity positions would be adjusted from a minimum spot price of 10^-12 to 10^-30, keeping the number of Supercharged pool types to maintain at one but slightly reducing capital efficiency. \n## Background \nSupercharged Liquidity pools have been live on Osmosis since the V16 upgrade. \n\nMost quote assets have a six decimal accuracy (exponent), as this is typical with tokens minted on Cosmos chains. EVM tokens typically have a decimal accuracy of eighteen. \n\nThis means that the minimum price of the smallest unit of an EVM token is equal to 10^-12 of the quote asset, effectively scaling the asset's spot price down by 10^12. \n\nThe initial implementation of Supercharged pools only supported a minimum spot price of 10^-12 in order to accelerate the launch process. This made any use of pairings with the possibility of the price decreasing under a 1:1 ratio, e.g.MATIC/USDT with a current 0.55:1 ratio, impossible until the technical issues behind storing more extreme comparative spot prices were resolved. \n## Implemented Solution \nThe minimum spot price has been able to be reduced. However, this now changes what full range refers to in a Supercharged pool from having a lower bound of 10^-12 to having a lower bound of 10^-30. \n\nThis adjustment in the minimum spot price has introduced two potential approaches: \n* Maintaining two versions of liquidity pools, each with a different minimum spot price (10^-12 for pre-upgrade and 10^-30 for post-upgrade). \n* Implementing an upgrade handler migration of full range positions from the 10^-12 minimum spot price range to the 10^-30 range. \n## Maintenance or Migration \nMaintaining two versions of Supercharged pools will cause an increase in difficulty in future developments. \n* All work on the Osmosis chain code must be duplicated for the two minimum spot prices. \n* All integrations will also have to differentiate which pool type each asset uses, slowing the development of all frontends. \n\nThere are also direct performance losses by calculations having to iterate over two pool types, which may not be directly compared. \n\nThe main impact of migration is that these positions will now occupy a wider range than before. As with Supercharged pools allowing liquidity to be concentrated to increase capital efficiency, this reduction in the concentration of a full range position brings with it a reduction in the capital efficiency of full range positions. \n\nThe worst-case impact of this is calculated to be a 0.01 percent reduction in capital efficiency in the current lowest spot price pool and so can be considered to be negligible. For most pools the impact would be orders of magnitude smaller as they have a higher spot price. \n\nThe migration also carries a risk by directly impacting the chain state and user positions. However, it is the better option for development sustainability. This risk must be mitigated as much as possible. \n## Migration Risk Mitigation \nThe migration is proposed to be carried out only on Superfluid positions as only these are required to be full range. \n\nThe previous “full range” pools that are not Superfluid can continue to exist on the previously established range within the new range as a custom position. \n\nOnly Superfluid positions will then be affected by this migration, reducing the number of users and the amount of liquidity affected by the upgrade handler changes and so reducing overall risk. \n\nThe risk to the impacted positions will be minimized through thorough testing on a copy of mainnet state before the upgrade is performed. Most of the code changes necessary for this refactor have been made state-compatible with the original notion of the full range. As a result, they can be backported to the current mainnet binary and be tested more fully against a real node. \n\nForum Thread: https://forum.osmosis.zone/t/migrate-superfluid-supercharged-positions-to-a-wider-range/327
Votes