Unused Imports Increase the size of Deployment and Waste Gas #111
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
Meta0xNull
Vulnerability details
Impact
There is no arithmetic calculation in Permissions.sol. Import SafeMath is just waste of Gas.
Proof of Concept
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/Permissions.sol#L4
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/Permissions.sol#L13
Tools Used
Manual Review
Recommended Mitigation Steps
Remove Import SafeMath
The text was updated successfully, but these errors were encountered: