SolstackDocs

Tools

LP Token Locker

Lock LP tokens in a program-owned vault until a public unlock date, so anyone can verify the liquidity can't be withdrawn before then. Currently available on devnet only.

Open LP Token Locker ↗Solana LP Token Locker overview

Step by step

  1. Step 1Connect walletDevnet only for now.
  2. Step 2Pick the LP tokenAny standard SPL token with a balance in your wallet, usually the LP token you received for adding liquidity.
  3. Step 3Amount and unlock dateMax fills your whole balance. The date can be moved later, but not earlier.
  4. Step 4Review and signOne transaction moves the tokens into a vault only the program controls and records the date.
  5. Step 5LockedThe lock is listed under Your locks, and in the LP Lock Verifier for anyone to check.

Why lock LP

When you add liquidity to a pool, the pool gives you LP tokens that can redeem it. While they sit in your wallet you can withdraw the liquidity at any time, which is how a rug pull works. Locking them in a program's vault until a public date proves that you can't withdraw before then. Scanners such as the Token Inspector check who holds a pool's LP tokens before they score a token.

Lock or burn?

Burning LP tokens means the liquidity can never be withdrawn by anyone. Locking lets you withdraw it after the unlock date. Lock if you may want the liquidity back later, for example to migrate, rebalance or wind down; burn if you never will.

Managing a lock

Push outMoves the unlock date later. It can't be moved earlier.
WithdrawAfter the unlock date, returns the whole locked amount to your wallet. The lock closes and its rent comes back.

Only the wallet that created a lock can extend or withdraw it. You can hold several locks on the same LP token, each with its own date.

Which tokens work

Any standard SPL token, including Raydium and Orca LP tokens. Token-2022 mints aren't supported yet. To lock tokens for someone else, or release them gradually, use the Token Locker.

What you sign

Creating a lock: one transaction that creates the lock and its vault, moves the tokens in and pays the 0.02 SOL Solstack fee. Pushing out and withdrawing: one transaction each, with no Solstack fee.

What it costs

0.02 SOL to create a lock, plus the network fee and the rent for the lock and its vault, which is refunded when you withdraw. Pushing out and withdrawing are free.

The LP Locker program is unaudited and deployed on devnet only. Don't rely on it for mainnet liquidity yet.

Troubleshooting

"No SPL tokens with a balance found"The wallet holds no standard SPL tokens on devnet. Token-2022 balances aren't listed.
"Unlock date must be in the future"Pick a date and time after now.
Withdraw is greyed outThe unlock date hasn't passed yet.
A yellow devnet-only warningSwitch the top-bar toggle to Devnet.

FAQ

What does it cost?

A 0.02 SOL Solstack fee plus rent and the network fee. Extending and withdrawing are free.

Is it audited?

No. Devnet only.

Who can withdraw?

The creator, after the unlock date.

Can I shorten a lock?

No. Only extend.

What about the rent?

Refunded on withdrawal.

Guides

NextLP Lock Verifier →
Your keys stay in your wallet · every job starts with your approval · fees shown before you sign← Back to solstack.xyz