A decentralized application (dApp) for managing a token presale.
It combines Solidity smart contracts with a Vite-powered frontend to allow users to securely purchase tokens before the official launch.
- Smart Contracts: Solidity (ERC-20, presale logic)
- Frontend: React + Vite
- Blockchain Interaction: ethers.js
- Build Tools: Hardhat or Truffle (for contract deployment)
- Wallets Supported: MetaMask, WalletConnect
git clone https://github.com/strip-org2/TokenDapp.git
cd TokenDappLaunch Visual Studio Code and open the project directory to begin development.npm installCopy .env.default → .env and configure:
VITE_ALCHEMY_API_KEY=your-key
VITE_CONTRACT_ADDRESS=0xYourDeployedPresaleAddress
VITE_TOKEN_ADDRESS=0xYourTokenAddress
VITE_NETWORK=sepolianpm run startFrontend runs at http://localhost:5173/
npm run buildcd Truffle
# Set ELOTOKEN_ADDRESS or VITE_TOKEN_ADDRESS in .env
truffle migrate --network developCopy the deployed staking address to .env as VITE_STAKING_ADDRESS.
Then fund rewards: call fundRewards(amount) as owner (approve staking contract first).
Our goal is to evolve TokenStaking into a full rewards platform after the presale.
Planned features:
- Staking Contract
- Users can stake tokens for rewards.
- Multiple staking pools (different lock periods, APYs).
- Reward Distribution
- Stakers earn additional or partner tokens.
- Frontend Dashboard
- Display staked balance, rewards, and APR.
- Claim/unstake functions.
- Security
- Slashing protection.
- Audit-ready architecture.
This will allow us to transition from token distribution → long-term ecosystem utility.