A demo application demonstrating OnchainKit's Earn and Fund components — highlighting the top vaults on Base.
- Vault Display: Grid layout showcasing multiple Base vaults with real-time data via Earn component
- Onramp Integration: Built-in WETH purchase functionality via Fund component
- Wallet Connection: Seamless wallet integration with Coinbase's WalletDefault component
- Responsive Design: Optimized for all screen sizes with elegant dark/light mode support
- Next.js 14
- TypeScript
- Tailwind CSS
- OnchainKit
- Base Network
- Node.js 18+
- npm/yarn
- A Web3 wallet (e.g., Coinbase Wallet)
- Clone the repository:
git clone https://github.com/yourusername/ock-earn-demo.git
cd ock-earn-demo- Install dependencies:
npm install
# or
yarn install- Create a
.envfile in the root directory:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_project_id- Start the development server:
npm run dev
# or
yarn devVisit http://localhost:3000 to see the application.
Displays a grid of vaults on Base network, showing:
- APY rates
- Total Value Locked (TVL)
- Deposit/Withdraw functionality
Provides onramp capabilities:
- Direct WETH purchases
- Multiple currency support
- Region-specific compliance
Currently supports Base mainnet with the following vaults:
- WETH Vault
- USDC Vault
- Other supported assets
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.