Coding task · Blockchain and Web3 course · Module 12: Security & Audit
Fix the vulnerable withdraw function by applying the CEI pattern.
Organize the code according to: checks → effects → interactions