NECTR is a modern decentralized staking platform built on Polygon, offering a seamless staking experience with features like flexible durations, daily interest accrual, and a beautiful, responsive UI.
nectr/
├── frontend/ # React frontend application
└── smart-contracts/ # Solidity smart contracts
- Node.js >= 16
- pnpm (recommended) or npm
- A
.envfile in thesmart-contractsdirectory with:PRIVATE_KEY=your_private_key POLYGON_AMOY_RPC_URL=your_polygon_amoy_rpc_url
-
Install dependencies:
cd smart-contracts pnpm install -
Compile contracts:
npx hardhat compile
-
Deploy to Polygon Amoy testnet:
# Deploy NECTR Token npx hardhat ignition deploy NectrModule --network polygonAmoy # After token deployment, update .env with the token address: # NECTR_TOKEN_ADDRESS=deployed_token_address # Deploy Staking contract npx hardhat ignition deploy NectrStakingModule --network polygonAmoy
-
After deployment, copy the contract addresses and update the frontend
.envfile.
Copy these addresses to your frontend .env file:
# Frontend .env
NECTR_TOKEN_ADDRESS=0xaA3457AFd6E04FA3B222f722B51be418f737A440
NECTR_STAKING_ADDRESS=0xf9Ba698524c89730A4D9041F83fb347603Ff8C28-
NECTR Token (ERC20)
- Address:
0xaA3457AFd6E04FA3B222f722B51be418f737A440 - View on Explorer
- Address:
-
NECTR Staking
- Address:
0xf9Ba698524c89730A4D9041F83fb347603Ff8C28 - View on Explorer
- Address:
-
NECTR Token (ERC20)
- Initial Supply: 100M NECTR
- Max Supply: 100B NECTR
- Max Mint Amount: 1M NECTR per transaction
- Minting Restriction: Balance must be < 1000 NECTR
-
NECTR Staking
- Duration: 5 minutes to 2 years
- Base APR: 7.3%
- Bonus APR: Up to 10% based on duration
- Early Withdrawal: 10% penalty, no interest
- Interest: Accrues daily, claimable anytime
- Node.js >= 16
- Bun (recommended) or npm
- A
.envfile in thefrontenddirectory with:NECTR_TOKEN_ADDRESS=0xaA3457AFd6E04FA3B222f722B51be418f737A440 NECTR_STAKING_ADDRESS=0xf9Ba698524c89730A4D9041F83fb347603Ff8C28
-
Install dependencies:
cd frontend bun install -
Start development server:
bun dev
-
Build for production:
bun run build
-
Staking Interface
- Flexible duration selection
- Real-time APR calculation
- Progress tracking
- Interest claiming
- Token minting
-
Community Hub
- Twitter feed integration
- Crypto news RSS feeds
- Multi-category news filtering
-
Modern UI/UX
- Responsive design
- Beautiful gradients
- Smooth animations
- Mobile-optimized interface
- React + Vite
- TailwindCSS
- Framer Motion
- Wagmi v2 + Viem
- RainbowKit
- TanStack Query
- Use
useReadContractfor reading contract state - Use
useWriteContractfor transactions - Always check allowance before staking
- Handle transaction states appropriately
- Responsive breakpoints:
- Mobile: < 640px
- Tablet: >= 640px
- Desktop: >= 1024px
Smart Contracts:
cd smart-contracts
npx hardhat testFrontend:
cd frontend
bun test