terminalSHARON EMMANUEL
04/ PROJECT

NEXUS: DEFI TOKEN STAKING PROTOCOL

A decentralized token staking protocol supporting ERC-20 staking, reward accumulation, reward claims, and withdrawals with a TypeScript frontend.

SOLIDITYERC-20TYPESCRIPT
KEY CONCEPTS
ERC-20 STAKINGREWARD ACCUMULATIONREWARD CLAIMSWITHDRAWALSTYPESCRIPT FRONTEND
01/

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.

02/

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.

03/

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.

04/

Testing

Staking, reward accumulation, claim, and withdrawal flows are covered by the project's test suite.