Programmable treasuries for Ethereum. Projects collect funds, issue tokens on bonding curves, govern economics through rulesets, and compose features through hooks — all onchain, all composable, across any EVM chain.
This is the complete V6 smart contract ecosystem: 17 repositories spanning core protocol, hooks, cross-chain bridging, deployers, and applications. Clone recursively to get everything:
git clone --recursive https://github.com/Bananapus/version-6.git
| Repo |
What it does |
| nana-core-v6 |
The protocol. Terminals accept funds, Controllers mint tokens, the Store does bookkeeping, Rulesets govern economics, Permissions gate access. ~10,700 lines of battle-tested Solidity. |
| nana-permission-ids-v6 |
Permission constants — ROOT through SET_SUCKER_DEPRECATION (IDs 1-32). |
Hooks plug into the core at well-defined extension points. Data hooks override economics. Pay/cashout hooks execute after settlement. Split hooks process payout distributions.
| Repo |
What it does |
| nana-721-hook-v6 |
Tiered NFTs — mint on payment, burn to cash out. Per-tier pricing, supply caps, reserve frequency, discount rates. |
| nana-buyback-hook-v6 |
Data hook that compares minting vs buying from Uniswap V4, takes whichever gives more tokens. TWAP oracle with sigmoid slippage. |
| univ4-lp-split-hook-v6 |
Split hook that accumulates reserved tokens and deploys them into UniV4 full-range liquidity pools. |
| univ4-router-v6 |
Uniswap V4 hook with custom swap logic and oracle tracking for buyback integration. |
| Repo |
What it does |
| nana-router-terminal-v6 |
Pay any project with any token. Routes through UniV3/V4 to the project's accepted currency. |
| Repo |
What it does |
| nana-suckers-v6 |
Bridge project tokens across chains via merkle trees. Implementations for Optimism, Base, Arbitrum, and Chainlink CCIP. |
| nana-omnichain-deployers-v6 |
Deploy a project to multiple chains in one transaction. Wires up suckers, controllers, and terminals across chains. |
| Repo |
What it does |
| revnet-core-v6 |
Autonomous revenue networks. Staged economics with predetermined issuance decay, buyback hooks, cross-chain bridging, and token-collateralized loans (REVLoans). |
| croptop-core-v6 |
Decentralized NFT publishing. Anyone can post content as NFT tiers on any Croptop project. |
| nana-fee-project-deployer-v6 |
Deploys project #1 — the protocol's fee recipient. |
| Repo |
What it does |
| banny-retail-v6 |
Banny NFT store. Equippable outfits on dynamic SVG characters, backed by a revnet treasury. |
| defifa-collection-deployer-v6 |
Prediction games. Players buy tiered NFTs representing outcomes, a governance scorecard distributes the prize pool. |
| Repo |
What it does |
| deploy-all-v6 |
Single Foundry script that deploys the entire ecosystem (~1,600 lines). Sphinx orchestration across 8 chains. |
Each repo uses Foundry. Repos reference each other as sibling directories via file: dependencies in package.json.
# Clone everything
git clone --recursive https://github.com/Bananapus/version-6.git
cd version-6
# Build and test a repo
cd nana-core-v6
npm install
forge build
forge test
| Constant |
Value |
Notes |
| Fee |
2.5% |
On payouts, surplus withdrawals, and taxed cashouts |
| Fee hold |
28 days |
Held fees returned if project adds to balance |
| Fee beneficiary |
Project #1 |
The NANA revnet |
| Max cash out tax |
10,000 |
100% in basis points |
| Max reserved percent |
10,000 |
100% in basis points |
| Max weight cut |
1,000,000,000 |
9 decimal precision |
| Splits total |
1,000,000,000 |
9 decimal precision |
| Token decimals |
18 |
Enforced across all project tokens |
| Loan liquidation |
3,650 days |
10 years |
| Solidity version |
0.8.26 |
All contracts |
- OpenZeppelin — ERC standards, SafeERC20, ERC2771, access control
- PRBMath — Fixed-point mulDiv arithmetic
- Uniswap V3/V4 — DEX integration for buyback and routing hooks
- Chainlink V3 — Price feeds with staleness and sequencer checks
- Permit2 — Gasless token approvals
- Solady — Gas-optimized utilities, LibClone
- Sphinx — Multi-chain deployment orchestration
MIT