What problem does it solve?
It helps you avoid costly smart-contract failures by teaching practical defensive Solidity patterns for common, high-impact vulnerability classes that still slip through “it compiles and tests pass” checks.
Core Features & Use Cases
- Prevent token accounting mistakes by enforcing correct decimals handling and safe cross-token math normalization (e.g., USDC 6 decimals vs 18-decimal assumptions).
- Block common onchain exploit paths with Checks-Effects-Interactions, reentrancy guards, and safe handling of external calls.
- Reduce operational and integration risk using SafeERC20 for non-standard tokens, oracle safety (no DEX spot-price manipulation), bounded approvals, and a pre-deploy security checklist for production readiness.
- Use case: Before deploying a Collateral/borrowing vault-like contract, apply the defensive patterns for reentrancy, oracle staleness/sanity, safe token transfers, and upgrade/proxy storage layout so value-moving code doesn’t fail in unexpected ways.
Quick Start
Apply the pre-deploy security checklist to your Solidity codebase and fix each flagged issue using the defensive patterns described in this Skill.