Uniswap v3 Surprise: NFT and LP Migrator
2021-12-29 00:00:00


Aptera Solar Car, Different Shape and Endless Power
2021-12-25 00:00:00


Shopee Tries Travelling Service
2021-12-24 00:00:00


Streaming Media Stands Strong
2021-11-12 00:00:00



Jack Welch, Well-skilled Leader
2020-01-25 00:00:00


Uniswap v3 Surprise: NFT and LP Migrator

By Jianshi De Huanxiang
2021-12-29



Official Website

The whole article is transferred from a technical site totally in Chinese, Jianshi De Huanxiang. ShoelessCai has not made much interpretation yet, just growing up with readers.

NFT Token

When Uniswap v3 generates an NFT Token, it will generate an exclusive NFT Token based on the position information provided by the LP. The effects are as follows:



Usually, the NFTs save pictures or videos in IPFS or other decentralized storage platforms, and only save one link on the chain. The dynamic effects in these LP NFTs of Uniswap v3 are all svg images dynamically generated on the chain through the contract, that is, a svg vector diagram is dynamically generated in the contract and its code is saved in the NFT token on the chain. These operations will undoubtedly increase the user's gas overhead, but users seem to have no choice. Fortunately, liquidity addition or liquidity removal is generally not a very frequent operation.

This NFT token will produce some different effects with different LP information, such as curve effect, color, text content, etc.

A surprise is also added to the NFT token, which may generate a rare version of NFT with special effects of rotating stars. The random algorithm used can refer to the code. The original author added their rare special effects code to the svg picture above, and the effect is as follows (the rotating star in the lower right corner):


[Source: Jianshi De Huanxiang]

In addition, this SVG image is quite stuck in author’s browser. It still remains a question that whether this phenomenon is a special case. The v3 version is about to be released, and there should be no time to optimize.

Migrator

There is also a new migrator contract in v3. This contract is relatively simple. You can migrate uniswap v2 LPs to v3 LPs with one click, and it can be used to migrate all uniswap v2 compatible AMM LPs. It will most likely be used For sushiswap, allow users migrate from sushiswap to uniswap v3.

>>TOP   >>MAIN PAGE
NEWEST ASIA

Toast by H.E. Xi Jinping President of China at the Welcoming Banquet of the SCO Summit
2025-09-02 13:43:43


China Has Visited Peru President Saluana And Expected the Further Cooperation
2024-11-15 04:29:30


Li Qiang has attended The Opening Ceremony of the 7th China International Import Expo
2024-11-10 23:04:10


How to Make the Most of Dung
2024-04-21 01:38:21


Two New Major, Math and AI in West Lake University
2024-03-26 23:48:17


2024 China GWP: Boost New Productivity “AI+”
2024-03-10 21:06:48


Xi Jinping: Launch Museum Industry
2024-03-10 20:48:47


China: GDP Growth 5%, Employment 12 Million
2024-03-10 20:27:13



Government Work Report: Reduce Carbon and Pollution, Boost Green and Growth
2024-03-10 20:02:52


Government Work Report Starts to Raise Low Altitude Economy
2024-03-10 19:20:26