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

# Launching a token on Pons V2 straight from the factory

> Launch a token straight from the Pons V2 LaunchFactory, and how creator fees and holder rewards are paid.

Pons V2 LaunchFactory at `0x7eD598BcEf8bd9Edd8C97A195C6d13f40801EC7e` on Robinhood
Chain, chain ID 4663. The function is `launchToken`. That's the whole integration:
no API key, no account with us, nothing to sign up for.

Launching is open to everyone right now (`launchEnabled` is true). If we ever close
the public gate, `canLaunch(address)` tells you whether a given address may launch.

***

## Step 1: Pick the launch config

`launchToken` takes a `launchConfigId`. There is currently exactly one config, id `0`:

* 1 billion tokens, 18 decimals
* 1% trade fee on the curve
* Graduated pool: 0% LP fee tier, tick spacing 200
* Graduation amount depends on the quote asset: read `pairTokenEconomics(quoteToken)`

Every launch splits its supply the same way, whatever it's quoted in:

| | share of supply | tokens |
| - | - | - |
| Sold on the bonding curve | 71.43% | 714,285,714 |
| Seeded into the Uniswap V4 pool at graduation | 20.41% | 204,081,632 |
| Permanently locked in the launch locker | 8.16% | 81,632,653 |

That last row surprises people: the leftover virtual-reserve tokens go to
`PonsV2LaunchLocker` and never circulate.

***

## Step 2: Pick what it trades against

The `pairToken` argument is what your token trades against. Pass the zero address
for native ETH, or an approved ERC-20: tokenized stocks like AAPL and TSLA, ETFs
like SPY and GLD, cbBTC, TAO, or USDG.

It has to be one the factory has approved. Anything else reverts
`PairTokenNotApproved`.

Three things that trip people up:

**The curve collects your quote asset from the very first buy.** There is no ETH
phase followed by a swap. If you launch against NVDA, buyers spend NVDA on the
curve, and at graduation the factory seeds an NVDA/TOKEN pool with exactly the
NVDA it collected. No router, no oracle, no conversion anywhere in the path.

**Each asset has its own graduation threshold, in its own units.** 4.2 ETH,
8,090 USDG, 41.6 NVDA, 24.2 AAPL, 0.1318 cbBTC. Read it with
`pairTokenEconomics(token)`, which returns `(phantomQuote, graduationThreshold,
decimals)`. We re-peg these by hand as rates move and there is no oracle, so don't
hardcode them. The threshold is measured net of fees, so buyers actually spend
about `threshold / (1 - 0.01 - creatorTax)` gross to get there.

**Decimals vary.** Most are 18, but USDG is 6 and cbBTC is 8.

Whichever you pick, the curve behaves identically: `phantomQuote /
graduationThreshold` is 0.4 for every approved asset and for native, and that ratio
is the only thing that sets the curve's shape.

The endpoint returns 67 entries: native ETH plus the 66 approved assets, each with
`address`, `symbol`, `name`, `decimals`, `asset_class` and `logo`. It matches the
factory's approved set exactly, in both directions.

Still worth calling `approvedPairTokens(address)` before you launch, though. Approvals
are live state: we add assets regularly, the owner can revoke, and a launch against
an unapproved asset reverts with `PairTokenNotApproved` after the user has already
signed.

***

## Step 3: Fill in the token params

One struct, these fields in this order:

1. **name**
2. **symbol**
3. **logo**: a string (see step 4)
4. **description**: a string
5. **socials**: five strings: twitter, telegram, discord, website, farcaster.
   Empty strings are fine.
6. **creatorFeeRecipient** (IMPORTANT): who collects the creator fees. Pass the zero
   address and it defaults to whoever sent the transaction. Get this right at launch:
   afterwards only that recipient can hand it off, and if they lose the key the only
   other route is a protocol override behind a 3-day timelock.
7. **creatorTaxBps**: an extra trade fee the creator charges, on top of the 1% base
   fee. Max is 1000, which is 10%. Zero is fine. See the note at the bottom for what
   this actually charges.
8. **buybackEnabled**: true or false, their call.
9. **expectedEconomics**: a price-lock guard. Pass 32 zero bytes to skip it. To use
   it, call `previewLaunchEconomics(0, pairToken)` first and pass back what it
   returns; if we change any launch term before the transaction lands, it reverts
   instead of launching on different terms.
10. **salt**: any unused 32 bytes. It only has to be unique among that account's own
    launches. It's also how you mine a vanity token address, and
    `PonsV2LaunchDeployer.predictLaunchAddresses` tells you the addresses in advance.

***

## Step 4: The logo

`logo` is just a string on the token contract holding the image URL. Nothing uploads
to Pons and we don't host it for you: pin to IPFS client-side, or use your own CDN.

Our site and indexer read that string straight off the token contract, so whatever
you put there is what everyone sees. Pass an empty string and the token still
launches, it just has no image anywhere.

***

## Step 5: Send it

