Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mentioned in Awesome Foundry

Foundry Diamonds Staking Platform

This is a flexible multi-token staking implementation using Diamonds pattern with AppStorage for shared state across facets.

Installation

  • Clone this repo
  • Install dependencies
$ forge install

Compile

$ forge build

Deployment

Foundry

$ forge script scripts/DeployDiamond.s.sol --rpc-url <YOUR_RPC_URL> --private-key <YOUR_PRIVATE_KEY>

Testing

$ forge test

Note: The staking platform supports ERC20, ERC721, and ERC1155 tokens with customizable reward mechanisms, time-based decay, and cooldown periods. The platform includes security features like ReentrancyGuard and proper implementation of receiver interfaces.

About

This project implements a flexible staking platform using the Diamond Proxy pattern combined with Foundry tooling. The platform allows users to stake multiple token types (ERC20, ERC721, and ERC1155) and earn rewards.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages