ubi.fun for integrators
What ubi.fun is under the hood, what it shares with Flaunch, and why routing volume here pays you.
This section is for trading terminals, aggregators, bots, and anyone else who wants to read our markets or route swaps into them.
What ubi.fun is, technically
ubi.fun is a fork of Flaunch, the Uniswap v4 hook launchpad, running on Arc mainnet (chain id 5042). If you have integrated Flaunch on Base, most of your mental model transfers directly: the same PositionManager hook architecture, the same launch flow through a zap, the same fair launch mechanics, and the same swap-referrer mechanism. What changes is the chain, the contract addresses, the cash token, and the fee split.
The key differences from Flaunch:
| Flaunch (Base) | ubi.fun (Arc) | |
|---|---|---|
| Chain | Base (8453) | Arc mainnet (5042) |
| Cash side of every pool | flETH | USDC (the chain’s native token via its ERC20 interface, 6 decimals) |
| Gas token | ETH | USDC |
| Fee split | governance-set | fixed in bytecode: 5% referrer, 15% team, 24% holder pool, 56% creator (creator splits their share with an automated floor bid, default 90/10) |
| Holder rewards | none | 24% of every fee funds a daily USDC pool for all holders, paid through Morpho’s UniversalRewardsDistributor |
Every coin has a fixed supply of 100 billion and launches into a Uniswap v4 pool with locked liquidity. The full economics live in Where every fee goes.
Why integrate
Routing volume here pays you 5% of the swap fee, on-chain, per swap. Pass your address as the referrer when you route a swap and the hook assigns your share to the ReferralEscrow contract as it collects fees. No agreement, no API key, no minimum volume. See Swaps and the referrer share.
The integration surfaces
- TypeScript SDK: typed launch, trade, and claim flows on top of viem, with React hooks included.
- Contract addresses and events: everything on-chain, with the events to index launches and swaps yourself.
- Swaps and the referrer share: quoting and executing swaps against our pools.
- REST data API: markets, prices, OHLCV candles, holders, and activity, served from our indexer with no auth.
- Subgraph: a Graph Protocol package over the same events, self-hosted against an Arc RPC.
- AI agents: a hosted MCP server and agent skills; agents earn the referrer share too.
Working in TypeScript? The ubifun-sdk wraps all of these surfaces in one typed package; the pages here document the raw contract and HTTP interfaces underneath it.