Gas: Contracts inheriting InsureDAOERC20
don't need to import some dependencies *again*
#78
Labels
bug
Something isn't working
G (Gas Optimization)
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
Dravee
Vulnerability details
Impact
When a contract imports and implements an interface or another contracts, it doesn't need to import the libraries that were already imported there.
Removing these imports will save gas.
Proof of Concept
InsureDAOERC20
imports the following:The following contracts inherit
InsureDAOERC20
and also make those imports:CDSTemplate
,IndexTemplate
,PoolTemplate
Tools Used
VS Code
Recommended Mitigation Steps
Remove the unused imports to reduce the size of the contract and save some deployment gas.
The text was updated successfully, but these errors were encountered: