-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
Description
Description
This feature proposes adding a StakingFacet to the Compose Diamond standard library. The facet enables staking of ERC-20, ERC-721, and ERC-1155 tokens with support for:
- Base APR reward calculation with optional decay
- Customizable cooldown period for unstaking
- Rewards paid in a configurable ERC-20 token
- Compatible with AccessControlFacet or OwnerFacet for admin gating
Value
This feature enables developers to easily integrate staking mechanics into any Compose-based diamond - without needing to write staking logic
Benefits include:
- Reusability: Designed for diamond composition and deploy-once reuse
- Multi-standard support: Unified interface for staking ERC20, ERC721, and ERC1155
- Flexibility: Reward parameters and token support are configurable via module
- Composability: Can integrate cleanly with AccessControlFacet or AccessControlPausableFacet