Skip to content

Macro audit june 2022 #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 45 commits into from
Jun 29, 2022
Merged

Macro audit june 2022 #183

merged 45 commits into from
Jun 29, 2022

Conversation

nkrishang
Copy link
Contributor

Merging this PR concludes the audit by 0xMacro for Multiwrap, DropERC1155 and SignatureDrop.

kumaryash90 and others added 30 commits June 16, 2022 16:55
replace requires with custom errors
* [H-1] Wrapped ETH cannot be unwrapped

* [L-1] Anyone can call renounceRole(), and delete the first valid entry from roleMembers for any role

* [L-2] Incorrect supportsInterface implementation

* [G-4] Require revert msg string length > 32 for Multiwrap: L176 (edited)

* [G-3] Optimization done in CurrencyTransferLib for rare edge cases, increases gas costs for all other use cases.

* [G-2] Improvements for _setBundle()

* [L-7] Unsafe usage of msg.value within CurrencyTransfer library

* [G-5] Return early in PermissionsEnumerable#getRoleMember

Co-authored-by: Krishang Nadgauda <nkrishang@Krishangs-MBP.lan>
* (Q-1) Unused variable

* fix claim quantity limit

fix claim quantity limit

* cleanup

* remove thirdwebfee

remove thirdwebfee

Co-authored-by: Krishang Nadgauda <nkrishang@Krishangs-MBP.lan>
Co-authored-by: yash <kumaryashcse@gmail.com>
Co-authored-by: Krishang Nadgauda <nkrishang@Krishangs-MacBook-Pro.local>
@nkrishang nkrishang added bug Something isn't working enhancement New feature or request labels Jun 27, 2022
@nkrishang nkrishang requested a review from jakeloo June 27, 2022 00:32
@nkrishang nkrishang self-assigned this Jun 27, 2022
@@ -75,8 +75,22 @@
address _to,
Token[] memory _tokens
) internal {
uint256 nativeTokenValue;

Check warning

Code scanning / Slither

Uninitialized local variables

TokenStore._transferTokenBatch(address,address,ITokenBundle.Token[]).nativeTokenValue (contracts/feature/TokenStore.sol#81) is a local variable never initialized
@nkrishang nkrishang merged commit be12145 into main Jun 29, 2022
@kumaryash90 kumaryash90 deleted the macro-audit-june-2022 branch September 4, 2022 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants