Contracts
The onchain architecture. Source lives in /contracts (Foundry). Addresses appear here once deployment is configured.
StockDotFunFactory
Creates meme tokens, registers metadata, wires pools and vaults.
StockAssetRegistry
Admin-controlled list of supported stock-token assets.
RouterAdapter
Configurable interface for converting fees into stock-token assets.
BondingCurvePool (per token)
Handles buy/sell, prices the curve, applies the fee split.
RewardVault (per token)
Holds stock-token rewards; eligible holders claim from it.
CreatorRewardVault
Tracks creator rewards, claimable in ETH or stock token.
Security model
Contracts use OpenZeppelin (Ownable, ReentrancyGuard, SafeERC20), validate supported assets against the registry, enforce fee caps, reject zero addresses, and emit full events for indexing. The foundation is unaudited — an independent audit is required before mainnet deployment.