LiqLock is the new tool built on top of Puzzle enabling temporary lock of the liquidity tokens. This functionality enables a diverse range of fresh DeFi experience, from memecoins with predicted liquidity to long-term liquidity lock for established projects.
In a nutshell, you can call LiqLock to lock an LP token from Puzzle Swap megapools and set a token’s price target, after which your LP can be unlocked.
Bob launches his own BobCoin, however no one wants to buy it, because they don’t trust Bob. Potential buyers are afraid that Bob will withdraw entire liquidity for BobCoin and run away doing a “rug pull”.
To prove his good intentions, Bob decides to use LiqLock and lock his part of BobCoin liquidity, until it reaches a price of $1000. As a result, potential buyers instantly have their confidence in Bob risen and are more likely to hold BobCoin.
…
To make an experience even more diverse, we added an unlock delegation function, which enables LP locker to enable withdrawal to anyone, who drives a price to the target first. In case of Bob, this means he can state that whoever drives BobCoin price to $1000 can get his LP tokens.
To lock your LP tokens, first choose a pool on Puzzle Swap, provide liquidity to it and unstake LP tokens.
Then, proceed to the LiqLock Waves Dapp page and find the “lockLiquidity” function.
Fill all the arguments, particularly:
poolId - smart contract address
targetPrice - price of asset1 in relation to asset0, use decimals of asset0
unlockDelay - delay in blocks (approximately equal to minutes) after the LP tokens are unlocked
unlockTo - specify the address which receives LP tokens unlock; you can keep it empty to enable anyone to unlock LP tokens
Payments: attach LP tokens to lock
In the image above, there is an example of LP lock for PUZZLE-WAVES pool, which gets unlocked after PUZZLE reaches the price of 3 WAVES per PUZZLE.
After the target price is reached, it’s possible to claim LP tokens by calling “submitAchievement” with lockId as an argument.
Achievement is automatically confirmed by the oracle, if after “delay” amount of blocks, price stays above the target level.
…
By launching LiqLock we put our expectations on the appearance of more liquidity pools on Puzzle Swap and new use cases for it. Moreover, we hope it will get some attention from memecoins creators, since this solution especially targets the issue of memecoin rug pulls.
LiqLock on Github: github.com/puzzlenetwork/puzzleswap-contracts/blob/main/liq-lock.ride
Puzzle chat in Telegram: t.me/puzzle_network