# Documentation How Faze works and how to build on it. ## Faze Terminal ### The terminal Faze is a trading terminal for tokens launched on its own bonding curve, on Arc. Charts, the live tape, holders, portfolio and order entry sit on one screen, fed by an indexer that reads the chain directly - and every trade you place is signed by your own wallet in your own browser. The platform never holds your keys or your funds. The terminal is the whole surface: it opens at /world/terminal and reading it needs no account at all. Market data - the coin board, charts, the tape, holders, a wallet's portfolio - is public and anonymous. You connect a wallet only when you want to trade or launch. - **Non-custodial, end to end.** Quotes and transactions are built in your browser against the chain's public RPC; your wallet signs and broadcasts them. There is no deposit, no platform balance, and no withdrawal. - **Every number traces to the chain.** Prices, volume, holders and PnL are derived from indexed on-chain events, not from an internal ledger - so anything the terminal shows you can be recomputed from the contracts (see Integration). - **Live, not polled into looking live.** Trades, metrics and graduations arrive over a socket as they are indexed. Nothing is ever shown optimistically - a fill appears when the chain says it happened. ### Charts and market data Each coin carries an OHLCV chart on 1m / 1h / 4h / 1d candles, with your own fills marked on it. Candles are projected from indexed trades and recomputed on write, so a late-arriving block corrects the bucket rather than leaving a hole. A coin's history spans both venues: bars from the bonding curve and bars from its Uniswap v4 pool after graduation are the same series, because the price is the same asset's price either way. Alongside the chart: the **trade tape** (every fill, buyer and seller), the **holder list** with each wallet's share and the venue rows (curve, pool, burn address) broken out separately, per-wallet **trader totals** for the coin, and rollups over 5m / 1h / 6h / 24h windows with buy and sell split out rather than netted. > **Two numbers that are routinely misread** > > `FDV` is price times total supply - on a coin still filling its curve most of that supply has never been bought, so it is a valuation of the curve's current marginal price, not money that went in. And `curve progress` is `ethReserve / bondingTarget`: how full the raise is, which is not the same as how far the price has travelled. Concentration is shown because it is the cheapest tell available: the top-10 holder share, whether the creator has sold, and how much the creator still holds. None of it is advice - it is the same public state you would compute yourself from the holder table. ### Placing a trade Buy and sell are one widget. You enter an amount - USDC to spend on a buy, tokens (or a percentage of your balance) to sell - and the widget quotes it against the venue the coin is actually on: the curve's own `quoteBuyFor` / `quoteSell` view while it is bonding, and `V4Quoter` against its Uniswap v4 pool once it has graduated. Both quotes come from the contracts, price impact and fees already included. - **Slippage is yours to set** and it is a hard bound, not a hint: the transaction carries `minTokensOut` (buy) or `minEthOut` (sell) and reverts rather than filling worse. Too tight on a fast-moving coin is a failed transaction; too loose is a worse fill. It persists per browser. - **Presets** are editable slots - buy presets are USDC amounts, sell presets are percentages of the position. They fill the field; they never submit on their own. - **A buy is one transaction.** A sell of a graduated coin pulls its token input through `Permit2`, so a wallet's FIRST sell of that coin can carry up to two approvals ahead of the swap, and none after that. > **What the terminal will not do** > > There are no limit orders, no stops, and no margin - every trade is a spot swap you sign. The terminal never fronts a fill: your position updates when the indexer sees the transaction confirmed, which is why a fill can land a moment after your wallet says "success". ### Finding coins The coin board runs three lanes side by side - **new** launches, coins **bonding** on the curve, and **graduated** coins trading in their pools - so a coin's stage is a position on screen rather than a badge you have to read. Each lane sorts and filters independently (age, volume, FDV, holders, trades, progress, top-10 concentration, whether the creator has sold), and the whole board updates live. Starring a coin puts it on your **watchlist**, which is session-scoped and readable through the API like everything else. A coin you watch gets its full live tape rather than the sampled cross-market stream, which is the one thing watching changes mechanically. > **Ranking cannot be bought** > > Sorting and every organic signal key on manipulation-resistant inputs - unique buyers, volume, wallet age - and nothing in the product moves a coin up a lane for money. ### Portfolio and PnL Every wallet has a running position and profit-and-loss record per coin, denominated in USDC. Cost basis is a **moving average**: each buy adds what you paid to the basis, and each sell relieves the basis pro rata and books realised profit at the average price at that moment. Realised numbers are therefore locked in as they happen and never restated by a later trade. - `Unrealised` is what the position is worth now minus the basis still in it. - `Realised` is the signed sum booked at each sale. - `Total` is proceeds plus current value minus everything spent - deliberately independent of the basis method, so it stays true even where the basis is incomplete. While a coin is on the curve, "what it is worth now" is the curve's own **exit quote** - what you would actually receive for selling the whole position, price impact included, not the headline price times the balance. After graduation it falls back to the last traded price times the balance. > **What the ledger can and cannot see** > > The record is built from bonding-curve trades. Three consequences worth knowing before you rely on a number: swaps in a graduated coin's Uniswap pool are not counted as your trades; tokens that arrive by plain transfer or airdrop raise your balance with **zero cost basis**, so they read as pure profit; and selling tokens the ledger never saw you buy leaves realised profit untouched, which makes it understate rather than invent. The chain is the authority - this is bookkeeping over it. Holdings and PnL are readable per wallet by anyone who has the address. Nothing here is private: an address is a public identifier, and treating its trade history as a secret would be a promise the chain does not keep. ## Faze Protocol ### Overview Faze is a token launchpad and trading terminal on Arc. Every launch, trade, and graduation settles on-chain through platform-authored smart contracts. The interface is noncustodial - your wallet signs every transaction, and the platform never holds your keys or assets. Everything an integrator needs reads directly off the contracts. The platform builds the launch transaction and returns serialized bytes for your wallet to sign; quotes and trades are built in your own browser against the chain, and the on-chain state - reserves, prices, graduation progress, holders - is public and canonical. This document covers how the protocol works and how to read it yourself. - Launches ride a platform-owned bonding curve. A coin's quote asset - what it raises, trades and pools in - is the chain's native gas token (USDC) or, where the deployment lists one, an ERC-20 the platform has approved (a tokenized stock, a stablecoin); never a platform token. - Trading is open - humans and bots, no permits - while a coin is on the curve. - A completed curve graduates into a permanently locked, full-range Uniswap v4 pool at the curve's exact closing price. - A creator picks the coin's economics at launch from contract-enforced menus - see Launch strategies. ### Launch mechanism A launch moves through three phases, all governed by the same curve contract: - **Create.** The creator names the token, gives it a picture and picks a bonding target (the raise). The curve deploys a fresh `LaunchpadToken` via CREATE2 at a pre-computed address and opens the sale. Total supply is fixed at 1,000,000,000 and splits 77.8%/22.2% - 777.8M sold through the curve, 222.2M reserved for the graduation liquidity position. There is no mint function, so supply never changes. - **Trade.** Anyone buys and sells against the curve. Price rises as the curve fills. The token is a plain ERC-20 from its first block - no transfer lock - so holders, bundlers and routers can move it freely during the sale; the platform pool still cannot be front-run, because the hook refuses every pool initializer but the migrator. - **Graduate.** When the bonding target is met, the completing buy graduates the coin in the same transaction (see Graduation). > **Launch protection** > > The curve opens at 36.7% of the raise as fully-diluted value and graduates at 4.5x the raise - an exact 12.25x multiple from floor to graduation. The hook refuses any pool carrying the coin that the migrator did not open, which is what lets the migrator seed liquidity at the closing price without being front-run by a side pool. ### Launch strategies A launch is not one shape. Beyond the name and the bonding target, the creator picks the coin's economics at creation from menus the CONTRACTS enforce - an off-menu value is a revert, not a rounding - and those choices are stamped onto the coin and carried into its pool at graduation. Together they are the difference between a coin that wants a fast fill and one that wants to punish snipers on the way in. | Field | Value | | --- | --- | | Pool base fee | 0.3% / 0.5% / 1% / 1.5% / 2% / 2.5% / 3% / 4% / 5% / 7.5% / 10% | | Compounding liquidity | none, or 10% / 20% / 30% / 40% / 50% of the creator's own fee share (raise-only later) | | Fee burn | none, or 10% / 20% / 30% / 40% / 50% / 60% / 70% / 80% / 90% / 100% of the creator's own fee share - compound + burn at most 100% together; locked in from launch, raise-only later | - **Bonding target** - the raise, picked from the deployment's dollar ladder. It sets the whole price ladder: the curve opens at 36.7% of the raise as FDV and graduates at 4.5x the raise - a 12.25x multiple from floor to graduation, the same for every coin. - **Quote asset** - the chain's gas token, or one of the ERC-20 quote assets the deployment lists. The raise, every fee and the graduated pool are denominated in it for the coin's whole life. - **Sniper exemptions** - up to 30 wallets that pay the base fee inside the coin's sniper-tax window (the creator is exempt without being listed). See Sniper tax. - **Pool base fee** - what every swap pays forever after graduation, and the coin's permanent revenue rate. See Pool fee. - **Compounding commit** - how much of the creator's own fee share is locked back into the pool as liquidity, forever. See Compounding liquidity. - **Burn commitment** - how much of that same share is routed to an on-chain burner that buys the coin and destroys it. Chosen at launch like the compounding commit, and locked in from that block: the burn contract takes the coin's creator seat on the curve and carries it into the pool at graduation. On a gated launch it wires right after your reserved first buy instead - the curve only seats a live coin. See Fee-burn commitments. > **The creator's share is the pie** > > The creator's share of pool fees (the platform's live dial, 70% at the deployed default) is read as 100% and cut three ways: the compounding commit, the burn commitment, and the rest, which stays the creator's own. Both commitments are percentages of THAT share - never of the whole fee - and together they can never exceed it (the contracts refuse the launch otherwise). Compounding runs 10% / 20% / 30% / 40% / 50%; burning runs 10% / 20% / 30% / 40% / 50% / 60% / 70% / 80% / 90% / 100%, where 100% with compounding off is "burn everything" - a plain burner takes the whole stream. The splitter carries a third leg cut from the same pie, a holder share: fees the creator commits to the coin's holders. It is set on the launch form or raised later (`raiseHolderShare`), and like the other two it only ever goes up - a handoff or a takeover moves the controls, never the promise. The committed fees pool in the coin's own distributor contract and are pushed to holders in rounds, split by how much each wallet held and for how long since the last round, so buying just before a payout earns almost nothing. A round runs once a day when the pot has reached the daily minimum, or straight away when it reaches the creator's threshold. Each round's list is published, committed on chain by hash, and paid only after an independent verifier has recomputed it and approved - or, failing that, after a longer window in which it can be vetoed. Amounts under the minimum payout are carried to the next round rather than dropped. It pays only where the platform has plugged a distributor registry into the factory (`BurnerFactory.setDistributorRegistry`); without one the raise reverts `DistributionNotLive`. > **Chosen once, and only ever loosened** > > Every dial above is snapshotted at launch, and the only directions afterwards are DOWN or OFF: the creator can lower the pool fee (`lowerFee`). Nothing can raise a live coin's fee, extend a window, or re-enter one that ended - so a quote you were shown can only ever overstate what you end up paying. The two exceptions move the same direction: the creator can raise their compounding commit later (`raiseCompoundCommit`) and raise their burn share (`raiseBurnShare`) - each only eats further into the creator's own remainder, and neither can ever be turned back down. > **Read a coin's own settings, not the menu** > > The menus above are the active curve's. A coin launched on an earlier curve keeps its own stack and its own menu forever, so when you care about one specific coin, read its settings off the coin (`getCoin(token)` on the curve, `quoteFees` and the window views on its hook) rather than assuming the current menu applies to it. ### Sniper tax (curve anti-snipe) The cheapest way to snipe a launch is to be first onto an empty curve, where the price is at its floor. The **sniper tax** prices that position: while the platform's sniper window is set (`sniperTaxWindow()` on the curve, at most 30 seconds, snapshotted onto every coin at launch), a buy from any wallet the launch did not exempt pays a fee of 99% that **decays linearly to the coin's base fee** over the window. Sells never pay it, and once the window closes every wallet pays the base fee. **The clock starts when the sale opens** - at the launch itself, or for a gated launch at the reserved first buy that opens it, so nobody can run the window down while only the creator may buy. A same-block bot pays the full 99%; a buyer a few seconds later pays proportionally less. What the tax collects is an ordinary trade fee: it lands in the coin's own fee pot and splits at the live shares, so a sniped launch pays its creator. > **Exemptions are named at launch and logged** > > The creator and the coin's dev-buy wallet are exempt without being listed. A launch may name up to 30 more (`sniperExempt`) - a team bundling its opening buys across wallets lists them, or those buys pay the tax. The list is fixed at launch (no verb adds a wallet later) and logged (`SniperExemptionsSet`), so every sniper can read it before the first taxed block. > **A quote is per wallet** > > Inside the window an exempt wallet and a stranger pay different fees for the same buy, which is why the curve's quote names the buyer: `quoteBuyFor(token, buyer, gross)` returns exactly what THAT wallet would pay right now. Quote the wallet that will sign; a quote for an anonymous address is the worst case, never yours. ### Trading and pricing On-curve trades are direct `buy` / `sell` calls on the curve singleton. The curve is a virtual-reserve constant-product market: the marginal price is implied by `ethOffset + ethReserve` over `TOKEN_OFFSET + tokenReserve`, both offsets virtual (see Pricing and graduation progress). For a real trade, never hand-roll that math - `quoteBuyFor` / `quoteSell` return the exact amounts the trade would fill at, and the buy quote names the wallet because a fresh coin's buy fee depends on who is buying (see Sniper tax). Every trade takes a slippage bound: `minTokensOut` on a buy and `minEthOut` on a sell. The trade reverts rather than filling past your bound. Once a coin has graduated, trades route through the `Universal Router` against the Uniswap v4 `PoolManager` instead of the curve, quoted by `V4Quoter` - which executes the pool's real hook, so its answer already nets the fee. On a coin quoted in USDC a buy is one transaction (the value rides the call); on a coin quoted in an ERC-20, the quote pulls through an approval first - the curve's while bonding, `Permit2` once graduated. A sell approves the coin to the curve itself while bonding (one plain ERC-20 approval, no `Permit2`); once graduated the sell's token input pulls through `Permit2`, so a wallet's first pool sell can carry up to two approvals, then none. ### Graduation Graduation happens inside the buy that completes the curve - it is not a separate step a user triggers. The clamped final buy renounces token ownership, skims the coin's migration fee off the deposited quote if it has one (read the coin's `migrationFeeBps` - the curve deploys with it at 0; it comes off the deposit, never the price), and hands the raise plus the whole reserved supply to the migrator. Should that migration revert and stay stuck for a week, the platform can reopen the coin sell-only (`abandon`): holders sell back into the raise at the curve price, and buying is closed for good. The migrator initializes the coin's Uniswap v4 pool at the curve's exact closing price - LP fee 0, the platform's `LaunchpadHook` attached (nobody else can initialize or pre-price a pool carrying the hook) - and mints the raise plus the reserved supply as a single full-range position minted through Uniswap's `PositionManager` as an NFT **owned by the burn address, forever**. The PositionManager gates every modification behind the NFT's owner, and the burn address approves nobody, so depositing is the permanent lock. The seed is balanced by construction: the curve closes at exactly the price where the reserved 22.2% is worth the raise, so all of both go in and nothing is burned but rounding dust. Inline graduation is best-effort: if the migration reverts, the coin freezes in a `complete` state and a permissionless `graduate(token)` call survives as the recovery path. The `Graduated` event's `pool` field carries the venue handle - the `LaunchpadHook` address, since a v4 pool has no address of its own (its `PoolId` derives from the token and hook; see Pricing and graduation progress). The liquidity itself is locked forever - see Locked liquidity. ### Locked liquidity Every graduated coin's liquidity is locked forever, and that claim is checkable by anyone - it does not rest on a promise from the platform. This section is why the lock exists, how it works, and the exact reads that prove it. **Why.** The classic launchpad failure is the liquidity pull: whoever controls the LP withdraws it and the token's market evaporates. The platform removes that possibility structurally - not by holding the LP in a trusted account, but by making withdrawal impossible for everyone, the platform included. **How.** The migrator mints the graduation position through Uniswap's own `PositionManager`, as an ERC-721, straight to the burn address `0x000000000000000000000000000000000000dEaD`. The PositionManager gates every modification of a position - removing liquidity, burning it, even adding to it - behind the NFT's owner-or-approved check, and the burn address approves nobody. So the position is frozen whole: removal requires the owner; the owner is an address no key controls; nothing about that can change. That covers the platform team, the owner key, the hook, and the coin's creator equally. The pool's LP fee is 0, so the burned position never earns anything there was to collect - all trading fees live in the hook, in the pool's quote asset (see Fees and revenue). This is the "LP burned" shape every screener and security API already recognizes, which is exactly why we graduate this way. And the position holds the WHOLE raise against the WHOLE reserved supply: the curve closes at exactly the price where the reserve is worth the raise, so nothing is parked in a locker and nothing is burned but rounding dust. 100% of the supply is tradeable - what is locked is the liquidity, not any slice of the coin. **Check it yourself.** Four reads - the migrator names the burned NFT, then Uniswap's own StateView and PositionManager do the rest. Copy the coin's `Pool ID` from its page's CONTRACTS block: ```sh # 1. The burned position NFT behind the pool (the migrator's own record). cast call 0x7c8dE42426A058B778DCe8530537cd62eF0178C4 \ 'positionTokenIds(bytes32)(uint256)' \ --rpc-url https://rpc.mainnet.arc.io # 2. The pool's TOTAL liquidity (StateView is Uniswap's own lens, not our code). cast call 0xF3334192D15450CdD385c8B70e03f9A6bD9E673b \ 'getLiquidity(bytes32)(uint128)' \ --rpc-url https://rpc.mainnet.arc.io # 3. That NFT's position: owner = the PositionManager, full range (-887200 to 887200), salt = the tokenId (as bytes32). cast call 0xF3334192D15450CdD385c8B70e03f9A6bD9E673b \ 'getPositionInfo(bytes32,address,int24,int24,bytes32)(uint128,uint256,uint256)' \ 0x6049c9a0e26405C0985f9E3685C87d0aE917f82B -- -887200 887200 \ $(cast to-uint256 ) \ --rpc-url https://rpc.mainnet.arc.io # 4. Who owns that NFT - the burn address, so nobody can ever modify the position. cast call 0x6049c9a0e26405C0985f9E3685C87d0aE917f82B \ 'ownerOf(uint256)(address)' \ --rpc-url https://rpc.mainnet.arc.io # The first number of (3) equals (2), and (4) is 0x000000000000000000000000000000000000dEaD: 100% of the liquidity # sits in a burned position. ``` > **Third-party LP-lock checkers read this as LP burned** > > Screeners and security APIs recognize two lock shapes: LP burned to a black-hole address, or LP held by a locker they have integrated. A graduation position is minted as a Uniswap PositionManager NFT owned by the burn address - the first shape, the one every checker recognizes without knowing who we are. ### Fees and revenue Three fees exist. A flat **launch fee** is paid in USDC when a coin is created. A **trade fee** is taken in the coin's quote asset on the input of a buy (the sniper tax is this fee at a higher rate) and the output of a sell, accrues per coin in the curve, and is paid out permissionlessly (`collect`, the `FeesCollected` event) to the creator and the treasury at the live split - or wholly to the treasury on a coin launched while the owner's `creatorCurveFeesEnabled` switch was off. A **migration fee** can be skimmed at graduation off the deposited quote, never off the price; the curve deploys with it at 0. > **Read the live values, do not hardcode them** > > All three are owner-tunable on the deployed curve, so any number printed here can go stale. Read them from the curve itself - `launchFee()`, `feeBps()`, and `migrationFeeBps()`. The trade and migration fees are snapshotted per launch onto the `Coin` struct, so a retune never re-prices a sale already in flight - when you care about one specific coin, read its `feeBps` / `migrationFeeBps` off the coin rather than the curve. After graduation the pool's own LP fee is 0 - the locked position accrues nothing, which is exactly what keeps it locked with no collect path. The fee product is the `LaunchpadHook` on every graduated pool: a base fee charged in the pool's quote asset only (never in the coin), on both swap directions, split between the coin creator and the treasury (collection is permissionless - `collect` / `collectMany`; a leg that cannot be pushed waits on a per-currency claim ledger, pulled with `withdrawOwed` or pushed by anyone with `payOut`). Unlike the curve's fees this split is **live, not snapshotted** - an owner retune applies to every pool's next collection, including coins that graduated long ago. The creator's guarantee is a floor instead: `MIN_CREATOR_SHARE_BPS` is a hard 40% that no constructor value and no retune can go under. The floor bounds that GROSS share - what the platform can take - never the creator's net: a compounding commit or a fee-burn commitment is the creator slicing their own side, and can take the net below 40% deliberately. **The seat and the destination are separate.** The creator SEAT (`Coin.creator` on the curve, the pool's `creator` on the hook) holds every creator-only dial; where the creator leg is PAID is a pointer the seat holder sets with `setPayoutRecipient` - both the curve and the hook carry it - to a wallet, a vault or a Safe, re-pointed any time while keeping the seat (zero pays the seat itself again). Every seat move resets the pointer: when a new holder accepts a handoff (`acceptCreator`) the departed creator's routing dies with the old seat, and the factory's `commitSeat` clears it when a burn clone takes the seat at launch. When reconciling who a coin actually pays, read `payoutRecipient` beside `creator`. The base rate itself is the creator's pick from a fixed menu (see Pool fee). The creator can also send a slice of their own side somewhere other than a wallet: a **compounding commit** locks it back into the pool as liquidity, and a **fee-burn commitment** converts the creator stream into buy-and-burn. There is **no rent and no listing fee**, anywhere in the product. Position on the coin board, trending, and every organic signal key on manipulation-resistant inputs - unique buyers, volume, wallet age - and are never for sale. ### Pool fee (variable, only-down) A graduated pool's Uniswap LP fee is `0`; the fee product is the `LaunchpadHook`, and its **base fee** is a per-pool value the CREATOR picks at launch from a contract-enforced menu - 0.3% / 0.5% / 1% / 1.5% / 2% / 2.5% / 3% / 4% / 5% / 7.5% / 10%. It is charged in the pool's quote asset on both swap directions and it is the coin's permanent revenue rate: every window above eventually decays down to it, and nothing decays below it. The ceiling is a bytecode constant, not a setting: `MAX_FEE_BPS` is 10%, so no pool on this stack can ever charge more than that on a swap, whoever asks. Picking 0 at launch means "take the hook's current default" rather than "no fee". > **The only direction is down** > > `lowerFee(poolId, feeBps)` accepts a strictly LOWER menu value and nothing else - the creator (or the platform) can cut a coin's fee, and there is no code path that raises one. That is what makes a stale quote safe: it can overstate your cost, never understate it. Read a specific pool's live rate off the hook rather than inferring it from the menu - `quoteFees` resolves the base fee together with whatever window is currently active, which is the number a swap will actually charge. `V4Quoter` already runs the hook, so a quoted amount has all of this in it. ### Compounding liquidity Compounding is not an on/off profile - it is a **commit** the creator makes at launch: a slice of their OWN fee share that auto-buys locked liquidity under the coin, automatically and forever, so the pool's floor deepens as the coin trades. The menu is none, or 10% / 20% / 30% / 40% / 50% - a fraction of the creator's share, never of the whole fee. That share is the pie: a burn commitment (see Fee-burn commitments) is cut from the same share, the two together can never exceed it, and what both leave is the creator's own. The platform can also set a mandatory MINIMUM commit for new launches (deployed at 0 - pure opt-in); it resolves at launch only and never reaches a coin already launched. **How it splits.** The pool fee first splits creator-gross / treasury at the platform's LIVE dial (the hook deploys at 70/30; the hard 40% floor bounds this gross share), and the commit then slices inside the creator's gross. At the deploy dial a 20% commit means 56% of pool fees to the creator, 14% compounding and 30% treasury. Because the platform split is live, a committed pool's net deliberately moves with it - the commit is a fixed fraction of whatever the creator share is - so read a coin's numbers off the chain at current dials rather than from a printed page. **How it lands.** The compounded quote asset is deployed as a single-sided position in a band just below the coin's current price - a standing bid that buys the coin as the price falls. No swap executes when it deploys, so there is no execution price for anyone to attack, and it needs no keeper, oracle, or off-chain job: it triggers inline, inside the swap that pushes the pool's accrued fees over the settle threshold. **The bands are a ladder, and they never come back.** As the coin climbs, new bands trail it upward and the old ones stay behind as deeper crash protection. There is no lift, no rebalance, and no removal verb - the compounded liquidity is locked by the same absence of code that locks the graduation position (see Locked liquidity). > **Up is one-way, both times** > > A launch chooses its commit at creation. The creator can raise it later, a plain pool included (`raiseCompoundCommit(poolId, bps)` - a higher menu stop only), which settles the accrued fees under the old split first, so the new one applies only from the raise forward. There is no verb back down: lowering would withdraw a promise holders had already priced in, so the code to do it does not exist. ### Fee-burn commitments A graduated pool's creator fee stream is an address on the hook, and any creator can hand it - irreversibly - to a contract that converts it into buy-and-burn. The result is a coin whose own trading volume permanently removes supply, and the commitment is verifiable rather than promised: it is a property of bytecode, not a statement in a thread. - **All-or-nothing.** A `BuybackBurner` clone, deployed per pool from the platform's `BurnerFactory`, takes the whole creator seat. The handoff is the hook's ordinary two-step propose-then-accept, and it is **one-way by absence of code**: the clone has no `proposeCreator`, so the seat can never leave by the creator's hand again. - **Or a percentage.** A `FeeSplitter` clone takes the seat instead and forks a live `burnShareBps` of the income to the burner, paying the rest out normally - a partial commitment for a creator who still needs an income. The share is of the creator's WHOLE fee share - the same pie the compounding commit is cut from, never the remainder one leaves the other - so a later compound raise never moves the advertised burn percentage. The splitter carries a third leg beside burn and payout, a holder share cut from that same pie and raise-only like the burn (`raiseHolderShare`, never reducible once raised). Its fees flush to the pool's `HolderDistributor` clone, which the factory resolves through its distributor registry (`BurnerFactory.setDistributorRegistry`) and which pays holders in posted, hash-committed rounds that an independent verifier approves before they execute. With no registry plugged the raise reverts `DistributionNotLive`, and money already committed is held in the splitter, never re-routed, whenever the pool has no distributor. **Chosen at launch.** A creator can commit the burn on the launch form itself, beside the compounding commit: the launch is then two transactions signed in order - the launch, then the factory deploying the splitter (or a plain burner for "burn everything") against the coin's PREDICTED pool. That deploy also seats the clone as the coin's CREATOR on the curve in the same transaction (`commitSeat`, factory-only), so the burn is committed the block it lands: every creator-only dial on the curve now answers to a contract with no verb to turn it - no re-point, no handoff - and the human keeps the clone's own admin (the conveyor dials and the raise-only ratchets). The clone's address is deterministic on the pool id, so it exists before the pool does. During the sale the curve pays the creator leg into it ONLY if the coin launched with creator curve fees on - an owner switch that ships off, in which case the sale pays the creator nothing and the clone's first income is the pool's. There is no pending phase: the coin exists the moment the launch mines, and until the deploy lands it simply has no burn (the creator's launch form offers to finish that one transaction; nothing waits on chain). At graduation the seat crosses to the hook verbatim - the clone is the pool's fee seat from its first swap, and no verb hands it back. The only later move is `raiseBurnShare`, upward. **How a burn executes.** The hook's ordinary permissionless `collect` pays the pool's quote asset into the burner. From there anyone runs the conveyor: `checkpoint()` photographs the pool's spot price, and `burn()` executes only while that photo is between 30 seconds and 15 minutes old AND the live price is still inside a bounded band around it. The minimum output derives from the CHECKPOINT price, never from the caller and never from same-block spot - so a sandwich has to hold a manipulated price across blocks, paying arbitrage losses and pool fees the whole way, a share of which flows straight back into the burner. Each burn is also sized to what the pool's live depth can absorb, so the conveyor slows as a pool thins out and can never brick itself on its own price impact. Bought tokens go to the dead address; the caller takes a small bounty for the gas. > **Verify the commitment, do not take it on trust** > > A burner or splitter is only meaningful if it is a REAL one. The factory keeps a registry - `isFactoryBurner` / `isFactorySplitter` - and that check is what the platform's own fee-burn badge keys on. Check the hook's current creator address against it before believing a burn claim. ### Risk disclosures > **Read before integrating or trading** > > Tokens launched here are experimental and may be volatile, illiquid, or worthless. You are responsible for your own research and decisions; only use assets you can afford to lose. - Smart contracts may contain defects or behave unexpectedly; on-chain transactions are irreversible. - Prices, quotes, and market caps shown in any interface are estimates and may differ from final execution. - Anyone can create a token with a similar name or symbol - always verify the contract address before interacting. - Graduation, liquidity, and the ability to exit a position are never guaranteed. The launch stack has not yet completed an external audit. See the [Terms of Use](/terms) and [Privacy Policy](/privacy) for the full terms governing use of the platform. ## Platform ### Community takeover A coin outlives the person who launched it. When a creator goes quiet, the community around the coin can apply to take it over - a **CTO**. This is a reviewed application, not a purchase: the fee pays for the review, and paying it buys nothing but a decision. Any wallet can apply, and competing applications for the same coin are allowed on purpose - they get reviewed against each other on merit. One open application per wallet per coin. The form asks for evidence rather than intent: who you are, the wallet that would receive the creator fee stream, what you tried in order to reach the original creator, what the community has said, and what you would do in the first 30 days. The application moves through `awaiting-payment` to `pending` once the fee is confirmed on chain, then to `accepted` or `refused`. Either decision comes back with a written reason. > **The fee is non-refundable, and approval is not for sale** > > Review is manual and the outcome is a judgement about evidence. A refused application is not refunded - that is what stops the queue filling with speculative applications on every coin with a quiet week. Apply when you can actually show abandonment and community support. On acceptance the platform recognises the new creator: the coin's page shows the handover provenance, and the new wallet is who the platform treats as the creator from then on. The on-chain fee recipient is moved in a separate step - the `LaunchpadHook`'s creator slot for the coin's pool, a propose-then-accept handoff (the `PositionLocker`'s recipient for a v3-era coin) - so for a graduated coin, watch for that call rather than assuming acceptance moved the money by itself. ## Integration ### Network Faze runs on Arc, an Arbitrum Orbit L2. Point a standard EVM client at the public RPC below; the native gas token is USDC. | Field | Value | | --- | --- | | Network | Arc | | Chain ID | 5042 | | CAIP-2 | eip155:5042 | | Type | Arbitrum Orbit, EVM-equivalent | | Native token | USDC (18 decimals) | | RPC | https://rpc.mainnet.arc.io | | Explorer | https://explorer.arc.io | ### Contracts The launch stack - curve, migrator, hook, payments - is platform-authored. The curve singleton is the entrypoint for launches and on-curve trades; the migrator seeds each graduated pool and mints its position as an NFT burned to the dead address; the `LaunchpadHook` is every graduated pool's fee product; graduated swaps route through the Uniswap v4 infrastructure (`PoolManager` + `Universal Router`). Every coin page repeats the addresses that coin trades against, so read the coin for anything per-coin. | Field | Value | | --- | --- | | Curve release | 9.0 | | BondingCurveV4 | [0x6A62919ccbf0c19e0C4e084F986b582b4492dDA4](https://explorer.arc.io/address/0x6A62919ccbf0c19e0C4e084F986b582b4492dDA4) | | UniswapV4Migrator | [0x7c8dE42426A058B778DCe8530537cd62eF0178C4](https://explorer.arc.io/address/0x7c8dE42426A058B778DCe8530537cd62eF0178C4) | | LaunchpadHook | [0x47e7936ae9891e61C5123db720593c05dE7120cc](https://explorer.arc.io/address/0x47e7936ae9891e61C5123db720593c05dE7120cc) | | Uniswap v4 PoolManager | [0x8366a39CC670B4001A1121B8F6A443A643e40951](https://explorer.arc.io/address/0x8366a39CC670B4001A1121B8F6A443A643e40951) | | Uniswap v4 PositionManager | [0x6049c9a0e26405C0985f9E3685C87d0aE917f82B](https://explorer.arc.io/address/0x6049c9a0e26405C0985f9E3685C87d0aE917f82B) | | V4Quoter | [0x8Dc178eFB8111BB0973Dd9d722ebeFF267c98F94](https://explorer.arc.io/address/0x8Dc178eFB8111BB0973Dd9d722ebeFF267c98F94) | | StateView | [0xF3334192D15450CdD385c8B70e03f9A6bD9E673b](https://explorer.arc.io/address/0xF3334192D15450CdD385c8B70e03f9A6bD9E673b) | | Universal Router | [0x4fcA4a51Ab4F23A7447b3284fBd7D73289A89Fb1](https://explorer.arc.io/address/0x4fcA4a51Ab4F23A7447b3284fBd7D73289A89Fb1) | | Permit2 | [0x000000000022D473030F116dDEE9F6B43aC78BA3](https://explorer.arc.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3) | | Payments | [0x80560C3384210c09A301b6aB2F5404c9674719A1](https://explorer.arc.io/address/0x80560C3384210c09A301b6aB2F5404c9674719A1) | | BurnerFactory (fee-burn commitments) | [0xCEC9C59E1E79908e80a3BCFE7719BfDd469f5f63](https://explorer.arc.io/address/0xCEC9C59E1E79908e80a3BCFE7719BfDd469f5f63) | | HolderDistributorRegistry (holder payouts) | [0xfe93F55a669E0048aC608A947dD1EAAbCa4E5C11](https://explorer.arc.io/address/0xfe93F55a669E0048aC608A947dD1EAAbCa4E5C11) | | HolderDistributor (per-coin pot, clone implementation) | [0xAD04f00bc6dCA4D7a8Dc2Dd5f0139266aD55B096](https://explorer.arc.io/address/0xAD04f00bc6dCA4D7a8Dc2Dd5f0139266aD55B096) | > **Addresses change on redeploy** > > These addresses are read live from the deployment's committed chain profile - resolve them at runtime (via the platform API or the launch record) rather than hardcoding them for anything long-lived. ### On-chain events The curve emits the full lifecycle. Reserves on `Bought` / `Sold` are post-trade, so price and progress need no extra state read. A drifted argument type changes the topic hash and silently matches nothing - mirror these signatures field-for-field. ```solidity struct LaunchTerms { uint256 bondingTarget; uint16 feeBps; uint16 migrationFeeBps; address migrator; bool active; uint16 launchSellFeeBps; uint32 launchSellFeeDecay; uint16 poolFeeBps; bool compounding; uint16 launchBuyFeeBps; uint32 launchBuyFeeDecay; uint16 compoundCommitBps; bool creatorCurveFees; address quoteToken; uint32 sniperTaxWindow; } event Launched( address indexed token, address indexed creator, LaunchTerms terms, string name, string symbol, string tokenURI ); event SniperExemptionsSet(address indexed token, address[] wallets); event Bought( address indexed token, address indexed buyer, uint256 ethGross, uint256 fee, uint256 tokensOut, uint256 ethReserve, uint256 tokenReserve ); event Sold( address indexed token, address indexed seller, uint256 tokensIn, uint256 fee, uint256 ethOut, uint256 ethReserve, uint256 tokenReserve ); event Completed(address indexed token, address indexed buyer, uint256 finalRaise); event Abandoned(address indexed token, address indexed by, uint256 raise); event Graduated( address indexed token, address indexed pool, address migrator, address caller, uint256 ethMigrated, uint256 migrationFee, uint256 liquidity ); ``` Watching new launches with viem: ```ts import { createPublicClient, http, parseAbi } from 'viem'; const abi = parseAbi([ 'struct LaunchTerms { uint256 bondingTarget; uint16 feeBps; uint16 migrationFeeBps; address migrator; bool active; uint16 launchSellFeeBps; uint32 launchSellFeeDecay; uint16 poolFeeBps; bool compounding; uint16 launchBuyFeeBps; uint32 launchBuyFeeDecay; uint16 compoundCommitBps; bool creatorCurveFees; address quoteToken; uint32 sniperTaxWindow; }', 'event Launched(address indexed token, address indexed creator, LaunchTerms terms, string name, string symbol, string tokenURI)', ]); const client = createPublicClient({ transport: http('https://rpc.mainnet.arc.io'), }); // Every new launch on the platform, straight off the curve singleton. The terms ride as ONE struct member, so the // tuple above is part of the topic hash - mirror it field-for-field. const unwatch = client.watchContractEvent({ address: '0x6A62919ccbf0c19e0C4e084F986b582b4492dDA4', abi, eventName: 'Launched', onLogs: (logs) => { for (const log of logs) console.log('launched', log.args.token, log.args.name, log.args.terms?.quoteToken); }, }); ``` ### Reading token state `getCoin(token)` returns the canonical `Coin` struct - reserves, the bonding target, and the `complete` / `graduated` flags. Pair it with the quote view functions for exact fill amounts. ```ts import { createPublicClient, http, parseAbi } from 'viem'; const abi = parseAbi([ 'struct Coin { address creator; address devBuyer; address migrator; address quoteToken; uint16 feeBps; uint16 migrationFeeBps; bool complete; bool graduated; bool active; bool abandoned; bool creatorCurveFees; uint16 poolFeeBps; uint16 launchSellFeeBps; uint32 launchSellFeeDecay; uint16 launchBuyFeeBps; uint32 launchBuyFeeDecay; uint16 compoundCommitBps; uint32 sniperTaxWindow; uint64 openedAt; uint64 completedAt; uint256 ethOffset; uint256 ethReserve; uint256 tokenReserve; uint256 bondingTarget; uint256 accrued; }', 'struct BuyQuote { uint256 tokensOut; uint256 ethUsed; uint256 tradeFee; bool completes; }', 'function quoteBuyFor(address token, address buyer, uint256 ethGross) view returns (BuyQuote quote)', 'function getCoin(address token) view returns (Coin coin)', 'function quoteSell(address token, uint256 tokensIn) view returns (uint256 ethOut, uint256 ethGross, uint256 fee)', ]); const client = createPublicClient({ transport: http('https://rpc.mainnet.arc.io') }); const curve = '0x6A62919ccbf0c19e0C4e084F986b582b4492dDA4'; // Canonical current state and a quote - both read straight off the contract. The quote names the BUYER: inside a // coin's sniper-tax window an exempt wallet and a stranger pay different fees, so quote the wallet that will sign. const coin = await client.readContract({ address: curve, abi, functionName: 'getCoin', args: [token] }); const quote = await client.readContract({ address: curve, abi, functionName: 'quoteBuyFor', args: [token, buyer, 10n ** 16n], // 0.01 of the quote, gross }); ``` Identity lives on the token itself, not just off-chain. Every `LaunchpadToken` exposes `name`, `symbol`, `tokenURI`, `logo`, and `description` as public reads, set once at deployment and immutable thereafter - so a name, its artwork, and its blurb resolve with no dependency on our servers. `logo` is a CDN URL rather than IPFS: the pointer is immutable but the platform moderates the content behind it. Anything genuinely mutable (socials, links) lives in the `tokenURI` JSON instead, which is why those are not on-chain strings. Two flags on the `Coin` struct are worth reading before acting on a coin.`abandoned` is true once the platform has reopened a coin sell-only after a graduation that never happened (a week stuck at `complete`): sells still clear at the curve price, buys and quotes revert. `active` is false only while a launch waits for its creator's first buy - during that window only the creator can buy. The token itself carries no transfer lock at any point, and after graduation it is a plain, fully renounced ERC-20 with no owner and no admin verb. ### Buying and selling on the curve A coin whose launch record reads `curve-trading` trades by calling the curve singleton directly - no router, no permit, no API key. Quote first with the view functions, then send the trade with a slippage floor; the trade reverts rather than filling past it. - **Buy**: `buy(token, quoteIn, minTokensOut)`. On a coin quoted in USDC, send `quoteIn` as the transaction value - the two must be equal or the call reverts `NativeValueMismatch`. On a coin quoted in an ERC-20 (`getCoin(token).quoteToken` is not zero), approve the curve for `quoteIn` first and send no value. Quote with `quoteBuyFor(token, buyer, quoteIn)` using the wallet that will sign: a fresh coin's buy fee depends on the buyer (see Sniper tax). - **Sell**: `approve(curve, tokensIn)` on the coin, then `sell(token, tokensIn, minEthOut)`. While the coin is on the curve the curve pulls the coin itself - no `Permit2`. Proceeds arrive in the coin's quote asset, quoted by `quoteSell(token, tokensIn)`. - The trade fee comes off the quote side on both legs (the input of a buy, the output of a sell); the quotes already net it. - A buy that completes the sale is clamped to the remaining supply, refunds the rest in the same transaction and graduates the coin inline - from the next block it trades on its Uniswap v4 pool, and curve calls revert `CurveComplete`. - Reverts to handle: `SlippageExceeded`, `CurveComplete`, `CurveNotActive` (a gated coin before its creator's first buy), `CoinAbandoned` (buys on a sell-only coin), `UnknownCoin` (not on this curve) and `AmountTooSmall`. ```ts import { createPublicClient, createWalletClient, http, parseAbi } from 'viem'; import { privateKeyToAccount } from 'viem/accounts'; const abi = parseAbi([ 'struct BuyQuote { uint256 tokensOut; uint256 ethUsed; uint256 tradeFee; bool completes; }', 'function quoteBuyFor(address token, address buyer, uint256 ethGross) view returns (BuyQuote quote)', 'function quoteSell(address token, uint256 tokensIn) view returns (uint256 ethOut, uint256 ethGross, uint256 fee)', 'function buy(address token, uint256 quoteIn, uint256 minTokensOut) payable returns (uint256 tokensOut)', 'function sell(address token, uint256 tokensIn, uint256 minEthOut) returns (uint256 ethOut)', 'function approve(address spender, uint256 amount) returns (bool)', ]); const transport = http('https://rpc.mainnet.arc.io'); const client = createPublicClient({ transport }); const account = privateKeyToAccount(process.env.PRIVATE_KEY); const wallet = createWalletClient({ account, transport }); const curve = '0x6A62919ccbf0c19e0C4e084F986b582b4492dDA4'; const token = '0x...'; // a coin still on the curve (state curve-trading) // BUY a coin quoted in the native token: quoteIn and msg.value must be EQUAL (NativeValueMismatch otherwise). // An ERC-20-quoted coin (getCoin(token).quoteToken != 0) instead approves the curve for quoteIn and sends NO value. const quoteIn = 10n ** 16n; // 0.01 of the quote, gross (the fee comes off this) const q = await client.readContract({ address: curve, abi, functionName: 'quoteBuyFor', args: [token, account.address, quoteIn] }); const minTokensOut = (q.tokensOut * 99n) / 100n; // 1% slippage floor await wallet.writeContract({ address: curve, abi, functionName: 'buy', args: [token, quoteIn, minTokensOut], value: quoteIn }); // SELL on the curve: approve the CURVE itself for exactly tokensIn (no Permit2 while the coin is bonding), then sell. const tokensIn = 1_000_000n * 10n ** 18n; const [ethOut] = await client.readContract({ address: curve, abi, functionName: 'quoteSell', args: [token, tokensIn] }); await wallet.writeContract({ address: token, abi, functionName: 'approve', args: [curve, tokensIn] }); await wallet.writeContract({ address: curve, abi, functionName: 'sell', args: [token, tokensIn, (ethOut * 99n) / 100n] }); ``` > **Take the curve from the coin, not from this page** > > A coin trades on the curve that launched it, forever. Read the curve address off the coin's launch record (`providerMeta.curveAddress` on `GET /launchpad/launches/:token`) rather than assuming the address above - a coin from an earlier release keeps its own curve and its own call shapes. ### Pricing and graduation progress Marginal price in the coin's quote asset per token = `(ethOffset + ethReserve) / (TOKEN_OFFSET + tokenReserve)`. Both offsets are virtual and must be included: `ethOffset` is on the `Coin` struct (40% of the bonding target), and `TOKEN_OFFSET` is the curve constant - 40% of the sellable supply, 311.1M tokens. Dropping the token offset overprices the coin by 40% at open and diverges without bound as the sale fills - `tokenReserve` reaches 0 exactly at completion. Graduation progress is `ethReserve / bondingTarget`. For any amount a user will actually trade, trust the on-chain quote over a re-derived spot price - the quote accounts for slippage and the fee. Graduated coins no longer price off the curve. Every launchpad pool has the same committed shape, so its `PoolId` is derivable with no lookup: `keccak256(abi.encode(PoolKey))` where the key is the coin's quote asset and the token sorted by address (native `address(0)` always sorts first; an ERC-20 quote can land on either side), fee `0`, tick spacing `200`, and the coin's hook (the `Graduated` event's `pool` field). Read the spot price via `StateView.getSlot0(poolId)` - minding which side the quote sits on - and quote real amounts via `V4Quoter`, which runs the pool's actual hook, so fees are already in its answer. ### Integrating today The on-chain contracts above are the documented integration surface. Everything a launch does is public on-chain state - read it directly over the RPC, exactly as the snippets in this document do. That path is trust-minimized and needs nothing from us: no keys, no allow-listing, no account. > **A typed SDK wraps the platform API** > > Beyond reading the chain directly, Faze publishes [a typed TypeScript client](/sdk) - [@fazedotfun/sdk](https://www.npmjs.com/package/@fazedotfun/sdk) on npm - over the same market-data and trade-building API the web app uses. A convenience layer, not a replacement for the contracts, which remain the stable source of truth. It builds no keys and holds no funds; trade and launch calls return tx-requests your own wallet signs. Installation, guides, and the full method reference live on the dedicated SDK page. For programmatic trading, bot integration, or partnership access, contact the team at hello@faze.fun. ### HTTP endpoints The SDK is a wrapper, not the contract - every method below is a plain HTTP call you can make without it. Each path is relative to `https://faze.fun/api/v1`. Reads are anonymous; the session-scoped ones carry the cookie the wallet-link flow sets. > **Machine-readable: an OpenAPI document** > > The same surface, with parameters and full response schemas, is served at [`https://faze.fun/openapi.json`](/openapi.json). It is generated from the published client's own paths and validators, so it cannot drift from what the SDK accepts, and it describes ONLY this public surface - administrative and ad-booking routes exist but are deliberately absent. | Field | Value | | --- | --- | | GET /health | liveness probe | | GET /launchpad/config | chain + contract addresses, live fees, the terms version to accept | | GET /launchpad/coins | the coin feed (?sort, ?window, ?limit, ?cursor, ?states, ?keywords) | | GET /launchpad/coins/{mint} | one coin: registry record + metrics in one read | | GET /launchpad/coins/{mint}/metrics | price, FDV, volume and holder rollups | | GET /launchpad/coins/{mint}/holders | holder list with balances and shares | | GET /launchpad/coins/{mint}/traders | per-wallet trading totals for the coin | | GET /launchpad/coins/{mint}/trades | the trade tape | | GET /launchpad/coins/{mint}/candles | OHLCV (?timeframe, ?before) | | GET /launchpad/coins/{mint}/sentiment | rocket/shit tallies; PUT casts a vote (session) | | GET /launchpad/coins/{mint}/pool-fee | a graduated coin's current pool fee | | GET /launchpad/launches[/{mint}] | launch registry records | | GET /launchpad/activity | the cross-coin activity feed | | GET /launchpad/rates | the native-token USD rates the platform itself prices with | | GET /launchpad/tokenlist.json, /launchpad/tokenlist-graduated.json | Uniswap-standard token lists of listed and graduated coins (any origin may fetch) | | GET /launchpad/wallets/{wallet}/holdings | portfolio | | GET /launchpad/wallets/{wallet}/pnl | realized + unrealized PnL per coin | | GET /launchpad/wallets/{wallet}/pnl-curve | PnL over time | | GET /launchpad/wallets/{wallet}/trades | the wallet's trade history | | GET /launchpad/wallets/{wallet}/trading-stats | aggregate trading stats | | GET /launchpad/wallets/{wallet}/creator-stats | stats for coins the wallet launched | | GET /launchpad/watchlist | starred coins (session); PUT/DELETE {mint} to star/unstar | | POST /launchpad/launch/build | build a launch (imageKey of a ready upload required): predicted mint + tx-requests to broadcast | | POST /launchpad/launches/{mint}/confirm | report the broadcast hash | | POST /wallet/challenge | single-use message to sign (session) | | POST /wallet/link | address + signature + acceptedTermsVersion | | POST /wallet/unlink | clear the link | | GET /wallet/moderation | the linked wallet's standing (session + wallet) | | GET /profile/me, PUT /profile | own profile; update takes username / bio / showsStats (the avatar is the verified X picture - avatarKey uploads are refused) | | GET /profile/handle-check | username availability + validity (?handle) | | GET /profile/{wallet} | another wallet's public profile | | POST /garage/asset, GET /media/{key} | upload an image, then poll until it is re-encoded | > **Token lists** > > The two token lists follow the `tokenlists.org` standard, so a wallet or aggregator can subscribe to them directly. A coin is listed once its curve opens and stays listed through graduation; it drops out after 7 days without a trade (a new coin gets those 7 days first), and a delisted coin never appears. The version follows the standard: a removal bumps major, an addition minor, anything else patch. Tags say where a coin trades (`curve`, `graduated`), whether it is sell-only (`abandoned`) and whether it is quoted in an approved ERC-20 (`stock`). Extensions carry routing facts only: `venue`, `curve`, `curveRelease`, `quoteToken` (the zero address is the native token), `quoteSymbol`, `hook`, and on a graduated coin its Uniswap v4 `poolKey`. The lists refresh every few minutes, and a list with no coins answers 404. > **Conventions** > > Coins are addressed by mint, wallets by address, both EIP-55 checksummed (any casing is accepted). List reads are keyset-paginated: pass the response's `nextCursor` back as `?cursor=`, opaque and bound to the sort it came from. Errors are `{ "error": "" }` with a stable identifier - branch on that, never on message text. A wallet path param that is not an address is a 400, not an empty result; an unknown mint is a 404 on every per-coin read. ### Support and attribution Integration questions, bug reports, and partnership requests go to hello@faze.fun. When referencing Faze data, attribute it to the platform and link back where practical. Data read from the contracts is provided as-is with no warranty of accuracy, completeness, or availability. Verify anything you rely on against the chain. # SDK The official TypeScript client for Faze - typed market reads and non-custodial trading, with every published method documented below. ## Getting started ### Overview `@fazedotfun/sdk` is the official TypeScript client for Faze. It wraps the same platform API the web app runs on: coin lists and summaries, metrics, holders, trade tapes, candles, the activity feed, launches, wallet holdings and PnL, profiles, and world and ad data - plus non-custodial trade and launch building. - **Typed and validated.** Every response is parsed at runtime against the same schemas the platform uses, so a drifted server response throws instead of silently mistyping. - **Non-custodial by construction.** Nothing in the SDK touches a private key. Build calls return transaction requests; your own wallet signs and broadcasts them. - **No account needed for reads.** Every public read endpoint works without a key, an API token, or a session. - **ESM-only**, dependency-light, and runs in the browser and in Node alike. > **The contracts remain the source of truth** > > The SDK is a convenience layer over the platform API, not a replacement for the chain. Everything a launch does is public on-chain state, and the [protocol documentation](/docs) shows how to read it directly over the RPC with no dependency on our servers. ### Install and quickstart ```sh npm install @fazedotfun/sdk # only if you build or sign transactions yourself (the /chain entry) npm install viem ``` The package is on the public npm registry as [@fazedotfun/sdk](https://www.npmjs.com/package/@fazedotfun/sdk), MIT licensed. It is ESM-only and its one runtime dependency is zod. `viem` is an OPTIONAL peer: install it only for the `/chain` entry below, which builds and signs transactions - the rest of the client does not import it. ```ts import { createClient } from '@fazedotfun/sdk'; // baseUrl is the platform API origin plus the /api/v1 version prefix. const client = createClient({ baseUrl: 'https://faze.fun/api/v1' }); const config = await client.getLaunchConfig(); // live fee rates + chain profile const coins = await client.listCoins(); // the public launch feed ``` Point `baseUrl` at the platform API origin including the `/api/v1` version prefix - on this deployment, the origin serving this page (`https://faze.fun/api/v1`). That is the whole setup for public data - reads work immediately, no key and no session. ### Client options `createClient` takes a single options object. The surface is deliberately small: | Field | Value | | --- | --- | | baseUrl | API origin + version prefix, e.g. https://faze.fun/api/v1 (required) | | fetch | custom fetch implementation, e.g. a cookie-jar-aware one for server-side sessions | | headers | headers merged into every request - how a non-browser consumer carries its session | The transport is deliberately thin - no response cache, no automatic retries, no hidden state. A published client cannot know its consumer's freshness or retry needs, and a cache it cannot invalidate is a correctness hazard; put caching in your own layer (react-query, a CDN, a worker), where invalidation lives. Rate limits surface as a typed error carrying the server's schedule (see Errors and rate limits). ## Guides ### Sessions and wallet linking There are two access levels. Public reads need nothing. Wallet-scoped verbs - `buildLaunch`, `getWatchlist`, `setCoinSentiment`, the profile writes - act on a **session with a linked wallet**. Sessions ride a signed cookie the API mints on your first request: in a browser it round-trips automatically (the SDK sends `credentials: 'include'`). A server-side consumer has no cookie jar, so pass a cookie-jar-aware `fetch` - or forward the session cookie yourself via `headers`. Linking proves wallet ownership with a signature over a single-use challenge - no transaction, no gas: ```ts // 1. The terms version this deployment enforces. Linking without it is a 403, so read it // rather than hardcoding it - it changes when the terms do. const { termsVersion } = await client.getLaunchConfig(); // 2. Ask for the challenge, naming the address that will sign - a single-use Sign-In with // Ethereum (EIP-4361) message bound to this site, that address and your session. const challenge = await client.walletChallenge({ publicKey: address }); // 3. Sign it with the wallet (EIP-191 personal_sign; viem shown here). const signature = await wallet.signMessage({ message: challenge.message }); // 4. Complete the link. Wallet-scoped calls now act as this wallet. await client.walletLink({ publicKey: address, signature, acceptedTermsVersion: termsVersion }); ``` The challenge is session-bound and short-lived, and a failed attempt burns it - just request a fresh one. `walletUnlink` is the disconnect path: without it, a wallet switch leaves the old wallet as the session identity until a re-link happens. > **acceptedTermsVersion is required** > > Linking records acceptance of the terms of use, so the field is mandatory - omit it and the link is refused with `403 terms acceptance required`, which gates every wallet-scoped verb. Read the value from `getLaunchConfig().termsVersion` rather than hardcoding it: it changes when the terms do, and every stored acceptance expires with it. The 403 body carries the current `termsVersion` too, so a client can recover from a bump without a redeploy. ### Trading Trading does not go through the platform. The API's own quote and build routes are retired unless a deployment opts into paying chain RPC for each user, so the SDK does not publish them at all - the `@fazedotfun/sdk/chain` entry runs the same quoting and transaction-building against an endpoint you choose, and nothing about it can be switched off under you. ```ts import { createTrader } from '@fazedotfun/sdk/chain'; // A key and an RPC endpoint of your choosing. Nothing here goes through the platform: // it reads the deployment's contract addresses and the coin's row, and everything else - // quoting, building, broadcasting, the receipt - runs against your endpoint. const trader = createTrader({ client, privateKey, rpcUrl: 'https://your-own-rpc' }); // Read-only, safe to poll as the user types. const quote = await trader.quote({ mint, side: 'buy', amountIn: 10_000_000_000_000_000n }); // Build, sign, broadcast and confirm. It picks the venue off the coin's lifecycle, // sends the requests in order (a sell prepends an approve, and the swap waits for it), // and serializes its own sends so one key's nonce sequence stays single-threaded. const result = await trader.trade({ mint, side: 'buy', amountIn: 10_000_000_000_000_000n }); result.status; // 'confirmed' | 'reverted' - a revert is the receipt's answer, not an error result.hashes; // every hash broadcast, in order ``` > **One trader per key** > > A trader serializes its own sends, which is what keeps a single wallet's nonce sequence single-threaded - two overlapping trades from one key race, and the loser comes back as a replacement-underpriced error that reads like an RPC fault. Create one per key, and let it own the ordering rather than driving `buildCurveTrade` yourself. Amounts are `bigint` base units: wei on a buy, coin units on a sell (`trader.coinBalance(mint)` reads the position). `trader.quote` is read-only and cheap - poll it as the user types and treat `trader.trade` as the commit point. If you sign elsewhere - a browser wallet, a remote signer, an HSM - take `buildCurveTrade` instead and broadcast its ordered list yourself, waiting for each receipt before the next. ### The /chain entry, in full `createTrader` is the assembled path; underneath it, the entry exports every piece it is built from, so a consumer that owns its own signing, batching or retry can use them directly. | Field | Value | | --- | --- | | curveConfigFrom(contracts) | getLaunchConfig().curveContracts -> the CurveConfig everything else takes | | createTrader(options) | the assembled path: quote, trade, coinBalance, with sends serialized per key | | quoteCurveTrade(client, config, ref, input) | read-only quote: amount out, price impact, venue | | buildCurveTrade(client, config, ref, input) | the ordered tx-requests to sign and broadcast yourself | | readCurveCoinState(client, config, ref) | the coin's on-curve reserves and progress, read from the chain | | coinBondingCurve(ref, config) | which curve address serves this coin (its generation is fixed at launch) | | coinCurveKind(ref, config) | the coin's curve generation, 'v3' or 'v4' | | applySlippageFloor(expectedOut, slippageBps) | the minimum-out a build should carry | | ProtocolError | thrown for a refusal that is safe to show a user verbatim | > **These take POSITIONAL arguments** > > Unlike every method on the client, the four chain functions take `(client, config, ref, input)` in that order - a viem `PublicClient`, the `CurveConfig` from `curveConfigFrom`, the coin reference, then the operation's input. Passing one options object instead fails inside the call with `Cannot read properties of undefined`, which does not point at the mistake. ```ts import { createPublicClient, http } from 'viem'; import { curveConfigFrom, quoteCurveTrade, buildCurveTrade, applySlippageFloor } from '@fazedotfun/sdk/chain'; const client = createPublicClient({ transport: http('https://your-own-rpc') }); const config = curveConfigFrom((await sdk.getLaunchConfig()).curveContracts); const ref = { mint, chain: launch.chain, providerMeta: launch.providerMeta }; // Positional, in this order - NOT one options object. const quote = await quoteCurveTrade(client, config, ref, { side: 'buy', amountIn: 10_000_000_000_000_000n }); const built = await buildCurveTrade(client, config, ref, { side: 'buy', amountIn: 10_000_000_000_000_000n, minAmountOut: applySlippageFloor(quote.amountOut, 100), // 1% from: address, }); // built.txRequests: sign and broadcast in order, waiting for each receipt before the next. ``` ### Launching a coin `buildLaunch` does the whole preparation in one call: the API predicts the coin's CREATE2 address, writes the registry row, generates the metadata, and builds the create transaction against its own RPC. Your wallet signs and broadcasts; the server signs nothing and never holds a key. It requires a live session with a wallet linked on the target chain, and spends a tight rate-limit bucket. ```ts // The image is required: upload it first and wait until the platform has re-encoded it. const image = await client.uploadAndAwaitReady(logoBytes, 'image/png'); if (image.status !== 'ready') throw new Error(image.failureReason ?? 'image not usable'); const build = await client.buildLaunch({ ticker: 'DEMO', name: 'Demo Coin', imageKey: image.key }); // The coin address is CREATE2-predicted, so it is known before anything is broadcast. const mint = build.launch.mint; // Sign and broadcast build.txRequests in order, waiting for each receipt before the next // (an ERC-20 dev buy prepends approve; a launch-time burn commitment - burnShareBps - appends // the factory's clone deploy, which also seats the clone as the coin's creator on the curve, // so that launch signs TWO and the burn is locked from the block the deploy lands). // The create is build.txRequests[build.launchTxIndex ?? build.txRequests.length - 1]; // report ITS hash - the platform's on-chain verifier owns the lifecycle from here, and // getLaunch(mint) reflects each state change. const launchHash = hashes[build.launchTxIndex ?? build.txRequests.length - 1]; await client.confirmLaunch(mint, { signature: launchHash }); ``` Every launch needs a picture. Pass `imageKey`, the key an upload returned, once that upload reports `ready`. The image must be a PNG, JPEG, WebP or GIF of at most 8 MB and at least 128x128 pixels. The platform re-encodes it, and the result becomes the coin's on-chain logo and its metadata image, which cannot be changed later. A launch without a usable image is refused with a readable error: still processing (wait and retry), not a picture, or could not be processed or too small (upload a different file). Optional request fields cover a custom bonding target, an atomic dev buy that executes inside the launch transaction at the curve floor, a gated launch that stays dormant until the creator's first buy, an irreversible creator fee burn, and website and social links for the coin's metadata. Each is validated server-side against the chain profile's bounds. ### Pagination and data conventions Conventions that hold across the whole read surface: - **Cursors are opaque and sort-bound.** Keyset-paginated lists (`listCoins`, `listLaunches`, `getCoinTraders`) return a `nextCursor` you pass back verbatim. Never construct one, and never reuse one across a re-sort - that is a 400. - **Tapes page backwards by time.** Trade feeds take `before` = the last row's `timeMs`. Candles come oldest-first, so a chart appends and pages older with `before` = the first candle's `bucketStartMs`. - **Amounts are base-unit decimal strings.** Convert with `BigInt`, never floating point. - **USD fields are nullable.** A null means the platform itself has no fresh rate - render a dash, never $0. Convert only with `getNativeUsdRates` so your figures agree with the rows the platform computed from exactly that rate. - **Figures are ingest-era truth.** Trader stats and realized PnL are folded from the trades the indexer has seen, so they understate rather than invent - see each method's notes in the reference. - **Bad input is refused, not answered.** A wallet argument that is not an address is a 400 rather than an empty portfolio, an unknown mint is a 404 on every per-coin read, and a patch naming a field that does not exist is a 400 rather than a 200 that changed nothing. - **Usernames** are 3-14 characters of `[A-Za-z0-9_]`, stored lowercase and unique. `checkHandle` is the pre-flight for both validity and availability - its `reason` distinguishes `invalid` from `reserved` and `taken` - but it is advisory: the uniqueness index at save time is the arbiter, so still handle `409 username taken`. ### Errors and rate limits The SDK throws two typed errors. `ApiError` covers any non-ok response and carries the HTTP `status` plus `apiError`, the API's stable error identifier - branch on those, never on message text. On a 400 from schema validation it also carries `details`, an array of `{field, reason}` naming which field was refused and why, so you can point at the offending input instead of re-reading the body yourself. `RateLimitError` is thrown on 429 specifically and carries the server's own schedule: `retryAfterMs`, `limit`, `remaining`, and `resetAt`. ```ts import { ApiError, RateLimitError } from '@fazedotfun/sdk'; try { await client.updateProfile({ username: 'robin' }); } catch (error) { if (error instanceof RateLimitError) { // Resume on the server's schedule, never a guess. await new Promise((resolve) => setTimeout(resolve, error.retryAfterMs)); } else if (error instanceof ApiError && error.status === 409) { // error.apiError carries the API's stable identifier - branch on it, not message text. } else if (error instanceof ApiError && error.status === 400) { // A schema refusal names the field: [{ field: 'username', reason: 'letters, digits and underscore only' }] for (const { field, reason } of error.details ?? []) console.error(field, reason); } } ``` Public reads share a lenient bucket and wallet-scoped verbs a tighter one, with `buildLaunch` the tightest of all. A well-behaved integration backs off on `retryAfterMs` and caps its polling loops. Note that none of the rate limits touch trading: quotes, builds, balances and receipts run on your own RPC, so the only limit they meet is your endpoint's. ### Versioning and stability > **Pin an exact version** > > The SDK is 0.x and the API it wraps is not yet a frozen contract - pin an exact version and expect additive change between releases, with the occasional breaking one called out in the package README's Upgrading section (0.6.0 made the launch image required). Read it before bumping. The method reference below is generated from the published package's source, so it cannot drift from the shipped client. For a trust-minimized integration with no dependency on our servers at all, the on-chain contracts documented on the [protocol documentation](/docs) page remain the stable interface. ## Method reference ### Market and launch reads ##### health ```ts health(): Promise ``` Probe the API's health. ##### listCoins ```ts listCoins(query?: CoinListQuery): Promise ``` The coin discovery list: the sorted, filtered coin feed. Every field of `query` is optional; an absent one is OMITTED from the wire (the API refuses a present-but-empty param), `states`/`keywords`/`links` serialize as CSV, and `limit` is clamped into the API's accepted range. Keyset-paginated: pass `nextCursor` back verbatim as `query.cursor`. The cursor is OPAQUE and bound to `(sort, window, dir)` - never build one, and never reuse one across a re-sort, which is a 400. USD row fields are nullable when the rate feed is down: show "-", not $0. ##### getCoinSummary ```ts getCoinSummary(mint: string): Promise ``` One coin's registry record plus its metrics snapshot in a single read, so a coin page renders in one trip. ##### getCoinMetrics ```ts getCoinMetrics(mint: string): Promise ``` A coin's market-metrics snapshot: price and valuation, the m5/h1/h6/h24 windows, holder stats, fees, ATH, and the graduation record once migrated. Freshness is the indexer's rollup cadence - `computedAtMs` says how fresh. ##### getCoinHolders ```ts getCoinHolders(mint: string, parameters?: { limit?: number; cursor?: string; }): Promise ``` A coin's holder surface: live holder count plus top holders by balance. Venue addresses (curve, pool, burn) are excluded from the ranking and ride `venues` as labeled rows instead. ##### getCoinTraders ```ts getCoinTraders(mint: string, query?: CoinTradersQuery): Promise ``` A coin's traders, ranked by `volume` (default), `realized-pnl`, `last-trade` or `buys`. Keyset-paginated by an OPAQUE cursor bound to (sort, dir), like `listCoins`. INGEST-ERA TRUTH: every figure is folded from the trades the indexer has SEEN, so a coin whose ingest began mid-life has traders whose earlier history is not counted. `realizedPnlNative` degrades further - a sell of tokens the ledger never saw bought has no basis to relieve, so it is skipped rather than booked as a gain, and that trader's realized figure UNDERSTATES what they made. `volume` needs no basis and stays honest, which is why it is the default sort. ##### getCoinTrades ```ts getCoinTrades(mint: string, parameters?: { limit?: number; before?: number; }): Promise ``` A coin's trade tape, newest first. `before` (epoch ms) pages older trades; the next cursor is the last row's `timeMs`. ##### getCoinBurns ```ts getCoinBurns(mint: string, parameters?: { limit?: number; before?: number; }): Promise ``` A coin's fee-burn history, newest first: one row per firing of the creator's fee-burn conveyor (fees spent, coin sent to the dead address, who cranked it and their bounty, the tx). Empty for a coin without a burn commitment. `before` (block number) pages older burns; the next cursor is the last row's `blockRef`. The tip page also carries `graduationBurn` - the one-off token-tail burn at graduation - which is null on cursored pages and on a coin still on the curve. ##### getCandles ```ts getCandles(mint: string, parameters?: { timeframe?: CandleTimeframeRequest; limit?: number; before?: number; }): Promise ``` A coin's candle series. `timeframe` is auto/1m/1h/4h/1d (`auto` picks a readable width from the coin's candle counts); the response's `timeframe` is always the CONCRETE width. Candles come oldest-first, so a chart appends and the next `before` is `candles[0].bucketStartMs`. ##### getActivity ```ts getActivity(query?: ActivityQuery): Promise ``` The global recent-trades feed across every coin the deployment serves, newest first. Paged like the tapes (`before` = the last row's `timeMs`), and `chain` narrows the scope like `listCoins`. A TIP, NOT AN ARCHIVE: it reaches back 24h and reports that edge as `windowStartMs`, so a walk ENDS there by design rather than by running out of data - an empty page at the edge is not an error. For depth on one coin use `getCoinTrades`, which is indexed for it. ##### getCoinSentiment ```ts getCoinSentiment(mint: string): Promise ``` A coin's community sentiment: the rocket/shit tallies plus THIS caller's own standing. Per-caller by construction, so never cache it across users. A disconnected caller gets the tallies with `canVote: false` and `myVote: null` - not an error, and not a reason to hide the counts. ##### getPoolFee ```ts getPoolFee(mint: string): Promise ``` A graduated coin's pool base fee, for a post-graduation status row. `baseFeeBps` is null while the coin has no pool yet (on the curve or mid-migration) - and also when the chain read failed, which the platform degrades to rather than failing an otherwise usable panel. It is a DISPLAY figure: what a trade actually pays is quoted. ##### getLaunch ```ts getLaunch(mint: string): Promise ``` One launch by its on-chain mint address. ##### listLaunches ```ts listLaunches(parameters?: { cursor?: string; limit?: number; sort?: LaunchSort; state?: LaunchLifecycleState; world?: string; q?: string; }): Promise ``` List launches, keyset-paginated by `cursor`. `sort` is `recency` (default) or `momentum`, and the cursor is sort-specific. `world` narrows to coins on that named world's home chain; an unknown world is a 404, because the server never widens past the chain-homing rail. - q - Substring search over coin name and ticker; server-bounded to 32 chars. ##### getLaunchConfig ```ts getLaunchConfig(): Promise ``` The static launch config: the enabled chains, the default launch chain, the live owner-tunable fee knobs, and `curveContracts` - the deployment's effective contract addresses. It changes only on a redeploy or a knob change, so cache it aggressively. `curveContracts` is what this package's `/chain` builders take (via `curveConfigFrom`). Read the addresses from here rather than hardcoding them: a deployment can move a contract, and a stale address still builds a perfectly valid transaction - aimed at the wrong one. ##### getPlacements ```ts getPlacements(): Promise ``` Every placed coin with the island shop it stands at, rank-ascending (1 = closest to the plaza). Unplaced coins are absent; find them through `listCoins`. ##### getNativeUsdRates ```ts getNativeUsdRates(): Promise ``` The gas-token/USD rates the PLATFORM is using - one per native symbol the deployment serves. Convert NATIVE figures with these and no other oracle: a native coin's USD fields were computed from exactly this rate, so another source drifts against the rows on the same screen. A null `priceUsd` means the platform itself has no fresh rate - hide USD rather than substituting a zero. These rates do NOT apply to a coin raised in a quote asset (its `quoteAsset` is set): that coin's figures are in the quote asset's units and convert at `quoteAsset.unitPriceUsd`, never at the gas token's rate. ### Wallet reads ##### getWalletHoldings ```ts getWalletHoldings(wallet: string): Promise ``` Every launchpad coin a wallet holds (balance > 0), largest worth first. Public by wallet - it is all on-chain. Each row's `valueNative` is in ITS coin's quote asset (`quoteAsset`; null = native): convert each row before summing a portfolio. ##### getWalletPnl ```ts getWalletPnl(wallet: string): Promise ``` A wallet's realized and unrealized PnL across every coin it has ever traded, held and exited alike. `totalPnlPct` is null when nothing was spent - a zero basis has no percent. Each coin's figures are in ITS quote asset (`quoteAsset`; null = native), so a total across coins converts each row first. ##### getWalletTrades ```ts getWalletTrades(wallet: string, query?: WalletTradesQuery): Promise ``` Every trade a wallet has made, newest first. `mint` narrows to one coin; page with the last row's `timeMs` as `before`. ##### getWalletTradingStats ```ts getWalletTradingStats(wallet: string): Promise ``` A wallet's lifetime trading aggregates plus the 24h/7d/30d/all windows in one read (a window switch must not cost a round trip). Public by wallet, like the holdings and PnL reads. TWO HONESTY LEVELS in one payload, worth carrying into whatever you render. The per-coin aggregates (counts, volumes, realized PnL, the win rate) fold rows that are never pruned, so they are lifetime-exact. Anything folded from the trade TAPE - fees, average and largest trade, every window - is bounded by the tape's retention, so a heavy wallet's earliest trades on a busy coin may simply be gone. Both cover BONDING-CURVE trading only. ##### getWalletPnlCurve ```ts getWalletPnlCurve(wallet: string): Promise ``` A wallet's cumulative realized-PnL curve, ascending and downsampled (the first and last real trades always survive). Its own read because the replay is the expensive one. `complete: false` means retention pruned part of the tape: the difference between the replay and the stored lifetime truth is folded into every point as `baselineRealizedNative`, so the LAST point is always right and the early ones are approximate. Say so rather than drawing an exact-looking early curve. ##### getCreatorStats ```ts getCreatorStats(wallet: string): Promise ``` A wallet's creator-side aggregates: what it launched, how much graduated, fees collected, reach. A wallet that never launched reads back the zeroed shape, not a 404. Deliberately carries no claimable-now figure - that is a point-in-time chain read, and serving it under a cache TTL would show a stale claim amount. ### Launching ##### buildLaunch ```ts buildLaunch(request: LaunchBuildRequest): Promise ``` Build a coin launch - the ONE transaction the platform still builds, because it is the one a client cannot build for itself: the API predicts the coin's CREATE2 address before the transaction exists and writes the registry row keyed on it. The wallet signs AND broadcasts. Report the hash with `confirmLaunch`, then read the receipt from your own RPC. Requires a live session with the target chain's linked wallet, and a tight rate-limit bucket. `imageKey` is REQUIRED - a launch without a picture is refused. It is a sha256 content-address, NOT a URL: get one from `uploadAndAwaitReady` (or `uploadAsset` plus your own poll) and check the handle's `status` is 'ready' before building. The image must be a PNG, JPEG, WebP or GIF of at most 8 MB and at least 128x128 pixels; its re-encoded derivative becomes the coin's on-chain logo and metadata image, which can never be changed later. Image refusals each carry a readable `error`: not found (400 - pass the key an upload returned), still processing (409 - wait and retry), not a picture (415), could not be processed or too small (422 - upload a DIFFERENT file; a failed upload stays failed for those exact bytes). ##### confirmLaunch ```ts confirmLaunch(mint: string, request: LaunchConfirmRequest): Promise ``` Record a broadcast launch's transaction hash. It does not itself flip lifecycle state - the API's on-chain verifier owns that. Requires the caller to own the launch. ##### editCoinDetails ```ts editCoinDetails(mint: string, request: CoinDetailsEditRequest): Promise ``` Replace a coin's description + links (the universal edit pathway). REPLACE semantics: the request is the full editable set, and an omitted or empty field CLEARS that detail. Image, name and ticker are launch-time identity and are not editable. Gated on being the coin's RESOLVED creator - the launch creator unless an accepted creator handoff moved the role - with a 403 whose `error` is the stable identifier `coin creator required` otherwise. The returned record carries the coin's NEW `metadataUri`; the old URI keeps serving the old JSON. ### Watchlist and sentiment ##### getWatchlist ```ts getWatchlist(): Promise ``` The caller's watchlist - their starred coins, each joined with enough market context to render a row without a second read, newest star first. Requires a linked wallet (the list belongs to the WALLET, not the session); without one the API answers 403. ##### watchCoin ```ts watchCoin(mint: string): Promise ``` Star a coin. Idempotent, and returns the coin's fresh PUBLIC watcher count - render that rather than a local increment, since the caller may not even qualify for the count. ##### unwatchCoin ```ts unwatchCoin(mint: string): Promise ``` Unstar a coin. Idempotent, and works on a coin that has left the registry - otherwise the star would be unremovable. ##### setCoinSentiment ```ts setCoinSentiment(mint: string, vote: SentimentVote | null): Promise ``` Cast, change, or clear the caller's vote (`vote: null` un-votes - re-clicking the face you picked). Returns the fresh view, so the surface renders the SERVER's tallies rather than a local increment. Gated on having BOUGHT the coin: a wallet that has bought less than `minBuyUsd` of it is refused with a 403 whose `error` is the stable identifier `sentiment buy required`. Read `canVote` first and disable the affordance - the view carries both it and the threshold, so the gate can be stated before anything is refused. ### Session and profile ##### walletChallenge ```ts walletChallenge(request?: WalletChallengeRequest): Promise ``` Start linking a wallet to the caller's session: returns the exact single-use, short-lived challenge message the wallet must sign. Pass `publicKey` (the address that will sign) to get an EIP-4361 Sign-In with Ethereum message bound to the site and that address. Requires a live session - the API answers 401 otherwise. ##### walletLink ```ts walletLink(request: WalletLinkRequest): Promise ``` Complete the link with the wallet's address and its EIP-191 `personal_sign` signature over the challenge. ##### walletUnlink ```ts walletUnlink(request?: WalletUnlinkRequest): Promise ``` Clear the session's wallet link - the disconnect path. Without it a wallet switch leaves the OLD wallet as the session identity until some lazy re-link fires. ##### walletModeration ```ts walletModeration(): Promise ``` The caller's own moderation standing, combined across their linked wallets. Check it before offering a trade you build YOURSELF. Building client-side means there is no server build left to refuse a banned wallet outside the world, so this is the check that used to happen implicitly - the chain will happily execute a banned wallet's swap. ##### getProfile ```ts getProfile(wallet: string): Promise ``` Any wallet's PUBLIC profile - handle and avatar. An unregistered wallet reads back empty, never an error. `avatarUrl` is the verified X account's picture, and null whenever X is not connected - draw your own default then. ##### getMyProfile ```ts getMyProfile(): Promise ``` The caller's own profile. Requires a live session with a linked wallet; fields are null until set. ##### updateProfile ```ts updateProfile(request: ProfileUpdateRequest): Promise ``` Update the caller's own profile: set or change the handle, bio and stats preference. Custom avatars are no longer supported - the picture follows the verified X account - so a non-null `avatarKey` rejects with a 400 ApiError and null is ignored. A taken handle rejects with a 409 ApiError. ##### checkHandle ```ts checkHandle(handle: string): Promise ``` Is this handle free? Public and anonymous, safe at typing cadence. ADVISORY ONLY - the save-time unique index is the arbiter, so `updateProfile` can still 409 on a handle this said was available. `reason` says WHY a refused one is refused (invalid / reserved / taken). ### Media uploads ##### uploadAsset ```ts uploadAsset(body: AssetBody, contentType: string): Promise ``` Upload media bytes and get back a HANDLE, not a URL. The platform never serves user-supplied bytes: an upload lands private and a worker re-encodes it, so `url` is null at this moment and `status` is what matters. Usually 'pending' - but 'ready' immediately when identical bytes were derived before, since uploads are content-addressed and dedupe. This is the ONLY way to obtain the `imageKey` that `buildLaunch` takes: it is a sha256 content-address the API mints in response to an upload, so an arbitrary hash is refused. Session + linked wallet required. Oversized bytes reject as an ordinary ApiError with `status` 413. ##### getMedia ```ts getMedia(key: string): Promise ``` Derivation status for an `uploadAsset` handle. Poll until `status` leaves 'pending'/'processing'; 'ready' carries the derived `url` (and `posterUrl` for video). ##### uploadAndAwaitReady ```ts uploadAndAwaitReady(body: AssetBody, contentType: string, options?: AwaitReadyOptions): Promise ``` Upload and wait until the platform has finished deriving, returning a handle that is 'ready' (or 'failed'). Bundled because every consumer of `uploadAsset` needs this loop before it can use the key for anything, and hand-rolling it means re-deriving the poll interval, the timeout, and the fact that 'failed' is terminal. An upload that dedupes to an already-derived asset returns without polling at all. Rejects with an ApiError-free plain Error on timeout; the handle is still valid, so a caller that would rather keep waiting can go back to `getMedia`. An animated image can take longer than the default wait to derive - pass a larger `timeoutMs`. A 'failed' handle resolves rather than throws: check `status` (and `failureReason`) before using the key, since identical bytes never derive differently on a retry. ### World reads ##### getWorldProps ```ts getWorldProps(): Promise ``` Every runtime-placed prop for the deployment's world - what a renderer draws instead of hardcoded scenery. ##### getWorldPlayers ```ts getWorldPlayers(world?: string): Promise ``` Anonymous player-dot positions for the world map. Server-cached, so seconds-fresh. ##### searchWorldPlayers ```ts searchWorldPlayers(q: string, world?: string): Promise ``` Search online players by display-name substring. ##### getBazaar ```ts getBazaar(): Promise ``` The bazaar stall allocation: every slot with the coin currently placed at it, or vacant. ##### getRing ```ts getRing(): Promise ``` The first-ring showcase: every pedestal with the graduated coin currently showcased at it, or reserved-empty. ##### getAdBoards ```ts getAdBoards(world?: string): Promise ``` The world's ad layer: every board plus whatever is showing on each right now. A placement's `endsAtMs` is the render layer's own refresh deadline - a board whose placement lapsed keeps showing until the next read, so poll at least that often on a board that matters. ##### getAdPulse ```ts getAdPulse(world?: string): Promise ``` Venue reach: 24h volume, trades and traders, plus live players and board occupancy. Coarse and server-cached. ### Support Integration questions, bug reports, package access, and partnership requests go to hello@faze.fun; when referencing Faze data, attribute it to the platform and link back where practical. # For developers Everything a trading bot needs to buy and sell Faze coins in both phases of a coin's life. No API key, no session, no allow-list: a plain wallet, the public reads and any RPC for the chain. ## For developers ### Start here A coin lives in two phases. **Pre-bond** it sells on the bonding curve, a contract you call directly. **Post-bond** its raise and reserved supply sit in a Uniswap v4 pool whose position is burned, and it trades through the Universal Router like any v4 pool - with one fee hook you must respect. This page is the shortest path through both; the full protocol reference is [/docs](/docs) and the client library is [/sdk](/sdk). - **Trading is open and non-custodial.** The platform never signs, relays or gates a trade. Your wallet calls the curve pre-bond and the router post-bond; the API is discovery and metadata only, and even that has an on-chain substitute (the event feed below). - **Every amount is in the coin's quote asset, in base units.** On a native-quoted coin that is USDC x 10^18 - the native gas token here is USDC, so a 6500e18 bonding target is a $6,500 raise. A coin quoted in an approved ERC-20 uses that token's own decimals. - **Dispatch on the coin, never on the config.** A coin trades on the curve that launched it forever; a graduated pool bakes its hook into its PoolKey. Take `providerMeta.curveAddress` and `providerMeta.hookAddress` from the coin's own row. `curveContracts.bondingCurveV4` names where NEW launches land, which after the next release will differ from where existing coins live. > **Test against production with small amounts** > > Staging runs the same code behind a privacy gate and answers 401 to every route without a gate cookie; ask us for access if you want a testnet lane. Otherwise a $1 buy on a live coin is a real end-to-end test, and a fresh graduation pool holds one raise's worth of liquidity, so anything larger just buys price impact. ### Chain access | Field | Value | | --- | --- | | Network | Arc | | Chain ID | 5042 | | CAIP-2 | eip155:5042 | | Native token | USDC (18 decimals on the native interface) | | Public RPC | https://rpc.mainnet.arc.io | | Explorer | https://explorer.arc.io | | API base | https://faze.fun/api/v1 | | OpenAPI | [https://faze.fun/openapi.json](https://faze.fun/openapi.json) | Bring your own RPC: every quote is an `eth_call` against a view function, so any node for chain 5042 works. The public endpoint rate-limits and caps an eth_getLogs range; use a keyed provider for anything that polls or indexes. Finality is instant: a mined receipt is final, no confirmation depth needed. Block timestamps are non-decreasing at one-second grain, which is what the hook's 2-second graduation surcharge keys on. The PoolManager on Arc is the canonical Uniswap deployment, shared with every other v4 pool on the chain: filter `Swap` logs by PoolId, never scan the manager - a chain-wide topic scan blows the RPC's result cap. ### Addresses Take these from `GET /launchpad/config` -> `curveContracts` at runtime. The table exists so you can recognize what you read back, not so you can hardcode it - a deployment can move a contract, and a stale address builds a perfectly valid transaction aimed at the wrong one. The PoolManager is not in the served config today; it is listed here from the committed chain profile. | Field | Value | | --- | --- | | Curve release | 9.0 | | BondingCurveV4 (pre-bond venue) | [0x6A62919ccbf0c19e0C4e084F986b582b4492dDA4](https://explorer.arc.io/address/0x6A62919ccbf0c19e0C4e084F986b582b4492dDA4) | | LaunchpadHook (pool fee hook) | [0x47e7936ae9891e61C5123db720593c05dE7120cc](https://explorer.arc.io/address/0x47e7936ae9891e61C5123db720593c05dE7120cc) | | UniswapV4Migrator | [0x7c8dE42426A058B778DCe8530537cd62eF0178C4](https://explorer.arc.io/address/0x7c8dE42426A058B778DCe8530537cd62eF0178C4) | | Universal Router (post-bond venue) | [0x4fcA4a51Ab4F23A7447b3284fBd7D73289A89Fb1](https://explorer.arc.io/address/0x4fcA4a51Ab4F23A7447b3284fBd7D73289A89Fb1) | | V4Quoter | [0x8Dc178eFB8111BB0973Dd9d722ebeFF267c98F94](https://explorer.arc.io/address/0x8Dc178eFB8111BB0973Dd9d722ebeFF267c98F94) | | StateView | [0xF3334192D15450CdD385c8B70e03f9A6bD9E673b](https://explorer.arc.io/address/0xF3334192D15450CdD385c8B70e03f9A6bD9E673b) | | Permit2 | [0x000000000022D473030F116dDEE9F6B43aC78BA3](https://explorer.arc.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3) | | Uniswap v4 PoolManager (Swap logs) | [0x8366a39CC670B4001A1121B8F6A443A643e40951](https://explorer.arc.io/address/0x8366a39CC670B4001A1121B8F6A443A643e40951) | | Uniswap v4 PositionManager | [0x6049c9a0e26405C0985f9E3685C87d0aE917f82B](https://explorer.arc.io/address/0x6049c9a0e26405C0985f9E3685C87d0aE917f82B) | ### Live dials The switches and dials an operator can move. Read live from the deployment's config when it resolves; where it does not, the row names the contract read that answers instead. | Field | Value | | --- | --- | | Curve trade fee | read feeBps() on the curve | | Sniper-tax window | read sniperTaxWindow() on the curve | | Raise band | read minBondingTarget() and maxBondingTarget() on the curve | | Migration fee | read feeBps() on the curve | | Graduation surcharge | read graduationSurchargeEnabled() on the hook | | Post-graduation sell window | read sellWindowEnabled() on the curve | | Post-graduation buy window | read buyWindowEnabled() on the curve | | Quote assets | read quoteAssets on /launchpad/config | | Pool base fee | per coin - providerMeta.poolFeeBps, chosen at launch from the menu | ## Discovery ### Public reads Base path `https://faze.fun/api/v1`. All GETs, anonymous, JSON, amounts as base-unit decimal strings (convert with `BigInt`, never floating point). The full surface is [openapi.json](https://faze.fun/openapi.json). | Field | Value | | --- | --- | | GET /launchpad/config | curveContracts, quoteAssets, sniperTaxWindowSeconds, raiseLadder | | GET /launchpad/launches | keyset list; state=, sort=recency\|momentum, search=, cursor= | | GET /launchpad/launches/:mint | one coin: lifecycleState, bondingTarget, curveProgress, providerMeta | | GET /launchpad/tokenlist.json | Uniswap-standard list: curve + graduated coins, routing extensions | | GET /launchpad/tokenlist-graduated.json | graduated only; every entry carries the full poolKey | | GET /launchpad/coins/:mint/trades | the tape (also candles, holders, metrics, traders) | | GET /launchpad/wallets/:wallet/holdings | a wallet's positions (also trades, pnl) | The launch record's `providerMeta` is the per-coin routing block: `curveAddress`, `curveRelease`, `hookAddress`, `quoteToken` (null = native), `poolFeeBps` and, once graduated, `graduatedPoolId`. Note that `graduatedPoolAddress` is the HOOK address, not a pool - a v4 pool has no address. The token lists carry the same facts under `extensions` (`venue`, `curve`, `curveRelease`, `quoteToken` as the zero address for native, `hook`, `poolKey`). They refresh every few minutes, drop coins with no trade in 7 days, and are the cheapest polling surface for "what is tradable right now". ### Lifecycle to venue `lifecycleState` on the launch record (the list filter is `state=`) decides the venue: | Field | Value | | --- | --- | | curve-trading, dormant | curve - buy and sell on BondingCurveV4 | | awaiting-dev-buy | curve, closed - only the creator's reserved first buy is accepted | | graduating | none - wait one block and re-read | | graduated | pool - swap through the Universal Router | | abandoned | curve, SELL ONLY - buy reverts CoinAbandoned | | launched, launch-failed | not tradable | The buy that empties the curve graduates the coin INSIDE the same transaction: from the next block the venue is the pool. Re-resolve on every `CurveComplete` revert, on every `Completed` / `Graduated` log, or by polling `lifecycleState`. ## Pre-bond ### Trading on the curve ```solidity struct BuyQuote { uint256 tokensOut; uint256 ethUsed; uint256 tradeFee; bool completes; } function getCoin(address token) external view returns (Coin memory); function quoteBuyFor(address token, address buyer, uint256 ethGross) external view returns (BuyQuote memory); function quoteSell(address token, uint256 tokensIn) external view returns (uint256 ethOut, uint256 ethGross, uint256 fee); function buy(address token, uint256 quoteIn, uint256 minTokensOut) external payable returns (uint256 tokensOut); function sell(address token, uint256 tokensIn, uint256 minEthOut) external returns (uint256 ethOut); ``` - **Read the coin.** `getCoin(token)` on the coin's curve. `active` false is the dev-buy gate, `complete` true means the sale is over, `abandoned` true means sell-only. Spot price is `(ethOffset + ethReserve) / (TOKEN_OFFSET + tokenReserve)` in quote per base unit. - **Quote the buy for the wallet that signs.** `quoteBuyFor(token, buyer, quoteGross)` returns a STRUCT (it ABI-encodes as a 4-tuple). While a coin's sniper-tax window is open, a buy from a wallet the launch did not exempt pays a fee that starts at 99% and decays linearly to the base fee - so a quote for the zero address is the worst case, not yours. `ethUsed < quoteGross` only when this buy completes the sale; the remainder is refunded in-transaction. - **Buy.** `buy(token, quoteIn, minTokensOut)` with `msg.value == quoteIn` exactly on a native-quoted coin (approve the quote asset for the curve and send no value on an ERC-20-quoted one). One transaction, no approval. - **Sell.** `quoteSell(token, tokensIn)` returns the net out, then `ERC20.approve(curve, tokensIn)` for the exact amount and `sell(token, tokensIn, minEthOut)`. Proceeds arrive in the coin's quote asset. Sells never pay the sniper tax. - **Reverts to map:** `SlippageExceeded`, `CurveComplete` (you raced the completing buy - flip to the pool), `CoinAbandoned`, `CurveNotActive` (dev-buy gate), `UnknownCoin` (wrong curve), `AmountTooSmall`, `NativeValueMismatch`. The curve is a virtual-reserve constant product: 7/9 of the supply sells on the curve, 2/9 is reserved for the pool, and the coin opens at 18/49 of the raise as fully-diluted value and closes at 4.5x it. The full derivation, the `Coin` struct and the `LaunchTerms` tuple are in [the protocol docs](/docs#reading-state). ## Post-bond ### Trading in the pool Every graduated coin lands in a hooked Uniswap v4 pool. A v4 pool has no address - it is a PoolKey entry in the PoolManager singleton - and every Faze pool has the same committed shape: ```solidity PoolKey { currency0: currency1: fee: 0 // the LP fee is ZERO - the whole fee lives in the hook tickSpacing: 200 hooks: } // PoolId = keccak256(abi.encode(key)) - check it against providerMeta.graduatedPoolId ``` - **Orientation is a per-coin fact.** Uniswap sorts the pair by address. A native-quoted coin always has native (`address(0)`) as `currency0`; an ERC-20-quoted coin can land on either side. Take the key verbatim from `tokenlist-graduated.json` -> `extensions.poolKey` and check its hash against `providerMeta.graduatedPoolId`. - **Quote through V4Quoter** (`quoteExactInputSingle` with the key, `zeroForOne` true for a buy on a native-quoted coin, `hookData: 0x`). The quoter executes the hook, so the result already nets the fee. Never price off `slot0` or reserves alone: the LP fee is 0 and the whole fee lives in the hook. - **Buy** (native-quoted): `UniversalRouter.execute(commands, inputs, deadline)` with command `V4_SWAP (0x10)` and actions `SWAP_EXACT_IN_SINGLE (0x06)`, `SETTLE_ALL (0x0c)`, `TAKE_ALL (0x0f)`; the quote rides as `msg.value`. One transaction, no approvals. - **The swap parameters differ by router build.** The newer Universal Router build decodes `SWAP_EXACT_IN_SINGLE` as six fields - `(poolKey, zeroForOne, amountIn, amountOutMinimum, minHopPriceX36, hookData)` - and the older one (the `v4-periphery` 1.0.3 interface on npm) as five, without `minHopPriceX36`. Which build a chain runs is a property of its deployment: only the newer one's bytecode contains the selector `0x4713c18b`. The wrong shape still works on a native-quoted pool and reverts with empty data on every pool whose `currency0` is a real address. One layout decodes on both: six fields with `minHopPriceX36 = 0x140` and empty `hookData`. Simulate your calldata against the deployed router, on an ERC-20-quoted pool, before you ship it. - **Sell:** two approvals, then the same execute. `ERC20.approve(permit2, amount)`, then `Permit2.approve(coin, universalRouter, amount, expiry)` with expiry = your swap deadline, then the swap. Broadcast in order and wait for each receipt - a swap mined before its approvals reverts. The same two legs apply to the QUOTE asset when buying an ERC-20-quoted coin. - **Settlement must cover swap plus fee.** The hook takes the entire fee via beforeSwap/afterSwap return deltas, in the quote asset only. Open-delta settlement (`SETTLE_ALL` / `TAKE_ALL`) handles it; a hand-rolled `unlock` must settle the full owed amount, not the pool-math amount. #### The fee, live ```solidity function quoteFees(PoolId poolId) external view returns (uint16 buyFeeBps, uint16 sellFeeBps, uint64 buyWindowEndsAt, uint64 sellWindowEndsAt); function currentBuyFeeBps(PoolId poolId) external view returns (uint16); function currentSellFeeBps(PoolId poolId) external view returns (uint16); ``` The rate is per pool, differs per side and moves with time: the pool's base fee, an optional decaying sell window and buy window the creator opted into at launch, and a flat 20% surcharge on both sides for the first 2 seconds after graduation while the operator switch is on. Do not compute any of it yourself - `quoteFees(poolId)` is one call, or quote through V4Quoter, which executes the hook and needs none of this. A bot that sells into the graduation block pays the surcharge; waiting 2 seconds pays the base fee. Spot for display: `StateView.getSlot0(poolId)`. With the quote as `currency0` the sqrtPrice reads coin-per-quote, so invert for a quote-per-coin price. The graduation position itself is minted through Uniswap's PositionManager to the dead address and can never be pulled - [the protocol docs](/docs#locked-liquidity) carry the reads that prove it. ## Shortcuts and traps ### The SDK does all of this [@fazedotfun/sdk](https://www.npmjs.com/package/@fazedotfun/sdk) ships the exact quote and build path the Faze web app runs, against an RPC you choose. `viem` is a peer dependency. ```ts import { createClient } from '@fazedotfun/sdk'; import { createTrader } from '@fazedotfun/sdk/chain'; const client = createClient({ baseUrl: 'https://faze.fun/api/v1' }); const trader = createTrader({ client, privateKey: process.env.PRIVATE_KEY, rpcUrl: process.env.RPC_URL, // your own endpoint - nothing here goes through the platform }); // 1 USDC in - on a native-quoted coin. A coin with a providerMeta.quoteToken is bought in THAT asset's base units. // The trader picks curve vs pool off the coin's lifecycle and quotes for its own address. const quote = await trader.quote({ mint, side: 'buy', amountIn: 1_000_000_000_000_000_000n }); const result = await trader.trade({ mint, side: 'buy', amountIn: 1_000_000_000_000_000_000n, slippageBps: 100 }); result.status; // 'confirmed' | 'reverted' - what the receipt said result.hashes; // every hash broadcast, in order; the last one is the trade ``` If the bot signs elsewhere (a per-user key store, an HSM), `quoteCurveTrade` / `buildCurveTrade` from the same `/chain` entry return an ORDERED `txRequests` list (approve legs first) for your signer to broadcast one receipt at a time. `venue` is `'curve'` pre-bond and `'dex'` post-bond. The SDK is the recommended path because it encodes every rule on this page - per-coin dispatch, quote-asset handling, exact approvals, re-quote at build, sniper-aware quoting for the signing wallet - so none can be skipped. Reference: [/sdk](/sdk). ### ABIs The ABI exports of the three platform contracts, produced from the source of the release this deployment serves (9.0). The Uniswap contracts (Universal Router, V4Quoter, StateView, Permit2, PoolManager, PositionManager) are the canonical Uniswap v4 builds; take their ABIs from Uniswap's `universal-router`, `v4-periphery`, `permit2` and `v4-core` repositories. | Field | Value | | --- | --- | | BondingCurveV4 | [https://faze.fun/abi/BondingCurveV4.json](/abi/BondingCurveV4.json) | | LaunchpadHook | [https://faze.fun/abi/LaunchpadHook.json](/abi/LaunchpadHook.json) | | UniswapV4Migrator | [https://faze.fun/abi/UniswapV4Migrator.json](/abi/UniswapV4Migrator.json) | ### Indexing without the API ```solidity // BondingCurveV4 - one eth_getLogs filter on the coin's curve address event Launched(address indexed token, address indexed creator, LaunchTerms terms, string name, string symbol, string tokenURI); event Bought(address indexed token, address indexed buyer, uint256 ethGross, uint256 fee, uint256 tokensOut, uint256 ethReserve, uint256 tokenReserve); event Sold(address indexed token, address indexed seller, uint256 tokensIn, uint256 fee, uint256 ethOut, uint256 ethReserve, uint256 tokenReserve); event Completed(address indexed token, address indexed buyer, uint256 finalRaise); event Graduated(address indexed token, address indexed pool, address migrator, address caller, uint256 ethMigrated, uint256 migrationFee, uint256 liquidity); event Abandoned(address indexed token, address indexed by, uint256 raise); // LaunchpadHook - the coin -> pool edge; PoolManager.Swap filtered by PoolId is the post-bond tape event PoolRegistered(PoolId indexed poolId, address indexed asset, address indexed creator, uint16 feeBps, uint16 launchSellFeeBps, uint32 launchSellFeeDecay, uint16 launchBuyFeeBps, uint32 launchBuyFeeDecay, uint16 compoundCommitBps, address quote); ``` - `Launched` carries its terms as ONE struct member that is part of the topic hash - mirror the `LaunchTerms` tuple field-for-field (it is transcribed in [the protocol docs](/docs#events)). A coin on an earlier curve address logs its own shape; match on the topic hash per curve address. - `Bought` / `Sold` each carry the post-trade reserves, so the price after every trade is in the log itself. - `Graduated.pool` is the hook address, not a pool. The pool handle is the PoolId; `PoolRegistered` on the hook is the authoritative coin -> pool edge. ### Things that bite - **Amounts are quote base units.** Dollars x 10^18 on every native-quoted coin: a "0.01 ETH" default is a one-cent trade here. - **Quote for the signing wallet.** Inside the sniper window a quote for the zero address is the worst case, not what an exempt wallet pays. - **Exact approvals, per trade.** Approve `tokensIn` (curve) or `amount` (Permit2) exactly; never `MaxUint256`. - **Ordered broadcast.** Approve legs must be MINED before the trade; wait for receipts. - **The completing buy is clamped**, charged only what clears the curve, and refunded in-transaction; `ethUsed` in the quote tells you in advance. - **20% for 2 seconds after graduation**, both sides, on the pool, while the switch is on. Read `quoteFees` or just wait. - **The token list has `poolKey` but no `poolId`** (the schema caps extension strings at 42 characters); hash the key. - **Staging is gated** (401 on every route). Do not treat that as an outage. - **No third-party charts index this chain yet.** Use `/launchpad/coins/:mint/candles` or your own swap indexing. ### Suggested test plan - `GET /launchpad/config`; assert `curveContracts.chainId == 5042` and activeCurveRelease == "9.0". - Pick a `curve-trading` coin; `getCoin` it on its `providerMeta.curveAddress`; `quoteBuyFor` for your wallet with 1 USDC (1e18); buy; confirm `Bought` in the receipt; `quoteSell` the received amount; approve exact; sell. - Pick a graduated coin from `tokenlist-graduated.json`; hash its `poolKey` and match `graduatedPoolId`; quote 1 USDC through V4Quoter; execute the buy; read `quoteFees`; approve through Permit2; sell back. - Watch one coin to graduation: confirm the bot flips venue on `CurveComplete` / `Completed` without a restart, and does not sell inside the 2-second surcharge. - Confirm the bot refuses a buy on an `abandoned` coin before signing anything.