Skip to main content

Build on 4626

Build on 4626

How the 4626 contracts fit together on Base, and where to start when you integrate.

Per-creator contracts
Lookup

Registry4626

Creator coin → contracts

Vault

CreatorOVault

Holds the creator coin

1000:1
Share

ShareOFT

Tradable, cross-chain

Fees

Gauge

Splits fees, holds the pot

Prizes

LotteryManager

Draws winners with VRF

Prices

CreatorOracle

TWAP price feed

Launch

CCA launch arm

Runs the share auction

Every vault is a small per-creator stack of contracts, built from shared infrastructure (the batcher, factories, and Registry). If you know a creator coin's address, the Registry gives you everything else.

Start here​

I want toGo to
Read a vault's state onchain in a few lines of codeQuickstart
Find a live contract addressContract addresses
Deposit, withdraw, or price vault sharesVault integration
Know where the vault differs from plain ERC-4626ERC-4626 deviations

The per-creator stack​

ContractWhat it does
Registry4626Maps a creator coin to its vault, wrapper, ShareOFT, gauge, and oracle
CreatorOVaultERC-4626 vault that holds the creator coin and mints vault claims ()
CreatorOVaultWrapperWraps 1000 vault claims into 1 ShareOFT
CreatorShareOFTThe tradable share (), a LayerZero OFT that charges the buy fee
CreatorGaugeControllerSplits trade fees and holds the lottery pot
CCA launch armRuns the fair-launch share auction
LotteryManager4626Calculates odds, draws with VRF, and pays winners
CreatorOracleTWAP price feed

How a launch maps to contracts​

PhaseStageWhat happens onchain
1DeployedThe per-creator stack is created, unfunded
2ActivatedDeposit, wrap, launch split, and Solana bridge
3Strategies setCharm leg (90%) and idle (10%)
4AuctionlaunchDeferredAuction, then settlement to trading live

Full detail: Vault lifecycle.

Source​

All contracts are open source at github.com/wenakita/4626/contracts. Reviews and formal proofs are under Security.