LTC/USD$--LTC Tx Fee-- sat/byteLTC Block#--Hashrate-- TH/s
All tutorials
DEX

How to Use the DEX Swap

Connect to LitVM, approve tokens, execute a swap on Lester Labs' Uniswap V2 router, add liquidity, and track your LP positions from the pool page.

6 min readTutorial

What you need before swapping

The Lester Labs DEX runs on LitVM testnet and uses zkLTC as the native gas asset. Before you trade, make sure your wallet is connected to LitVM, you hold a little zkLTC for gas, and the token you want to swap is already deployed on LitVM. The swap page uses Lester Labs' own Uniswap V2 router and factory. Quotes come directly from the on-chain router, and the fee split is fixed at the pair level: 0.20% to the Lester Labs treasury and 0.10% retained by liquidity providers.

Five-step swap flow

1

Connect your wallet to LitVM

Open lester-labs.com/swap and connect your wallet. If LitVM is not already configured, add it with Chain ID 4441, RPC https://liteforge.rpc.caldera.xyz/infra-partner-http, native currency zkLTC, and explorer https://liteforge.caldera.xyz.

2

Approve tokens for trading

If your input asset is an ERC-20 token rather than native zkLTC, the swap page will prompt you to approve the Lester Labs router first. This is a standard one-time allowance transaction that lets the router move only that token on your behalf.

3

Make the swap

Choose your input token, output token, and amount. The interface fetches a live quote via `getAmountsOut`, shows your expected output, and applies the displayed slippage tolerance before building the transaction. Review the fee line carefully: every trade pays 0.30% total.

4

Add liquidity to a pool

At launch, liquidity is typically seeded either through Lester Labs Launchpad finalization or through direct router interactions by integrators. In both cases the liquidity lands on the same Lester Labs Uniswap V2 deployment, and the resulting LP balance becomes visible on `/pool` once the position is live.

5

View your positions

Visit lester-labs.com/pool to scan your connected wallet for LP balances. The pool page shows your LP token balance, your percentage share of each pool, and the underlying token exposure represented by that position.

The router handles native zkLTC through a wrapped zkLTC contract under the hood. In the UI you continue to think in native zkLTC, but under the hood the DEX can still support standard Uniswap V2 pair mechanics.

Fee breakdown and treasury routing

The Lester Labs V2 fork is configured so every live pair routes protocol fees to the Lester Labs treasury. The factory sets both `feeTo` and `feeToSetter` to that treasury, and the pair contract transfers 0.20% of each swap input directly to the treasury while leaving 0.10% inside the pool for LP earnings.

Continue reading

Setup

Setting up your LitVM wallet in 5 minutes

5 min read

Launchpad

Launchpad — how to run a permissionless presale

8 min read

Locker

Liquidity Locker — protecting your LP tokens

5 min read