Skip to content

Harsh-eth/staking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ETH Staking Contract

A simple staking contract built in Solidity that allows users to stake ETH and earn rewards over time.

This project focuses on implementing reward calculation, staking logic, and secure withdrawal flows.

Features

  • Stake ETH
  • Earn rewards based on staking duration
  • Claim rewards
  • Unstake funds with accumulated rewards
  • Reward pool funding
  • Emergency withdraw option
  • Event logging for important actions

Why I Built This

I built this contract to better understand how staking systems work in DeFi protocols.

The goal was to practice reward accounting, time-based calculations, and secure ETH transfers inside a smart contract.

Tech Stack

  • Solidity

Network

Deployed on Sepolia testnet.

Learning Focus

  • staking mechanics
  • reward calculation logic
  • pool accounting
  • secure fund transfers

Contract

https://sepolia.etherscan.io/address/0x023132700066fe146379c980637ccf9342041675

About

A simple ETH staking system built to explore reward calculation, pool funding, and secure withdrawal logic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors