Reference for the Bags smart contracts on Robinhood Chain: roles, addresses, key functions and events, custom errors, and ABI downloads.
This page is the reference for the Bags contracts on Robinhood Chain. For step-by-step usage, see the Launch, Trade, Read State, and Claim Fees guides.
Addresses
Protocol singletons and shared infrastructure on Robinhood Chain mainnet (chain ID 4663):
Contract
Address
BagsFactory (proxy)
0xe8Cc4431adF8b5A847C113EF0c6af9043219Cb37
BagsLens
0xC82Db941dAf90B754aecb5F7D14c683dc608d595
BagsV4Hook
0x2380aBf72C17aABAb76480244759AC7E2932EEcC
BagsVault (proxy)
0x4861446aa7fFd9e67a83cBbAcb1A4B70540B83Aa
UniversalRouter (modified)
0x8876789976dEcBfCbBbe364623C63652db8C0904
V4Quoter
0x8Dc178eFB8111BB0973Dd9d722ebeFF267c98F94
StateView
0xF3334192D15450CdD385c8B70e03f9A6bD9E673b
PoolManager
0x8366a39CC670B4001A1121B8F6A443A643e40951
PositionManager
0x58daec3116aae6D93017bAAea7749052E8a04fA7
Permit2
0x000000000022D473030F116dDEE9F6B43aC78BA3
WETH (aeWETH proxy)
0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73
Multicall3
0xcA11bde05977b3631167028862bE2a173976CA11
BagsBondingCurve and BagsFeeShare are per-token beacon proxies and BagsToken a per-token EIP-1167 clone — resolve them via the TokenCreated event, factory.curveForToken / factory.feeShareForToken, or BagsLens.getTokenState.
Proxy Topology
Always integrate against the proxy addresses above — they are stable across upgrades. For upgrade monitoring (indexers should watch Upgraded events on all four):
Contract
Pattern
Upgrade surface
BagsFactory, BagsVault
UUPS + ERC1967 proxy
Upgraded on the proxy address
BagsBondingCurve (per token)
Beacon proxy
Upgraded on BagsBondingCurveBeacon0x8DCEcaf516C828A493C2C449c1E25F92cF80207E (retargets all curves at once)
BagsFeeShare (per token)
Beacon proxy
Upgraded on BagsFeeShareBeacon0xdFf07d39C5332C602e06FA64f0A97C92fd8537e0 (retargets all fee-shares at once)
BagsToken (per token)
EIP-1167 clone
Immutable — never upgrades
BagsV4Hook
CREATE2 singleton
Not upgradeable (a replacement would only affect future launches via factory.setHook)
BagsLens
Plain contract
Redeployed freely — pin the address above
ABI Downloads
The full ABIs (including custom error definitions used for revert decoding) are published in the robinhood-abi-v2 directory of the public bagsfm/bags-idl repository:
Import the full ABIs so your EVM library can decode custom errors (e.g. BagsBondingCurve_SlippageExceeded) into readable messages instead of raw revert data.
Singleton Uniswap v4 hook shared by all Bags pools. It takes the 2% fee on the WETH leg of post-migration swaps, locks liquidity, and routes creator fees to each token’s fee-share.
BagsV4Hook_ExactOutputWETHSpecifiedUnsupported (exact-out WETH is rejected by design), BagsV4Hook_LiquidityLocked, BagsV4Hook_PoolNotRegistered(poolId), BagsV4Hook_AlreadyRegistered(poolId), BagsV4Hook_NotFactory(caller), BagsV4Hook_PoolMissingWETH.
BagsVault
Platform treasury holding native ETH (the vault portion of the protocol fee half and the launch fee). Owner-controlled withdrawals; no integrator-facing calls.
function balance() returns (uint256 nativeBalance);// Owner onlyfunction withdraw(address to, uint256 amount);function withdrawToken(address token, address to, uint256 amount);
Events: Received(from, amount), Withdrawn(to, amount), TokenWithdrawn(token, to, amount), Upgraded(implementation).
BagsBeacon
Two instances (curve + fee-share) each hold the implementation address for all their beacon proxies. Integrators only need these for upgrade monitoring — a single upgradeTo retargets every live launch at once.
function implementation() returns (address);function upgradeTo(address newImplementation); // owner only
Event: Upgraded(address indexed implementation).
Periphery ABIs
The Uniswap-style infrastructure is not part of the Bags ABI export. These are the minimal fragments used by the Trade Tokens and Read State guides.
UniversalRouter (modified fork)
Only execute is called directly. The v4 swap struct carries an extra uint256 minHopPriceX36 field vs vanilla Uniswap (set it to 0), so encode the calldata manually.
function execute(bytes commands, bytes[] inputs, uint256 deadline) payable;
The v4 swap params tuple (encoded manually for SWAP_EXACT_IN_SINGLE):
quoteExactInputSingle is nonpayable, not view — it must be simulated via eth_call (viem’s simulateContract), never called as a plain read. The Trade Tokens guide does this. Output already includes the 2% hook fee — apply slippage only.