Smart contracts to build staking and reward solutions.
- SimpleRewards: Single-use permissionless staking for rewards.
- ERC20Rewards: ERC20 with rewards for holding.
- ERC4626Rewards: ERC4626 with rewards for depositing.
- ReplaceableRewardsToken: Wrapper to allow replacing the rewards token in ERC20Rewards or ERC4626Rewards
This is experimental software and is provided on an "as is" and "as available" basis. While the building blocks for these contracts (solmate and yield-utils-v2) have been audited, the combination in this repository hasn't. Please arrange the appropriate security measures for your own use of these contracts.
We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.
To install with Foundry:
forge install alcueca/staking
These contracts were inspired by or directly modified from two sources:
Thanks to Paul Berg for the template used for this repository.
This project is licensed under AGPL-3.0.