Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

OnchainKit Earn Demo

A demo application demonstrating OnchainKit's Earn and Fund components — highlighting the top vaults on Base.

App Demo

Features

  • 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

Tech Stack

  • Next.js 14
  • TypeScript
  • Tailwind CSS
  • OnchainKit
  • Base Network

Getting Started

Prerequisites

  • Node.js 18+
  • npm/yarn
  • A Web3 wallet (e.g., Coinbase Wallet)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/ock-earn-demo.git
cd ock-earn-demo
  1. Install dependencies:
npm install
# or
yarn install
  1. Create a .env file in the root directory:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_project_id
  1. Start the development server:
npm run dev
# or
yarn dev

Visit http://localhost:3000 to see the application.

Components

EarnComponents

Displays a grid of vaults on Base network, showing:

  • APY rates
  • Total Value Locked (TVL)
  • Deposit/Withdraw functionality

FundComponents

Provides onramp capabilities:

  • Direct WETH purchases
  • Multiple currency support
  • Region-specific compliance

Network Support

Currently supports Base mainnet with the following vaults:

  • WETH Vault
  • USDC Vault
  • Other supported assets

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Coinbase for OnchainKit
  • Base for network infrastructure
  • Community contributors and testers

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages