You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Treasury.sol: Refactored deposit and withdraw functions for improved code clarity. The withdraw function now explicitly updates state (removeAmountFromUser) before any external calls (ETH/ERC20 transfers), making the Checks-Effects-Interactions pattern more visible. The deposit function consolidates the addAmountToUser call outside the conditional branches. No security impact—both functions already followed safe patterns.
Dependencies: Updated dependencies to latest versions.