Build

Trade and collect

Swapping against a launch's pool, and paying out its fees.

Swap

Pools are plain Uniswap v4, so any v4 integration can trade them. The pool key is:

Pool keysolidity
currency0 = quote            // the token always sorts above it
currency1 = token
fee       = LP_FEE           // fixed in the contract
tickSpacing = 200
hooks     = address(0)

A buy sends the quote in and moves the tick down. The site trades through the Universal Router with a Permit2 approval for ERC-20 quotes.

Collect fees

collect(tokenId) on the locker pays out the accrued fees to the creator and the foundation. Anyone may call it. The token id comes from the Launched event or from infoOf(token). A payout that fails is credited and can be pulled later with claim(currency).

Have the site pick up your transaction

After a transaction you sent, ask for immediate indexing. Background polling normally runs about every 15 seconds.

Synchttp
POST /api/launch/sync?chain=robinhood&tx=0x...