Skip to content

A set of modern, gas optimized staking pool contracts including ERC20 and ERC721

License

Notifications You must be signed in to change notification settings

azvast/erc20-erc721-staking-foundry

Repository files navigation

Modern ERC20 & ERC721 Staking Foundry

This project is a set of modern, gas optimized staking pool contracts including ERC20 and ERC721.

Features

  • Support for both ERC20 staking and ERC721 staking.
  • Can start new reward period after the current one is over.
  • Minimized error in reward computation (<10^-8) by using higher precision.
  • Well commented with NatSpec comments.
  • Fuzz tests powered by Foundry.
  • Gas optimized.
  • Cheap deployment using ClonesWithCallData (~81.7k gas).

Development

This project uses Foundry as the development framework.

Dependencies

forge install

Compilation

forge build

Testing

forge test

About

A set of modern, gas optimized staking pool contracts including ERC20 and ERC721

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published