Codegobli
@codegobli
🛡️ Building a Mini DeFi Bank with a couple of security upgrades. Was using CEI, but I layered in: ✅ ReentrancyGuard (to block recursive withdraws) ✅ Pausable (for emergency stops) ✅ Ownable (so only admin controls pause/unpause) ✅ Custom modifiers + events for clean traceability Got stuck at first importing Ownable — forgot that newer OZ versions require initialOwner in the constructor. Easy fix once I caught it. Security isn’t optional. Cooldown logic + interest counter drops tomorrow. #solidity #defi #openzeppelin #smartcontracts
0 reply
0 recast
1 reaction