NEXUS: DEFI TOKEN STAKING PROTOCOL
A decentralized token staking protocol supporting ERC-20 staking, reward accumulation, reward claims, and withdrawals with a TypeScript frontend.
Overview
Nexus is a staking protocol where users deposit an ERC-20 token into the staking contract and accrue rewards over time, which they can claim independently of withdrawing their staked balance.
Smart Contract Design
The contract tracks each staker's deposited balance and accumulated rewards separately, so claiming rewards and withdrawing staked tokens are two distinct actions rather than a single all-or-nothing exit.
Frontend
A TypeScript frontend surfaces a user's staked balance, accrued rewards, and the actions available to them — stake, claim, or withdraw — reading contract state directly.
Testing
Staking, reward accumulation, claim, and withdrawal flows are covered by the project's test suite.
