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 #161

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

QA Report #161

code423n4 opened this issue Jun 19, 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

L01 Missing != address(0) checks for Immutable Addresses

I recommend adding a address(0) check in the constructor when setting immutable addresses.
Executor.sol#L48

L02 SafeApprove is deprecated

As per Open Zepplin safeApprove should only be used when setting initial allowance or reseting to zero. safeIncreaseAllowance should be used instead.
AssetLogic.sol#L347

N01 Open Todos

Recommend removing open todos before deploying contracts
BridgeFacet.sol#L492
BridgeFacet.sol#L579
BridgeFacet.sol#L1027
Executor.sol#L7
LibConnextStorage.sol#L303

N02 Incomplete Natspec

AssetFacet.sol#L130 - missing @param _stableSwapPool
BaseConnextFacet.sol#L113 - missing @return
BridgeFacet.sol#L626 - missing @return
BridgeFacet.sol#L744 - missing @return
BridgeFacet.sol#L913 - missing @param _message
PortalFacet.sol#L79 - missing @param _transferId
RoutersFacet.sol#L130 - missing @param cananonicalId
StableSwapFacet.sol#L251 - missing @param amountIn, @param minAmountOut, @ param deadline, @return
StableSwapFacet.sol#L278 - missing @param amountIn, @param minAmountOut, @ param deadline, @return
AssetLogic.sol#L223 - missing @param _maxIn
AssetLogic.sol#L259 - missing @param _slippageTol
AssetLogic.sol#L301 - missing @param _maxIn
LibConnextStorage.sol#L72 - missing @param routerSignatures
LibConnextStorage.sol#L90- missing @param approvedForPortalRouters
SwapUtils.sol#L171 - missing @param totalSupply
SwapUtils.sol#L480 - missing @param balances
SwapUtils.sol#L511 - missing @param balances
SwapUtils.sol#L541 - missing @param self

@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 19, 2022
code423n4 added a commit that referenced this issue Jun 19, 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