Decentralized Asset Management Protocol
Pool funds into curated DeFi vaults. Curators manage strategies, investors share returns.
Fully transparent. Fully on-chain.
NestFi is a decentralized investment vault protocol built on Ethereum. It enables:
Investors to deposit funds into professionally managed vaults and earn passive yields
Curators to create investment vaults, deploy DeFi strategies, and earn management fees
The protocol uses the ERC-4626 tokenized vault standard for maximum composability and transparency.
Feature
Description
🏦 ERC-4626 Vaults
Fully compliant tokenized vault standard
⚡ Gasless Transactions
ERC-7702 + Permit2 for seamless UX
🔐 Non-Custodial
Users always control their funds
📊 Multi-Strategy
Deploy to Aave, Uniswap, Velodrome, and more
🎯 Allowlist Control
Curators can restrict vault access
💰 Flexible Fees
Customizable management fee structure
🌙 Dark/Light Theme
Beautiful, modern UI with theme support
📱 Responsive Design
Works on all devices
╔═════════════════════════════════════════════════════════════════════╗
║ NestFi ║
╠═════════════════════════════════════════════════════════════════════╣
║ ║
║ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ║
║ │ Frontend │ │ Smart │ │ Strategies │ ║
║ │ (Next.js) │◄────►│ Contracts │◄────►│ (DeFi) │ ║
║ └──────────────┘ └──────────────┘ └──────────────┘ ║
║ │ │ │ ║
║ │ │ │ ║
║ ▼ ▼ ▼ ║
║ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ║
║ │ RainbowKit │ │ VaultFactory │ │ Aave │ ║
║ │ Wagmi/Viem │ │ GroupVault │ │ Uniswap │ ║
║ │ React │ │ Permit2 │ │ Velodrome │ ║
║ └──────────────┘ └──────────────┘ └──────────────┘ ║
║ ║
╚═════════════════════════════════════════════════════════════════════╝
User connects wallet via RainbowKit
Frontend reads vault data from blockchain (Wagmi/Viem)
User signs deposit/withdraw transactions
Smart contracts execute operations
Strategies deploy funds to DeFi protocols
Requirement
Version
Node.js
18+
pnpm
Latest
Foundry
Latest
Git
Latest
# 1. Clone the repository
git clone https://github.com/your-username/nestfi.git
cd nestfi
# 2. Install dependencies
pnpm install
# 3. Set up environment variables
cp packages/foundry/.env.example packages/foundry/.env
# Edit .env with your private key
# 4. Start local blockchain
cd packages/foundry
anvil
# 5. Deploy contracts (in a new terminal)
cd packages/foundry
pnpm deploy --reset
# 6. Start frontend (in a new terminal)
cd packages/nextjs
pnpm dev
# 7. Open in browser
open http://localhost:3000
Contract
Description
VaultFactory.sol
Factory for creating vault instances
GroupVault.sol
ERC-4626 compliant investment vault
Contract
Description
AaveStrategy.sol
Aave V3 lending strategy
UniswapStrategy.sol
Uniswap V3 liquidity strategy
VelodromeStrategy.sol
Velodrome DEX strategy
✅ ERC-4626 compliant
✅ Permit2 gasless approvals
✅ Reentrancy protection
✅ Pausable functionality
✅ Access control (allowlists)
✅ Deposit caps & minimums
packages/nextjs/
├── app/ # Next.js App Router
│ ├── page.tsx # Landing page
│ ├── investor/ # Investor dashboard
│ └── curator/ # Curator dashboard
├── components/ # React components
│ ├── Header.tsx # Navigation header
│ ├── Footer.tsx # Site footer
│ ├── NestFiLogo.tsx # Brand logo
│ └── SettingsDropdown.tsx # Settings panel
├── contexts/ # React contexts
│ └── ThemeContext.tsx # Theme management
├── hooks/ # Custom hooks
└── styles/ # Global styles
Component
Purpose
Header
Navigation with wallet connection
Footer
Site footer with links
SettingsDropdown
Theme toggle, language, settings
VaultCard
Display vault information
Investors deposit funds into vaults to earn passive yields.
Action
Description
Browse Vaults
Explore available investment vaults
Deposit USDC
Invest any amount into a vault
Track Performance
Monitor your investments
Withdraw
Exit your position anytime
Curators create and manage investment vaults.
Action
Description
Create Vault
Set up a new investment vault
Deploy Strategies
Allocate funds to DeFi protocols
Manage Access
Control who can invest
Earn Fees
Collect management fees
Technology
Purpose
Solidity
Smart contract language
Foundry
Development framework
OpenZeppelin
Security libraries
Technology
Purpose
Next.js 14
React framework
TypeScript
Type safety
Tailwind CSS
Styling
Framer Motion
Animations
Technology
Purpose
Wagmi v2
React hooks for Ethereum
Viem
TypeScript Ethereum library
RainbowKit
Wallet connection
Foundry (packages/foundry/.env)
# Required
PRIVATE_KEY = your_private_key_here
# Network RPC URLs
RPC_URL_SEPOLIA = https://sepolia.infura.io/v3/YOUR_KEY
RPC_URL_OPTIMISM = https://optimism.infura.io/v3/YOUR_KEY
# Etherscan API (for verification)
ETHERSCAN_API_KEY = your_api_key
Frontend (packages/nextjs/.env.local)
# Chain configuration
NEXT_PUBLIC_CHAIN_ID = 11155111
# Optional: The Graph endpoint
NEXT_PUBLIC_GRAPH_ENDPOINT =
# Optional: Strategy addresses
NEXT_PUBLIC_AAVE_STRATEGY =
Deploy to Testnet (Sepolia)
cd packages/foundry
# Set environment variables
export PRIVATE_KEY=your_private_key
# Deploy
forge script script/Deploy.s.sol --rpc-url sepolia --broadcast --verify
Deploy to Production (Optimism)
cd packages/foundry
# Deploy with production settings
forge script script/Deploy.s.sol --rpc-url optimism --broadcast --verify
cd packages/nextjs
# Build for production
pnpm build
# Deploy to Vercel
vercel --prod
✅ OpenZeppelin audited libraries
✅ Reentrancy guards on all external calls
✅ Access control on admin functions
✅ Input validation on all parameters
✅ Emergency pause functionality
All funds are non-custodial
No admin keys can drain funds
Transparent on-chain operations
Open source code
We welcome contributions! Please follow these steps:
Fork the repository
Create a feature branch (git checkout -b feature/amazing-feature)
Commit your changes (git commit -m 'Add amazing feature')
Push to the branch (git push origin feature/amazing-feature)
Open a Pull Request
Write tests for new features
Follow existing code style
Update documentation as needed
Keep commits atomic and descriptive
This project is licensed under the MIT License - see the LICENSE file for details.
Resource
Link
📖 Documentation
Coming soon
🐛 Report Bug
Open Issue
💬 Discord
Coming soon
🐦 Twitter
Coming soon
Made with ❤️ by NestFi Labs
Invest together. Grow together.