code-423n4 / 2022-06-notional-coop-findings

1 stars 1 forks source link

QA Report #186

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

1. Use of pragma experimental ABIEncoderV2 is not necessary in later version (since 0.7.4) in wfCashLogic.sol

2. Check for address(0) while setting new roles in constructor

3. Use consistent solidity version in version pragma across different files

for eg:

4. Revert string missing in require statements

5. Remove unused constants

The constant variable ERC1155_BATCH_ACCEPTED in wfCashLogic.sol is not used anywhere hence can be removed.

6. Unused Private function

7. Unused return value from functions

Some private functions in notional-wrapped-fcash return values which are never used when the functions are called. Such returns can be avoided.

for eg.