Codegobli
@codegobli
Mini DeFi Bank Update Today I reviewed and upgraded my contract found flaws, patched ‘em, learned a lot. 🧠 Lessons + Fixes: ✅ Tracked direct ETH in receive() with an event log (didn’t even know I could tbh) ✅ Removed redundant require() in withdraw() (gas savings > over-checking) ✅ Added 24hr cooldown per withdrawal ✅ Built 10% annual interest logic primary school math finally paid off 😅 Next: 🎯 .reset() function for test mode 🎯 Testnet deploy this weekend 🧪 How would you test a Defi Bank contract? #Solidity #DeFi #SmartContracts #OpenZeppelin #BuilderJourney #MiniDeFiBank #Web3Dev
0 reply
0 recast
1 reaction