Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages