Skip to content
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

QA Report #29

Open
code423n4 opened this issue Jun 9, 2022 · 0 comments
Open

QA Report #29

code423n4 opened this issue Jun 9, 2022 · 0 comments
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax

Comments

@code423n4
Copy link
Contributor

Typo

Details

A typo in the comment; MANGER instead of MANAGER. Check for exact spelling to make the documentation clear.

Affected code :

https://github.com/code-423n4/2022-06-notional-coop/blob/6f8c325f604e2576e2fe257b6b57892ca181509a/index-coop-notional-trade-module/contracts/protocol/modules/v1/NotionalTradeModule.sol#L215


Use of pragma experimental ABIEncoderV2

Details

According to the solidity documentation (https://docs.soliditylang.org/en/v0.8.13/080-breaking-changes.html): The pragma pragma experimental ABIEncoderV2; is still valid, but it is deprecated and has no effect.

Mitigation

If you want to be explicit, please use pragma abicoder v2; instead.

affected code:

https://github.com/code-423n4/2022-06-notional-coop/blob/6f8c325f604e2576e2fe257b6b57892ca181509a/notional-wrapped-fcash/contracts/wfCashLogic.sol#L3


Outdated Solidity version in use

Details

Outdated version of Solidity are being used in one of the contracts. Throughout the codebase there are also different versions of Solidity being used.

Mitigation

Consider using a more recent version of the compiler, such as version 0.8.11. And also to avoid unexpected behavior, consider specifying explicit Solidity versions in pragma statements.

Affected code:

https://github.com/code-423n4/2022-06-notional-coop/blob/6f8c325f604e2576e2fe257b6b57892ca181509a/index-coop-notional-trade-module/contracts/protocol/modules/v1/NotionalTradeModule.sol#L19
https://github.com/code-423n4/2022-06-notional-coop/blob/6f8c325f604e2576e2fe257b6b57892ca181509a/notional-wrapped-fcash/contracts/wfCashERC4626.sol#L2

@code423n4 code423n4 added bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax labels Jun 9, 2022
code423n4 added a commit that referenced this issue Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Projects
None yet
Development

No branches or pull requests

1 participant