Security analysis for token staking and reward distribution
Review the security of this staking contract:
```
${{CONTRACT_CODE}}
```
Staking Mechanism: ${{STAKING_MECHANISM}}
Reward Token: ${{REWARD_TOKEN}}
Security review:
1. Staking mechanism analysis
2. Reward calculation vulnerabilities:
- Rounding errors
- Reward inflation attacks
- Distribution timing exploits
3. Lock period security
4. Early withdrawal penalties
5. Compound staking risks
6. Multi-token reward handling
7. Emergency withdrawal functions
8. Admin privileges review
9. Integration vulnerabilities
10. Recommended improvements
Include edge case scenarios and test recommendations.Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{CONTRACT_CODE][{STAKING_MECHANISM][{REWARD_TOKEN]