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 traitPSP22Transfer
and added
different implementation on whetherCapped
extension is implemented: #141 - [BREAKING] Changed errors to
isNotSet
fromisZeroAddress
: #136 - Added verification for
PSP22Wrapper
for whether the account indeposit_for
andwithdraw_to
is underlying wrapper: #140 - Added
max_supply
internal method inPSP22
, fixed the issue that amount can be calculated wrong way when usingCapped
andFlashLender
together: #142 PaymentSplitter
now emitsPaymentReceived
event inreceive
method: #139_release_all
method removed fromPaymentSplitter
, since it was considered error-prone and unnecessary: #145- Added
_flash_fee_receiver
method toFlashLender
, fee is now sent to beneficiary instead of being burned: #157 - Added
releasable
method toPaymentSplitter
: #146 - [BREAKING] Ownership now can't be transferred to
None
: #137 - Fixed validation in
macro_definition
: #144 - Use boolean values in
reentrancy_guard
: #143