Security

How to Lock Liquidity on SunSwap

The trust signal that proves you can’t rug your holders - what LP locking is and how to do it right.

By · Founder & Developer, TronTokenGenerator
Updated

When you add liquidity for your TRC-20 token on SunSwap, you receive LP (liquidity provider) tokens that represent your share of the pool - and the right to withdraw it. Locking those LP tokens means you give up the ability to pull that liquidity for a fixed period. For a new TRON token, that single action is the most powerful trust signal you can give holders: it proves you can’t suddenly drain the pool and leave them with worthless tokens. This guide explains what locking is, why it matters, and how to do it safely.

In short: add liquidity on SunSwap, take the LP tokens you receive, send them to a reputable time-lock contract, and publish the lock link so holders can verify it. New to SunSwap liquidity? Start here.

What is a liquidity lock?

A liquidity pool pairs your token with another asset (usually TRX) so people can trade. Whoever holds the LP tokens for that pool can remove the underlying liquidity at any time. A liquidity lock places those LP tokens in a smart contract that won’t release them until a chosen date - so the liquidity is provably stuck in place until then. It directly addresses the most common rug-pull: a creator adding liquidity, letting buyers in, then yanking the liquidity back out.

Why locking matters

  • It’s the headline trust signal. Experienced TRON buyers check for a liquidity lock before they touch a new token. No lock is an instant red flag.
  • It protects your own credibility. A visible, verifiable lock lets you point sceptics to on-chain proof instead of just asking them to trust you.
  • It pairs with renouncing. A locked pool plus a renounced contract covers the two biggest fears holders have: changing the rules and pulling the funds.

How to lock liquidity, step by step

  1. Add liquidity first. Create your SunSwap pool by pairing your token with TRX. You’ll receive LP tokens in your wallet representing that position. See how to list on SunSwap.
  2. Choose a reputable locker. Use a well-known, audited liquidity-locking service that supports TRON LP tokens. Stick to established tools with a track record - the locker holds your LP tokens, so its trustworthiness matters.
  3. Connect your wallet to the locker with TronLink and select the LP token for your pool.
  4. Set the amount and unlock date. Lock a meaningful share of your LP for a meaningful period. A short lock on a tiny fraction fools no one; longer locks on the bulk of liquidity signal real commitment.
  5. Confirm and save the proof. Approve the transaction, then copy the lock’s public URL or contract address. Publish it in your token’s channels and pin it - the whole point is that anyone can verify it.

How long should you lock for?

There’s no single right answer, but the principle is simple: the lock should outlast the period in which a rug-pull would do the most damage. Many projects lock for months to years. Be transparent about the duration and the percentage locked - a lock of 90% of liquidity for a year reads very differently from 5% for a week.

SignalReads as
Large % of liquidity, long lockSerious, committed project
Small % or very short lockCaution - limited downside protection
No lock at allMajor red flag for buyers
Locking isn’t a substitute for honesty. It stops one specific attack - liquidity removal - but holders still rely on you for transparent supply, fair distribution and straight communication. Treat it as one part of the full security checklist.

Where this fits in your launch

Locking liquidity comes right after you open trading and before you push hard on marketing. The natural order is: create your token → add a SunSwap pool → lock the LP → verify the contract on Tronscan → promote. If you’re launching a community token or memecoin, locking is non-negotiable.

Frequently asked questions

Can I get my liquidity back after locking it?

Only when the lock period ends. That’s the entire point - until the unlock date, neither you nor anyone else can withdraw the locked LP tokens.

Does locking liquidity cost anything?

You pay a small TRON network fee for the lock transaction, and some lockers charge a modest service fee. It’s minor compared to the trust it buys.

Is locking the same as renouncing ownership?

No. Renouncing makes the token contract immutable; locking secures the liquidity pool. They solve different problems, and strong projects often do both. See what renouncing means.

Do I need to lock liquidity if I renounce ownership?

Yes - they’re independent. A renounced contract can still have unlocked liquidity that gets pulled. Lock the liquidity regardless.

Ready to create your TRON token?

No code. Full ownership. Live in minutes.

Create my token

Graham McCann

Founder & Developer, TronTokenGenerator

Graham McCann builds no-code tooling for the TRON blockchain and has deployed TRC-20 contracts for projects ranging from community tokens to memecoins. He writes these guides to demystify token creation for non-developers.