OKX Build X · Hook the Future · Uniswap v4 on X Layer

A token launches as a Uniswap v4 pool.

Liftoff is a single v4 hook that governs a token's whole life — anti-snipe at launch, locked liquidity, automatic graduation, and a post-launch anti-dump covenant. No separate bonding curve. No migration.

Official Uniswap v4 PoolManager X Layer mainnet · chain 196 27/27 tests · live fork-tested

One hook. The whole lifecycle.

01

Anti-snipe

A launch fee starts high and decays over the opening window (v4 dynamic fees), plus per-tx and per-wallet buy caps. Snipers pay; real buyers don't.

02

Rug protection

Liquidity removal is locked until a configurable timestamp, enforced in beforeRemoveLiquidity. No quiet LP pull.

03

Graduation

Once cumulative volume or the launch window is reached, the pool auto-flips to its baseline fee — no operator, no migration step.

04

Anti-dump · "fair life"

After graduation, sells are capped per tx, per wallet, and as a % of reserves — a covenant a plain ERC-20 can't enforce.

The launch, start to finish

Exactly what runs on-chain — and what's proven in the LiftoffDemo test.

  1. 80% launch fee at block one — the anti-snipe tax is at its peak.
  2. Blocked a sniper tries a 5e18 buy over the 1e18 cap — reverted.
  3. the fee decays with time toward the baseline as the window elapses.
  4. Graduated cumulative volume crosses the threshold — the pool flips to its baseline fee.
  5. Blocked a whale dump (5e18 over the 5e17 sell cap) is rejected post-graduation.
  6. OK a normal-sized sell goes through. Fair to buy, safe to hold, hard to dump.

Live from X Layer mainnet

Read straight from the deployed LIFT demo pool — no wallet, no backend. The deploy ran the full lifecycle on-chain, so this is real state from the official Uniswap v4 PoolManager.

Pool status
Current buy fee
Cumulative volume
Launched

Querying states() and currentBuyFee() on the hook…

Why it matters

Launchpads on X Layer today run a bonding-curve contract in front of an AMM, then migrate the token into a frozen pool — two systems, a migration risk, and no anti-snipe. Liftoff collapses all of that into one hook on one v4 pool. It's a primitive a launchpad like flap.sh can adopt directly — growing v4 pools, liquidity, real users, and OKB gas on X Layer.

Deployed on X Layer mainnet

Chain 196, against the official Uniswap v4 PoolManager. Bytecode-verified on-chain.