> ## 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.

A launch creates one pool with one position in it. The position is single-sided:
all of the supply sits above the opening price, and buys move the price up into
it. Pons mints the position once and never rebalances it.

| | |
| - | - |
| 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 the
price can't go lower. Until someone buys, the quote side of the curve is virtual.
A normal 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. There's little reason to, since the pool fee is zero
> and an outside LP earns nothing. Still, if you need the pool's actual depth, read
> the pool's liquidity instead of assuming the launch position is 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. a never goes below 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.0100502
```

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.