> ## Documentation Index
> Fetch the complete documentation index at: https://pons-labs-llc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Pool and liquidity

> How a v3 pool is set up, why the opening price is a floor, and how much it costs to move the price.

Each launch creates a Uniswap v4 pool with a single liquidity position containing the entire token supply. Pons creates the position once at launch and never rebalances. The position initially holds only the launched token, with a price range starting at the opening price and extending upward. As traders buy, the price rises through that range, and tokens in the position are exchanged for the quote asset.

| | |
| - | - |
| Supply | 1,000,000,000 tokens, 18 decimals. |
| Pool fee and tick spacing | The pool fee is fixed at zero and tick spacing is 200. Trading fees are charged by the hook, not the pool. |
| Opening price | Tick -202,000, which is 1.689e-9 quote base units per token base unit, or a fully diluted value of 1.689 ETH at launch. The protocol sets it per launch config, and per quote asset for ERC-20 launches. |
| Position range | From the opening tick to the furthest usable tick, ±887,200. Because one end of the range is the opening price, the position only holds the token. |
| Position owner | The locker, permanently. The locker has no withdraw function and can't make arbitrary calls, so nobody can remove the liquidity, Pons included. |

## The opening price is a floor

There is no liquidity below the opening tick. When people sell, they sell into
the quote that buyers put in. Once the price is back at the opening tick, the
position holds only tokens again and there's no quote left to sell into, so no
sale can fill below the opening price. The pool's current price can still read
lower: a swap can move it through the empty range below without trading anything,
and liquidity someone else adds below the opening price can trade there. Use the
opening price as the floor, not the pool's current price. Until someone buys, the quote side of the curve is virtual.
A two-sided pool with the same reserves could drop below the opening
price because the quote would actually be in the pool.

## Tick direction

The opening tick is always the token's price in the quote asset, as if the token
were currency0. The pool's own tick depends on how the two addresses sort. Native
ETH is the zero address, so it always sorts first and the token is currency1. In
that case the pool tick is tokens per ETH: it opens at +202,000 and goes down as
people buy. If the token's address sorts below the quote asset's, it's the other
way around. Read `memecoinIsCurrency0` from the launch record and adjust for it
before doing any price math.

> [!NOTE]
>
> The hook doesn't implement `beforeAddLiquidity`, so anyone can add their own
> position to a launch's pool. Since the pool's LP fee is zero, external liquidity providers do not earn standard trading fees.
>
> When assessing pool liquidity depth, read the pool's current liquidity rather than assuming the original launch position accounts for all of it.

## Price and depth

A single position with constant liquidity from the opening price to the edge of
the range behaves like a constant product pool. A v3 pool is an `x·y=k` curve
whose virtual reserves are the full supply against the opening market cap. Its
liquidity never changes because the pool fee is zero and the hook keeps its fees
separately, so nothing is added to the position.

**Liquidity:** `L = supply × sqrt(opening price)`

```ts Depth at any tick theme={null}
// Read once per launch from getLaunchConfig(id), or from
// pairTokenEconomics(pairToken) for an ERC-20 quote.
const S = 10n ** 27n;   // supply in base units: 1e9 tokens, 18 decimals
const t0 = -202_000;    // the memecoin's price tick, as if it were currency0

const sqrtP = (tick) => 1.0001 ** (tick / 2);
const L = Number(S) * sqrtP(t0);   // 4.110e22, fixed for the life of the token

// The pool's tick is the memecoin's price tick only when the memecoin is
// currency0. On a native launch it is the mirror.
const priceTick = (poolTick, memecoinIsCurrency0) =>
  memecoinIsCurrency0 ? poolTick : -poolTick;

// Between two price ticks, a < b, pre-fee. The launch position holds nothing
// below t0, so keep a at or above t0.
// Both return base units, not whole units: divide by 1e18 for a quote with
// 18 decimals, or by 10 ** decimals for an ERC-20 quote. The table below is
// in whole ETH, so quoteIn(t0, t) / 1e18 is the figure to compare against.
const quoteIn = (a, b) => L * (sqrtP(b) - sqrtP(a));
const tokensOut = (a, b) => L * (1 / sqrtP(a) - 1 / sqrtP(b));
```

```text What it costs to move the price theme={null}
Deploy config, native launch. The pool tick opens at +202,000
and buys walk it down. m is the price multiple from open.

  m       pool tick   ETH in (cumulative)   tokens out   next 200-tick bin
  open      202,000                     0            0              0.0170
  2x        195,068                 0.700       292.9M              0.0240
  5x        185,905                 2.088       552.8M              0.0380
  10x       178,973                 3.653       683.8M              0.0537
  100x      155,946                15.203       900.0M              0.1698

Relative, carrying no constants, with FDV0 = S × 1.0001^t0:

  quote in to reach m   = FDV0 × (sqrt(m) - 1)
  tokens out at m       = S × (1 - 1 / sqrt(m))
  one 200-tick bin      = FDV0 × sqrt(m) × 0.0100497
```

The far end of the range adds about 1e-24 in relative terms, so a single `L` term
is exact for practical purposes. All figures above are before fees and only cover
the launch position. See [quoting a trade](https://pons-labs-llc.mintlify.site/v3/trading.md) for how fees apply.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.