Protocol
A market layer for open-source repositories.
GitFun turns public GitHub repositories into ERC-20 markets on Base. Uniswap v4 pools, hook-routed fees, and GitHub-verified creator claims — all on-chain.
Why GitFun
Permissionless launches
Any public GitHub repo with valid metadata can be tokenized. No allowlist, no curator, no off-chain gate.
On-chain registry
RepoRegistry maps owner+name to a single canonical token. Duplicate launches revert at the contract level.
GitHub-anchored identity
Creator claim flow uses GitHub OAuth to prove repo admin permission, then signs on-chain with the wallet.
Aligned creator economics
80% of swap fees route to the verified maintainer through FeeDistributor. Unclaimed fees accrue, never burned.
Uniswap v4 native
Each market is a v4 pool with a custom afterSwap hook. Single-sided LP launch, ascending price discovery.
Hard-cap protocol fee
Protocol's 20% share is bounded above by an on-chain ceiling of 30%. Governance cannot exceed it.
- 01GitHubUser pastes URL
- 02WebValidates + signs request
- 03RelayerSubmits gasless tx
- 04FactoryDeploys ERC-20
- 05RegistryRecords canonical mapping
- 06PoolUniswap v4 + hook
- 07FeeDistributorSplits hook fees
- Initial supply
- 1,000,000,000
- Token decimals
- 18
- Pool fee (LP)
- 1.00%
- Pool tickSpacing
- 200
- Initial price
- ≈ 0.001 ETH FDV
- Hook split
- 80% creator / 20% protocol
- Max protocol ceiling
- 30%
- Bootstrap LP
- Single-sided, full-range
The afterSwap hook calls accrueFees on FeeDistributor with the LP fee remainder. Distribution math is enforced on-chain. Creator share is claimable through OAuth.
| Contract | Role | Address |
|---|---|---|
| RepoRegistry | Canonical owner + token mapping | 0x2679...95E9 |
| CreatorClaimRegistry | Verified creator wallet per token | 0x44D4...B167 |
| FeeDistributor | Holds + splits hook fees 80/20 | 0xF0e3...8B60 |
| RepoTokenFactory | Deploys ERC-20 per repo | 0x78C4...B2D1 |
| RepoFeeRouterHook | Uniswap v4 afterSwap fee router | 0xc895...0040 |