Rift is a social trading platform on Base that enables creators to launch tokens, NFTs, and build communities through guilds with integrated subscription systems.
Rift provides smart contracts for:
- Token Creation: Bonding curve tokens that automatically migrate to Uniswap V4 pools
- NFT Creation: ERC1155 collectibles with tier-based access control and royalties
- Guilds: Community-owned contracts with treasury, subscriptions, and governance
- Subscriptions: STPV2-based subscription system with tier management
- Reward Distribution: Automated fee distribution to creators, guilds, and referrals
- Uniswap V4 Integration: Native fee hooks and swap wrappers
TokenFactory: Creates and manages bonding curve tokens with automatic Uniswap V4 migrationNFTFactory: Creates ERC1155 collectibles with tier-based access and royaltiesGuildFactory: Deploys Guild contracts for community management
Guild: Community-owned contract with treasury, subscriptions, swaps, and auctionsSubscriptionRegistry: Manages STPV2 subscription deployments and allocationsRewardManager: Handles fee distribution (protocol, creator, guild, referral splits)PrimaryAccountRegistry: Address resolution system for multi-wallet support
FeeHook: Uniswap V4 hook for collecting fees from swapsUniswapper: Wrapper for Uniswap V4 swaps with Permit2 integration
PurchaseHandler: Handles post purchases with fee distributionPostPools: Manages ETH pools for postsAuction: Time-based auction systemTokenMigrator: Handles migration from bonding curve to Uniswap V4 pools
- PrimaryAccountRegistry:
0xF707C0693d6B208378D5f04204E3c10dDa0DA2E5 - SubscriptionRegistry:
0x506747D23DbF378314862a46937aab3bcAE0F3cD - Pro Subscription:
0x184447AF3510f8aed8B2F55963dFE755FAFcc547
- RewardManager:
0xBc5851A4f87C3Ce6d9a17daD0918AD8A7d588386 - NFTFactory:
0x3f900322457901255FF13c5ebC8E813b46da507b - TokenFactory:
0x8CF9c220983313406Dad0625636851195ccF4d50 - GuildFactory:
0x507eaA9fAE585AD9918D07E11d346596E5e1c91a - Guild Implementation:
0x682e53Ed26b7DCDD9570b5f4aE25f7c31d1dcC19
- FeeHook:
0xf4934C42CFA95B46B42C1c377786042a5f0c40Cc - Uniswapper:
0xEc9Df0874F3a1B2BC120d5a1D8d247a3e62Ba7B4 - TokenMigrator:
0x9ABe248C87787339652f487c739677091909e34a
- PurchaseHandler:
0x34B677fb49c441953c3c60F7f92BDee831FC5313 - PostPools:
0x58127867887b133B0652dfa32058C42A8069E991 - Auction:
0xF7aeE581cA5DDa3aF24BF22597f545EC10Af3809 - TransferWrapper:
0xb694E58bb6e87fE09Beb17D5C2D9fdBC81955a7B
- PoolQuerier:
0x50Cb8407233fFB7E3320059D5E4245F2a98D2d56 - TokenFactoryQuerier:
0x12d89460C2cEB49810d547F831C23ffe5D2da55a - V4QuoterWithPrice:
0xcD59EF68EF595488c8A719F4238D139A59dCf051 - Querier:
0xFaB3B6e5b555820fabe24e863ABea94ca28b7e07 - GuildQuerier:
0xB01E788Da9384f003c9bC7FBc1bAd0FF53b0f24e - TokenFactoryGate:
0x91922933f31e66aE2a3dfA63422ffD268E75AD57
forge install
forge build
forge test
All contracts use battle-tested libraries (OpenZeppelin, Solmate, Solady) and implement standard security patterns including reentrancy guards and safe transfer libraries.
MIT License - see LICENCE file for details.
- Website: rift.club
- Contract interfaces are documented using NatSpec comments in the source files