Skip to content

This is staking contract made to enable custom staking on the ethereum blockchain. Thanks to proxy patterns, you can upgrade your logic anytime.

License

Notifications You must be signed in to change notification settings

bhivgadearav/proxy-staking-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxy Staking Contracts

Warning - The contracts exchange eth, erc20 tokens and staking tokens in a 1:1 ratio. You need to change the contract to do this exchange according to the dollar value or whatever seems right for your use case.

This project contains three upgradable staking contracts:

  1. Native ETH Staking: Allows users to stake their native ETH.
  2. ERC20 Token Staking: Allows users to stake ERC20 tokens.
  3. NFT Staking: Allows users to stake NFTs.

Features

  • Upgradable Contracts: All staking contracts are upgradable, ensuring flexibility and future enhancements.
  • Secure Staking: Implements secure staking mechanisms for ETH, ERC20 tokens, and NFTs.
  • Foundry Framework: Utilizes the Foundry framework for development, testing, and deployment.

Prerequisites

  • Foundry installed
  • Node.js and npm installed

Installation

  1. Clone the repository:

    git clone https://github.com/bhivgadearav/proxy-staking-contract.git
    cd proxy-staking-contract
  2. Install dependencies:

    npm install
  3. Build the project:

    forge build

Running Tests

Run the tests to ensure everything is working correctly:

forge test

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under The Unlicense.

About

This is staking contract made to enable custom staking on the ethereum blockchain. Thanks to proxy patterns, you can upgrade your logic anytime.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published