QA Report #229
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
FINDINGS
Open todos left in the code
File: BridgeFacet.sol line 492
File: BridgeFacet.sol line 579
File: BridgeFacet.sol line 594
File: BridgeFacet.sol line 1027
Commented code should be deleted
File:DiamondLoupeFacet.sol line 20-23
TYPO
File:ProposedOwnableFacet.sol line 163
sournce instead of source
File:ProposedOwnableFacet.sol line 176
sournce instead of source
File: ProposedOwnableUpgradeable.sol line 170, see also line 198, line 212
File: RelayerFacet.sol line 35
rlayer instead of relayer
Get rid of safemath as the over/underflow checks are in built in solidity 0.8+
We can save on some gas by getting rid of safemath library and using unchecked blocks for arithmetic operations that can never overflow/underflow
SafeMath is no longer needed starting with Solidity 0.8. The compiler now has built in overflow checking.
If we get rid of safemath we can optimize some functions to save on gas. Since the compiler will check for under/overflows by default, we can disable this checks for arithmetic operations that are guaranteed to never over/underflow. This would include the following
File:AmplificationUtils.sol line 15
File:SwapUtils.sol line 20
The text was updated successfully, but these errors were encountered: