Skip to content

v4.0.0

Latest
Compare
Choose a tag to compare
@coreggon11 coreggon11 released this 03 Oct 16:14
· 3 commits to main since this release
49b09b3

v4.0.0

Meet new secured version of OpenBrush! In this release we fixed main issues that were found in the security review. Contracts that were added in version 4.0.0-beta.1(Governance, PSP22Permit, PSP61) were not audited.

Changes

Changed

  • [BREAKING] Separated _before_token_transfer and _after_token_transfer in PSP22 to a trait PSP22Transfer and added
    different implementation on whether Capped extension is implemented: #141
  • [BREAKING] Changed errors to isNotSet from isZeroAddress: #136
  • Added verification for PSP22Wrapper for whether the account in deposit_for and withdraw_to is underlying wrapper: #140
  • Added max_supply internal method in PSP22, fixed the issue that amount can be calculated wrong way when using Capped and FlashLender together: #142
  • PaymentSplitter now emits PaymentReceived event in receive method: #139
  • _release_all method removed from PaymentSplitter, since it was considered error-prone and unnecessary: #145
  • Added _flash_fee_receiver method to FlashLender, fee is now sent to beneficiary instead of being burned: #157
  • Added releasable method to PaymentSplitter: #146
  • [BREAKING] Ownership now can't be transferred to None: #137
  • Fixed validation in macro_definition: #144
  • Use boolean values in reentrancy_guard: #143