staking-vesting

Audit staking and vesting protocols for reward, timing, and withdrawal vulnerabilities.

1|1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/Apegurus/solidity-argus --skill staking-vesting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: staking-vesting
Source: https://github.com/Apegurus/solidity-argus/tree/main/skills/protocol-patterns/staking-vesting
Command: npx skills add https://github.com/Apegurus/solidity-argus --skill staking-vesting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses critical security concerns in staking and vesting protocols, focusing on preventing vulnerabilities related to reward calculation, timing attacks, and token accounting.

Core Features & Use Cases

  • Reward Calculation Auditing: Identifies flaws in how rewards are accrued and distributed to prevent manipulation.
  • Timing Attack Prevention: Analyzes staking and withdrawal mechanisms for vulnerabilities related to block timing and MEV.
  • Token Accounting Integrity: Ensures accurate tracking of staked tokens, especially with fee-on-transfer or rebase tokens.
  • Lock Period Enforcement: Verifies that lock-up periods are correctly implemented and cannot be bypassed.

Quick Start

Audit the provided staking contract for potential vulnerabilities in reward calculation and withdrawal logic.

Frequently Asked Questions about staking-vesting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit smart contract reward calculation logic for staking vulnerabilities?

Auditing staking reward calculation involves analyzing the rewardPerToken accounting logic to identify manipulation vectors, ensuring accurate accrual and distribution tracking. It provides checklists and code examples to verify secure implementation of reward mechanisms in DeFi protocols.

What are common attack vectors in DeFi staking and vesting protocols?

Common DeFi staking attack vectors include reward manipulation, flash loan staking, and reentrancy within claim functions. Analyzing these vulnerabilities requires examining withdrawal mechanisms and deposit timing to ensure token accounting integrity against malicious exploitation.

How does flash loan staking exploit reward distribution mechanisms?

Flash loan staking exploits reward distribution by leveraging borrowed liquidity to manipulate reward accrual within a single block. Preventing this requires analyzing staking and withdrawal mechanisms for vulnerabilities related to block timing and MEV extraction.

How do I prevent timing attacks during deposit and withdrawal in staking contracts?

Preventing timing attacks in staking contracts requires analyzing deposit and withdrawal mechanisms for block timing vulnerabilities and MEV exposure. It offers guidance on implementing secure timing logic to ensure reward accounting remains accurate during state transitions.

Can I use this to verify lock period enforcement in vesting smart contracts?

Yes, verifying lock period enforcement ensures that vesting lock-up periods are correctly implemented and cannot be bypassed. It analyzes withdrawal mechanisms to confirm that time-based constraints hold securely under various edge cases and attack scenarios.

Does this staking audit guidance handle fee-on-transfer and rebase tokens?

Yes, token accounting integrity checks ensure accurate tracking of staked tokens, specifically addressing complexities introduced by fee-on-transfer or rebase tokens. It helps identify accounting flaws that could disrupt reward calculation and distribution.