```text theme={null}
launchToken(params, 0, pairToken)
```

with exactly the launch fee attached, currently **0.0005 ETH**.

Stress *exactly*. The check is `msg.value != launchFee`, so one wei over or under
reverts with `LaunchFeeNotPaid`. Read `launchFee()` rather than hardcoding it: it's
owner-settable, and because the check is exact equality, a change breaks any
integrator who baked in the constant.

This is only the launch fee. The opening buy is a separate transaction against the
curve, and on an **ERC-20-quoted launch the buyer must `approve` the curve first and
send `msg.value` of zero**. Only native launches pass value with the buy.

***

## Step 6: What comes back

Two addresses: the token and the curve. Trading is live on the curve immediately, in
the same transaction. The deployer and the creator fee recipient are exempted from
the snipe tax automatically, so an instant dev buy isn't taxed at the peak.

It appears on Pons on its own: our indexer watches the `TokenLaunched` event. You
don't call us to register it.

***

## Bundling several wallets

Use the four-argument overload:

```text theme={null}
launchToken(params, launchConfigId, pairToken, address[] snipeTaxExemptions)
```

**The list only removes the snipe tax. It does not buy anything.** There are no
amounts and no allocations in it. Every bundle wallet still sends its own buy, for
whatever size it wants, and they race each other and the public on a first-come
first-served curve. Declaring a wallet only means its buy isn't taxed.

* **Cap is 32 addresses.** Longer reverts with `ExemptionListTooLong`.
* The deployer and the creator fee recipient are exempted automatically and do
  **not** count against the 32.
* **The exemption is keyed on the recipient of the buy, not the sender.** If a
  relayer or contract buys on behalf of wallet X, then X must be in the list *and* be
  the `recipient` argument on the curve buy. Getting this backwards is the most
  likely integration bug. It also means one funded wallet can buy repeatedly with
  different recipients, and each one clears untaxed if it's on the list.
* **Launch-time only.** `exemptFromSnipeTax` is `onlyFactory` and the factory only
  calls it inside the launch transaction. A wallet you forget can never be added; the
  only fix is relaunching.

### Getting the dev buy into the launch transaction

`launchToken` cannot fold a buy into itself, so the creator's first buy is a second
transaction against a curve that is already live and public. That gap is real: one
launch on this factory had its whole sellable allocation bought out by 22 addresses
in the two blocks after it opened.

`PonsV2LaunchAndBuy` at `0xe33E9E479dF8802cb0866d5d05258bEc4cF62948` closes it:

```text theme={null}
launchAndBuy(params, launchConfigId, pairToken, quoteIn, minTokensOut,
             recipient, snipeTaxExemptions)
```

It launches and buys in one transaction, so there's no intermediate state to trade
against, and a failed buy reverts the launch with it. Two differences from the
direct path:

* It buys for **one** `recipient` only, with a single `quoteIn`. Other bundle wallets
  still buy themselves afterwards.
