A modern decentralized staking application built with React, TypeScript, Vite, Ethers.js, Wagmi, and Framer Motion. Nexus provides an institutional-grade interface for connecting wallets, selecting Ethereum networks, staking assets, monitoring rewards, tracking portfolio metrics, and viewing staking activity.
Production Deployment:
https://nexus-defi-staking-dapp-jg2cb7nxm.vercel.app
Nexus is a responsive Web3 staking dashboard that enables users to:
- Connect an Ethereum wallet using MetaMask
- Select between Ethereum Mainnet and Sepolia Testnet
- Stake ETH through an intuitive interface
- Unstake assets
- Claim staking rewards
- Enable automatic reward compounding
- Monitor protocol health metrics
- Track portfolio performance
- View staking analytics
- Review transaction history
- Access protocol documentation
The application features a modern glassmorphism-inspired UI with smooth animations powered by Framer Motion.
Connect your Ethereum wallet directly from the application.
- MetaMask integration
- Account detection
- Wallet address display
- Connection state management
Connected wallets display a shortened address format:
0x7a62...431e
instead of the default Connect Wallet button.
The staking dashboard includes a custom network selector.
| Network | Chain ID |
|---|---|
| Ethereum Mainnet | 0x1 |
| Ethereum Sepolia | 0xaa36a7 |
Users can easily switch between supported networks before staking.
The staking dashboard serves as the primary interaction point for users.
Users can:
- Select a network
- Enter a staking amount
- Use the MAX button
- Submit a staking request
Users can:
- Enter an unstake amount
- Withdraw previously staked assets
Users can:
- View accumulated rewards
- Claim pending rewards
Users can enable:
- Automatic reward reinvestment
- Validator diversification
- Daily reward sweeping
The hero section displays key protocol metrics.
- Protocol Solvency
- Slashing Coverage
- Oracle Confidence
- Liquidity Buffer
- Validator Set Size
- Epoch Yield
Animated progress bars provide visual insight into protocol health.
The portfolio section provides a snapshot of user positions.
- Total staked assets
- Reward balances
- APY exposure
- Asset allocation
- Strategy distribution
The analytics section provides visual performance metrics.
- TVL (Total Value Locked)
- Rewards Growth
- APY History
- User Earnings
The chart architecture is designed for future integration with live blockchain analytics APIs.
Users can review staking activity through a detailed transaction log.
- Active
- Pending
- Completed
- Transaction type
- Timestamp
- Amount
- Status
- Transaction hash
This creates a transparent and auditable history of protocol activity.
The documentation section provides access to protocol resources.
- Protocol Documentation
- Risk Framework
- Security Reports
These sections are designed to support future protocol documentation and audit reports.
- React 18
- TypeScript
- Vite
- Ethers.js v6
- Wagmi
- RainbowKit
- Tailwind CSS
- Framer Motion
- Lucide React
- GitHub
- Vercel
frontend/
โโโ nexus-dapp/
โโโ src/
โ โโโ components/
โ โโโ data/
โ โโโ lib/
โ โโโ App.tsx
โ โโโ main.tsx
โ
โโโ public/
โโโ package.json
โโโ vite.config.ts
โโโ tailwind.config.js
โโโ tsconfig.json
git clone https://github.com/Sharon-dev-create/Nexus-defi-staking-dapp.gitcd Nexus-defi-staking-dapp/frontend/nexus-dapppnpm installpnpm devOpen:
http://localhost:5173
Generate a production build:
pnpm buildPreview the build locally:
pnpm previewCreate a .env file in the project root:
VITE_RPC_URL=https://your-rpc-url
VITE_CHAIN_ID=11155111Example:
VITE_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_API_KEY
VITE_CHAIN_ID=11155111This project is deployed using Vercel.
- Push the repository to GitHub.
- Import the repository into Vercel.
- Set the Root Directory:
frontend/nexus-dapp
- Configure environment variables.
- Deploy the application.
https://nexus-defi-staking-dapp-jg2cb7nxm.vercel.app
- Wallet connection with MetaMask
- Ethereum network selection
- Staking interface
- Unstaking interface
- Reward claiming interface
- Auto-compound controls
- Portfolio dashboard
- Analytics dashboard
- Protocol metrics
- Responsive design
- Vercel deployment
- Smart contract integration
- Live staking transactions
- Real reward calculations
- Wallet network switching
- WalletConnect support
- Multi-chain staking
- Historical analytics
- On-chain transaction verification
- Live APY feeds
- User profile management
This project currently serves as a frontend demonstration of a decentralized staking platform.
Before production deployment, the following should be implemented:
- Smart contract audits
- Transaction validation
- Reentrancy protection
- Slashing protection mechanisms
- Oracle security verification
- Monitoring and alerting systems
- Access control reviews
Contributions are welcome.
To contribute:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push your branch
- Open a Pull Request
This project is licensed under the MIT License.
Sharon Dev
https://github.com/Sharon-dev-create/Nexus-defi-staking-dapp
https://nexus-defi-staking-dapp-jg2cb7nxm.vercel.app
Built with React, TypeScript, Vite, Ethers.js, Wagmi, Tailwind CSS, and Framer Motion to demonstrate a modern decentralized staking experience.