Smart Contracts

All protocol contracts are deployed on Base (chain ID 8453).

MVP Contracts

Contract
Address
Purpose

BonzaiMintPool

Epoch-based revenue pools for LVL holders

BonzaiContent

ERC-721 content NFT with fee splitting

BonzaiRoyaltySplitter

Secondary royalty distribution

BonzaiCompanions

ERC-721 + ERC-8004 companion NFT

BonzaiUniswapHook

See config

V4 afterSwap hook (1% fee)

CompanionTokenFactory

Atomic companion ERC-20 + V4 LP

FineTuneTokenFactory

Atomic model ERC-20 + V4 LP

P2P Network Contracts

Contract
Status
Purpose

BonzaiProviderRegistry

Pending deployment

P2P provider registration and staking

BonzaiPayment

Pending deployment

ETH/USDC payment processing with EIP-712

Cross-Contract Wiring

Content  → MintPool, RoyaltySplitter
MintPool → Content, RoyaltySplitter, FeeHook
Hook     → CompanionFactory (authorized), FineTuneFactory (authorized)
CompanionFactory → Companions (NFT ownership check)
FineTuneFactory  → Content (NFT ownership check)
Payment  ↔ ProviderRegistry (bidirectional)

Key Parameters

Parameter
Value

Companion mint price

0.25 ETH

Companion max supply

10,000

Content mint fee

0.0025 ETH

Content royalties (ERC-2981)

7.5%

Unlock price

1 ETH

MintPool epoch duration

7 days

Flash loan protection gap

256 blocks

Hook swap fee

1%

P2P platform fee

2.5%

Solidity Version

All contracts compile with Solidity 0.8.20, optimizer enabled (200 runs, viaIR).

Uniswap V4 Addresses (Base)

Component
Address

PoolManager

0x498581ff718922c3f8e6a244956af099b2652b2b

PositionManager

0x7c5f5a4bbd8fd63184577525326123b519429bdc

Permit2

0x000000000022D473030F116dDEE9F6B43aC78BA3

Last updated