> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Integrate RobinFun on Robinhood Chain

> Complete RobinFun integration guide for Robinhood Chain: contracts, ABI, custom bonding curve pricing, liquidity tracking, token graduation, migration, and token metadata.

# RobinFun Launchpad Integration on Robinhood Chain

Learn how to index and integrate the RobinFun launchpad on Robinhood Chain, including contract discovery, ABI events, token pricing, liquidity, bonding state, graduation, and metadata.
Integrate RobinFun native bonding curves and graduation events on Robinhood Chain. This guide describes the public contract surface for an independent integration.

## Network and contracts

Unless another chain is listed, these addresses are for Robinhood Chain (`chainId 4663`). Verify proxy implementations and mutable configuration at the indexed block.

| Role                    | Address                                      |
| ----------------------- | -------------------------------------------- |
| Factory / curve manager | `0xd861cb5dc71a0171e8f0f6586cadb069f3a35e4d` |
| WETH                    | `0x0bd7d308f8e1639fab988df18a8011f41eacad73` |

## Market discovery and ABI

The token address identifies the pre-graduation curve. Index `TokenCreated`, then apply `Buy` and `Sell` events to the curve state. Link the post-graduation pair from `Graduated`.

### Relevant ABI

```solidity theme={null}
event TokenCreated(address indexed token,address indexed creator,string name,string symbol,uint256 totalSupply,uint256 ethUsdSnapshot,uint256 virtualEth,uint256 raiseTarget);
event Buy(address indexed token,address indexed buyer,uint256 ethIn,uint256 tokensOut,uint256 newRealEth,uint256 newPriceWeiPerToken);
event Sell(address indexed token,address indexed seller,uint256 tokensIn,uint256 ethOut,uint256 newRealEth,uint256 newPriceWeiPerToken);
event Graduated(address indexed token,address indexed pair,uint256 lpEth,uint256 lpTokens,uint256 treasuryEth,uint256 liquidityBurned);
function curves(address token) view returns (uint256 virtualEth,uint256 realEth,uint256 tokenReserve,uint256 raiseTarget,uint256 lpEth,uint256 treasuryEth,uint256 k,bool readyToGraduate,bool graduated,address creator,address feeRecipient,uint256 totalSupply);
function currentPrice(address token) view returns (uint256);
```

## Launchpad architecture and AMM model

RobinFun is a token launchpad whose launch phase uses a protocol-specific bonding-curve AMM rather than Uniswap v3 or v4. The curve handles initial price discovery and fundraising; after graduation, RobinFun creates or identifies a separate terminal AMM pair.

**Classification: custom constant-product-style bonding curve before graduation; not inherently V3- or V4-like.** The curve has virtual ETH, real ETH, token reserve, and invariant `k`, and emits protocol-specific `Buy`/`Sell` post-state. The `Graduated` event identifies a terminal pair, whose AMM model must be verified from that pair rather than assumed.

**Shared with Uniswap-style AMMs:** reserve/invariant-based price movement and buy/sell asset flows. **Different from V3/V4:** no PoolKey, tick, `sqrtPriceX96`, concentrated-liquidity position, or PoolManager during the curve phase; graduation accounting explicitly separates LP ETH, LP tokens, treasury ETH, and burned liquidity.

## Price calculation

Use `currentPrice(token)` or `newPriceWeiPerToken`, scaled by 1e18. If deriving the curve price, use the contract invariant and virtual ETH plus real state; do not use only real reserves.

## Liquidity tracking

Before graduation, report real ETH and token inventory separately from virtual reserves. `Buy`/`Sell` provide authoritative post-trade `newRealEth`. On graduation, `lpEth` and `lpTokens` describe deployed liquidity and `treasuryEth` is not LP liquidity.

## Launchpad state, bonding, and migration

`progress = clamp(realEth / raiseTarget × 100)`. Buys increase `realEth`; sells reduce it. `readyToGraduate` is not final. `graduated` or the `Graduated` event is authoritative bonded state.

## Metadata

Name, symbol, total supply, creator, and ETH/USD snapshot are emitted in `TokenCreated`. Use ERC-20 reads as verification. No off-chain metadata URI is required by this ABI; logos/socials need a protocol API or another explicitly linked source.

## Indexing checklist

1. Index creation and bind the launched token to its canonical market.
2. Preserve on-chain token/currency order exactly.
3. Replay logs in block, transaction, and log-index order.
4. Keep raw integers until decimals are applied.
5. Treat graduation as protocol state, not a generic price shortcut.

## Historical indexing notes

Use block-scoped reads when initializing historical state. Do not mix `latest` reads into an old-block replay. Store launched-token identity separately from native pool ordering.

## Related Robinhood Chain launchpad integrations

* [Printr launchpad integration on Robinhood Chain](/almanac/robinhood-launchpads/printr)
* [ApeStore launchpad integration on Robinhood Chain](/almanac/robinhood-launchpads/apestore)
* [DYOR.fun launchpad integration on Robinhood Chain](/almanac/robinhood-launchpads/dyorfun)

For broader methodology, see [Bonding Curves Mathematics](/almanac/bonding-curves) and [Pricing Engine Deep Dive](/almanac/pricing-engine).