* `recipient` is appended to the exemption list automatically, so you may pass at
  most **31** entries here (the factory's cap of 32 counts the appended one).
* Native launch: `msg.value` must be `launchFee + quoteIn`. ERC-20 launch:
  `msg.value` is the launch fee only, and you approve the router for `quoteIn` first.

### What the snipe tax actually costs

Currently 99% in the launch second, decaying to zero across 3 seconds:

| second | tax |
| - | - |
| 0 | 99% |
| 1 | 6.18% |
| 2 | 0.19% |
| 3+ | 0% |

Both figures are snapshotted per launch, so a curve keeps the terms it launched
under.

***

## The reverts to warn people about

| revert | cause |
| - | - |
| `LaunchFeeNotPaid` | `msg.value` is not exactly `launchFee()` |
| `InvalidTokenParams` | empty name or symbol |
| `CreatorTaxTooHigh` | `creatorTaxBps` above `maxCreatorTaxBps` (1000) |
| `PairTokenNotApproved` | quote asset isn't approved; check `approvedPairTokens(address)` |
| `InvalidLaunchConfigId` | `launchConfigId` past the end of the config list |
| `LaunchConfigDisabled` | that config has been turned off |
| `LaunchEconomicsMismatch` | `expectedEconomics` no longer matches the live terms |
| `ExemptionListTooLong` | more than 32 bundle wallets |
| `NotWhitelisted` | the public gate is closed and the caller isn't whitelisted |
| `NotLaunchForwarder` | you called `launchTokenFor`; see below |
| (no named error) | salt reused on otherwise identical terms: the pair already exists at that address |

`launchTokenFor` is in the ABI and looks like the useful one. It isn't for you: it's
restricted to our `PonsV2LaunchAndBuy` router so it can attribute a launch to the
real initiating account.

***

## What `creatorTaxBps` actually is

It is **not** an ERC-20 transfer tax. The token has no transfer hook, and sending it
wallet to wallet costs nothing. It is an extra fee on the **quote leg of a trade**,
charged the same way the base fee is, and paid entirely to the creator, never split
with the protocol.

It applies in both phases of a launch's life:

* **On the curve**, on top of the 1% `curveFeeBps`. Each buy takes
  `spent * creatorTaxBps / 10000` off the quote input before the curve prices it.
* **In the graduated pool**, on top of the 1% hook fee, charged by
  `PonsV2MemeHook` in `afterSwap`. The pool's own Uniswap LP fee tier is 0%, so the
  hook fee and the creator tax are the entire trade cost.

So a launch with `creatorTaxBps = 1000` charges 11% per trade (1% base + 10%
creator), not 1%. The combined base fee and creator tax are capped at 20%
(`MAX_TOTAL_TRADE_FEE_BPS`), which the 10% ceiling on each leg keeps well clear of.

Default is zero, and it is opt-in per launch. How creators actually use it, across
the last 23,049 launches:

| creator tax | launches | share |
| - | - | - |
| none | 7,917 | 34.4% |
| 2% | 7,222 | 31.3% |
| 1% | 3,214 | 13.9% |
| 3% | 1,515 | 6.6% |
| 1.5% | 512 | 2.2% |
| 4% | 454 | 2.0% |
| 10% (the ceiling) | 382 | 1.7% |
| 5% | 359 | 1.6% |

**65.7% of launches set one**, averaging 2.20% among those that do. Worth telling
integrators: if you leave this field at zero because your UI doesn't expose it,
you're shipping a launcher that two thirds of creators would configure differently.

### Where the fee is actually charged

Not on the LP fee tier. The pool is created with `fee: 0` (the factory rejects
anything else with `CoreLpFeeMustBeZero`), so Uniswap charges nothing and liquidity
providers earn nothing from trades.

The take happens in the hook instead. `PonsV2MemeHook` declares `afterSwap` and
`afterSwapReturnDelta`, calls `poolManager.take` for `hookFee + creatorTax`, and
returns that as a positive delta the swapper has to settle. So it is deducted from
the swap, charged to the trader, and routed to the hook's accounting.

One detail that matters if you're building a quote or preview UI: the fee is charged
on the **unspecified** leg of the swap. For an ordinary exact-input swap that means
it comes out of the **output**. A buy is taxed in the memecoin, a sell is taxed in
the quote asset. With a 10% creator tax, an exact-input buyer receives 89% of the
tokens the swap would otherwise return, so a preview that ignores the hook overstates
the fill.

***

## Getting paid: creators claim, holders don't

These two work in opposite directions, and people mix them up constantly.

### Creator fees: pull, and only by the recipient

Fees never transfer to the creator directly. `PonsV2MemeHook._payOut` credits
`PonsV2FeeEscrow` at `0xd3AFEB2a57f70eF218Aa82451c51B2fb0416Ac9e`, and the escrow's
debit path is strictly self-service:

```text theme={null}
_balances[msg.sender] = balance - amount;
payable(msg.sender).call{value: amount}("")
```

`msg.sender` only. There is **no `claimFor`, no operator push, and no owner rescue**.
The creator fee recipient calls `claim()` for a native launch or `claimToken(token)`
for an ERC-20 quote asset, and can read what's waiting with `balanceOf(address)` or
`balanceOfToken(address, token)`.

Two consequences:

* **The recipient must be an address that can call the escrow.** Point it at a
  contract that can't, and the fees are stranded permanently. This has already
  happened to launches on this factory.
* **Fees don't reach the escrow by themselves.** Trades accrue into the hook's
  `pendingFees` / `pendingCreatorTax`, and someone has to sweep before anything is
  claimable. The full path is: trade -> hook accrues -> sweep -> escrow credit ->
  recipient claims. Pre-graduation the same is true of the curve: `sweepFees` pays
  the escrow, and is callable by our sweep operator, or by the launch's deployer when
  no internal conversion is needed.

### Holder rewards: pushed, nothing to click

Only relevant if the creator points their fee recipient at a `PonsFeeDistributor`
(our "fees to holders" option). Then the creator's fees, **including their creator
tax**, go to holders rather than to them.

The distributor's `claim` is deliberately open: callable by anyone on the holder's
behalf, with the payout always going to the holder and never the caller. Our keeper
uses that to push every payout through `claimMany` after publishing each merkle
epoch, so holders normally never claim anything.

* There is a **self-claim fallback**: the holder claim modal reads a wallet's
  unclaimed legs with their merkle proofs, so a holder can pull their own fees on
  their own gas if the push is behind.
* **Epochs expire after 90 days** (`CLAIM_WINDOW`). Unclaimed allocations aren't
  lost to the protocol, they roll back into the unallocated pot and go out in a later
  epoch, but the holder who missed that epoch loses that allocation.
* Weights are the **time integral** of each holder's balance over the window, so an
  address that fully exits before the window closes forfeits its weight. This is the
  usual answer to "why did I get nothing".

Short version: **holders get it airdropped, creators always have to claim.**


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