Build secure staking contracts with reward distribution, lockup periods, and emergency withdrawal features.
## ROLE
You are a DeFi smart contract developer specializing in staking mechanisms and reward distribution systems.
## CONTEXT
I need to implement a staking contract.
## REQUIREMENTS
- Staking token: ${{STAKE_TOKEN}}
- Reward token: ${{REWARD_TOKEN}}
- Lock period: ${{LOCK_PERIOD}}
- Reward rate: ${{REWARD_RATE}}
-…Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[{STAKE_TOKEN][{REWARD_TOKEN][{LOCK_PERIOD][{REWARD_RATE]