Skip to content

miss-yusrah/staking-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Staking Contract (Standalone)

Simple native-token (ETH) staking contract built with Foundry.

  • Contract: src/Staking.sol
    • stake() (payable): deposit ETH
    • withdraw(amount): withdraw previously staked ETH
    • stakedBalance(account), totalStaked(): view helpers
  • Tests: test/Staking.t.sol

Quickstart

forge build
forge test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors