Solidity-шаблоны DeFi-протоколов
★ 8.5 · general
defi-protocol-templates is a Claude Code skill that provides production-ready Solidity templates for core DeFi protocol types: staking, automated market making, governance, and flash loans. It includes complete source code for four contracts built on OpenZeppelin libraries (ReentrancyGuard, Ownable, IERC20): a StakingRewards contract with per-second reward accrual, a SimpleAMM implementing x*y=k liquidity pools with add/remove liquidity and token swaps, a governance contract with proposal voting, and a flash loan provider with repayment validation. Developers building decentralized finance applications can use these templates as auditable starting points rather than writing DeFi primitives from scratch, adapting each contract to fit their specific protocol requirements.
- #defi
- #solidity
- #smart-contracts
- #staking
- #amm
- #flash-loans
- #governance