Withdrawal updates the balance after the external call
- Weakness
- SWC-107
- Where
- Vault contract, withdraw function
- Impact
- A contract receiving funds could call back in and withdraw more than its balance.
- Fix
- Update state before any external call (checks, effects, interactions) and add a reentrancy guard.









