Documentation Index
Fetch the complete documentation index at: https://docs.geode.ag/llms.txt
Use this file to discover all available pages before exploring further.
Overview
GeodeFactory handles one-transaction token launches. It deploys a GeodeToken ERC20, mints the full supply to the hook, computes the pool key, configures the hook, and registers the bonding curve — all atomically.
The v4 pool is NOT initialized at launch. It will be initialized at graduation at the terminal curve price for price-continuous handoff.
Immutables
Launch Parameters
Launch Flow
launch()
Validate
totalSupply > 0virtualTokenReserve > 0andvirtualEthReserve > 0deployerRoyaltyBps <= 5000(max 50%)maxBatchSizebetween 1 and 256virtualTokenReserve >= totalSupply(all tokens go to curve)
Determine Currency Ordering
Uniswap v4 requires
address(currency0) < address(currency1). WETH is always currency0 (lower address). If the token address is lower than WETH, the launch reverts with TokenSortOrderViolation.Configure Hook
Calls
hook.geodeInitializePool(key, config) with the curve parameters. Because config.deployer != address(0), this call is restricted to the factory.Launch Record
mapping(PoolId => LaunchRecord) public launches with a global launchCount.
Events
Source
GeodeFactory.sol
View the full source code on GitHub (~232 lines).