Skip to content

v3.1.1

Choose a tag to compare

@jistro jistro released this 31 Mar 23:58
· 72 commits to main since this release

Changed

  • 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.