ZLX-Check

Spot the Bug: sends first, asks later

Question 1 of 3Score 0/3

A withdraw sends the caller their funds with msg.sender.call{value: amt}(""), then runs balance[msg.sender] -= amt. The math is right and it works for a normal wallet. What is still wrong?