QA Report #201
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
return was used as comment but in actual code no return was used for
_remote The address of the remote xApp Router on _domain
. It can be added or it can be deleted since it was there.Tool Used
Manual Review
Recommended Mitigation
Add
return
inside functionIn this line was used to be :
but in actual code was using and
OR
:So it can be changed as it should be
POC
https://www.geeksforgeeks.org/solidity-operators/
Another Occurance
RelayerFeeRouter.sol Line.166
Optional: If you use SafeMath or a similar library, change x.add(y) to x + y, x.mul(y) to x * y etc.
POC
https://docs.soliditylang.org/en/v0.8.15/080-breaking-changes.html
1.) File : AmplificationUtils.sol Line.61
2.) File : AmplificationUtils.sol Line.61
3.) File : AmplificationUtils.sol Line.64
4.) File : AmplificationUtils.sol Line.89
5.) File : AmplificationUtils.sol Line.92
6.) File : AmplificationUtils.sol Line.92
The pragma declared at DiamondInit.sol was used ^0.8.0. As the compiler can be use as 0.8.14 and consider locking at this version the same as another. It can be consider using locking the pragma version whenever possible and avoid using a floating pragma in the final deployment. Since it can be problematic, if there are publicly disclosed bugs and issues that affect the current compiler version used.
Tool Used
Manual Review
In Executor.sol, since
amnt
for this was used foramount
, it better to keep as it should be for good readibility and code instead. No exploit was happen but to keep it good as it should be. Since anotheramount
was not be abbreviated. so it should be better that to keep itamount
and notamnt
.Tool used
Manual Review
Occurances
1)Executor.sol #L31
2)Executor.sol #L102
3)Executor.sol #L153
4)Executor.sol #L172
1.) File : BaseConnextFacet.sol Lines 109-116
adding
@return
2.) File : BridgeFacet.sol Lines.477-524
adding
@params
&@return
3.) File : BridgeFacet.sol Lines.622-630
adding
@return
4.) File : BridgeFacet.sol Lines.632-700
adding
@return
5.) File : BridgeFacet.sol Lines.702-713
moving
// return
into@return
6.) File : BridgeFacet.sol Lines.715-722
adding
@return
7.) File : BridgeFacet.sol Lines.724-737
adding
@return
8.) File : BridgeFacet.sol Lines.739-751
adding
@return
9.) File : BridgeFacet.sol Lines.739-751
adding
@return
adding
@return
adding
@return
12.) File : LPToken.sol Lines.14-26
adding
@return
1.) File : contracts/core/connext/facets/StableSwapFacet.sol
Line. 49
This comment was unnecessary so it can be deleted instead since this was unused and pass it into
modifier
directly.2.) File : contracts/core/connext/helpers/SponsorVault.sol Line.27
This comment was unnecessary so it can be deleted instead since this was unused and pass it into
public storage
directly.3.) Since this comment was used to be an dev commented for the code but it can be deleted instead for better code readibility since it was unnecesary.
4.) This
a la
from function originsender() was unused and misslead so it can be changed or it can be deleted insteadanother occurances : Executor.sol Line 85 & Line 98
Tool Used
Manual Review
1.) File : BaseConnextFacet.sol Line 137
_potentialReplcia
into_potentialReplica
2.) File : BaseConnextFacet.sol Line 764
routers'
intorouters
3.) File : BaseConnextFacet.sol Line 982
amongst
intoamongs
4.) File : PortalFacet.sol Line 111
back loan
intobackloan
5.) File : PortalFacet.sol Line 188
back loan
intobackloan
6.) File : PortalFacet.sol Line.163
sournce
intosource
7.) File : StableSwapFacet.sol Line 377
users'
intousers
The text was updated successfully, but these errors were encountered: