Coding task · Blockchain and Web3 course · Module 12: Security & Audit

Practice: Checks-Effects-Interactions

Fix the vulnerable withdraw function by applying the CEI pattern.

Task

Organize the code according to: checks → effects → interactions